Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.288/2.288, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006512/0.0006512, allocations: 8 kB / 314.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4224/0.4231, allocations: 54.87 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1893/0.6125, allocations: 100.3 MB / 469.6 MB, free: 6.207 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.6129, allocations: 79.95 kB / 469.7 MB, free: 6.129 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6897/1.303, allocations: 94.68 MB / 0.5511 GB, free: 20.36 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.887e-06/1.303, allocations: 0 / 0.5511 GB, free: 20.36 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003638/1.303, allocations: 88 kB / 0.5512 GB, free: 20.28 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.02074/1.324, allocations: 5.031 MB / 0.5561 GB, free: 15.17 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/1.324, allocations: 8.031 kB / 0.5561 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003506/1.327, allocations: 0.9005 MB / 0.557 GB, free: 14.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05945/1.387, allocations: 6.733 MB / 0.5636 GB, free: 7.496 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02861/1.416, allocations: 6.336 MB / 0.5698 GB, free: 1.098 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004145/1.416, allocations: 332.5 kB / 0.5701 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002242/1.418, allocations: 439.7 kB / 0.5705 GB, free: 348 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0384/1.457, allocations: 11.05 MB / 0.5813 GB, free: 4.258 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003082/1.457, allocations: 71.3 kB / 0.5814 GB, free: 4.188 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001653/1.459, allocations: 207.9 kB / 0.5816 GB, free: 3.984 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002557/1.461, allocations: 1.019 MB / 0.5826 GB, free: 2.953 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03284/1.494, allocations: 9.295 MB / 0.5917 GB, free: 9.641 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0855/1.58, allocations: 47.58 MB / 0.6381 GB, free: 8.52 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01961/1.599, allocations: 4.149 MB / 0.6422 GB, free: 4.227 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3705/1.97, allocations: 7.499 MB / 0.6495 GB, free: 113.6 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.175e-05/1.97, allocations: 53.84 kB / 0.6495 GB, free: 113.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=180): time 7.023e-06/1.97, allocations: 3.531 kB / 0.6496 GB, free: 113.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=236): time 0.3028/2.273, allocations: 41.04 MB / 0.6896 GB, free: 110.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.8e-05/2.273, allocations: 207.5 kB / 0.6898 GB, free: 110.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009134/2.282, allocations: 3.796 MB / 0.6935 GB, free: 110.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007152/2.283, allocations: 58.27 kB / 0.6936 GB, free: 110.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003012/2.286, allocations: 3.113 MB / 0.6966 GB, free: 108.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001654/2.288, allocations: 0.8789 MB / 0.6975 GB, free: 108.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001015/2.289, allocations: 127.2 kB / 0.6976 GB, free: 108.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004843/2.289, allocations: 0.5715 MB / 0.6982 GB, free: 107.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007995/2.297, allocations: 3.424 MB / 0.7015 GB, free: 106.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01066/2.308, allocations: 7.022 MB / 0.7084 GB, free: 100.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01048/2.319, allocations: 4.768 MB / 0.713 GB, free: 97.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001215/2.319, allocations: 36 kB / 0.7131 GB, free: 97.26 MB / 474.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.06168/2.38, allocations: 15.29 MB / 0.728 GB, free: 85.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.998e-05/2.381, allocations: 60 kB / 0.728 GB, free: 85.74 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002024/2.381, allocations: 124 kB / 0.7282 GB, free: 85.62 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04064/2.421, allocations: 5.937 MB / 0.734 GB, free: 80.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009173/2.431, allocations: 1.431 MB / 0.7354 GB, free: 79.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05329/2.484, allocations: 25.71 MB / 0.7605 GB, free: 53.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008496/2.493, allocations: 388.8 kB / 0.7608 GB, free: 52.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001581/2.494, allocations: 383.5 kB / 0.7612 GB, free: 52.48 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 578 * Number of states: 0 () * Number of discrete variables: 39 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (743): * Single equations (assignments): 738 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006517/2.501, allocations: 2.214 MB / 0.7634 GB, free: 50.25 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001663/2.502, allocations: 402.8 kB / 0.7637 GB, free: 49.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05159/2.554, allocations: 10.82 MB / 0.7743 GB, free: 39 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.31e-05/2.554, allocations: 29.48 kB / 0.7743 GB, free: 38.98 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.754e-05/2.554, allocations: 12 kB / 0.7744 GB, free: 38.96 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.69e-05/2.554, allocations: 7.969 kB / 0.7744 GB, free: 38.96 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06954/2.624, allocations: 20.2 MB / 0.7941 GB, free: 18.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-05/2.624, allocations: 4 kB / 0.7941 GB, free: 18.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003754/2.628, allocations: 391.9 kB / 0.7945 GB, free: 17.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03551/2.663, allocations: 4.988 MB / 0.7993 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005967/2.664, allocations: 47.98 kB / 0.7994 GB, free: 12.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05085/2.715, allocations: 20.88 MB / 0.8198 GB, free: 7.738 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.736e-05/2.715, allocations: 7.938 kB / 0.8198 GB, free: 7.73 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4351/3.15, allocations: 14.58 MB / 0.834 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003441/3.153, allocations: 0.9538 MB / 0.835 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001556/3.155, allocations: 46.42 kB / 0.835 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004892/3.16, allocations: 169.4 kB / 0.8352 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001195/3.161, allocations: 156.7 kB / 0.8353 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003363/3.162, allocations: 63.91 kB / 0.8354 GB, free: 116.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006457/3.168, allocations: 2.675 MB / 0.838 GB, free: 116.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.322e-06/3.168, allocations: 0 / 0.838 GB, free: 116.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008798/3.177, allocations: 1.331 MB / 0.8393 GB, free: 116.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05391/3.231, allocations: 16.38 MB / 0.8553 GB, free: 113.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0185/3.249, allocations: 7.966 MB / 0.8631 GB, free: 111.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/3.249, allocations: 0 / 0.8631 GB, free: 111.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009568/3.259, allocations: 3.121 MB / 0.8661 GB, free: 110.4 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005634/3.265, allocations: 488.1 kB / 0.8666 GB, free: 110.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07397/3.339, allocations: 109 MB / 0.9731 GB, free: 6.523 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007682/3.346, allocations: 3.614 MB / 0.9766 GB, free: 5.191 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005234/3.352, allocations: 2.108 MB / 0.9786 GB, free: 3.516 MB / 490.7 MB Notification: Performance of SimCode: time 1.093e-06/3.352, allocations: 4 kB / 0.9786 GB, free: 3.512 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.985/8.337, allocations: 130.9 MB / 1.106 GB, free: 78.42 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat