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.452/2.452, allocations: 235 MB / 248 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.884e-05/3.898e-05, allocations: 4 kB / 309.8 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.393/0.3931, allocations: 54.85 MB / 364.6 MB, free: 5.562 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1878/0.5809, allocations: 100.2 MB / 464.8 MB, free: 12.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003238/0.5813, allocations: 79.95 kB / 464.9 MB, free: 12.22 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7652/1.347, allocations: 94.75 MB / 0.5465 GB, free: 105.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.515e-06/1.347, allocations: 0 / 0.5465 GB, free: 105.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003723/1.347, allocations: 88.41 kB / 0.5466 GB, free: 105.7 MB / 458.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.02114/1.368, allocations: 4.605 MB / 0.5511 GB, free: 103.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.979e-05/1.368, allocations: 11.66 kB / 0.5511 GB, free: 103.9 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004497/1.373, allocations: 0.9131 MB / 0.552 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0486/1.421, allocations: 6.73 MB / 0.5586 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.029/1.45, allocations: 6.304 MB / 0.5647 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000541/1.451, allocations: 328.5 kB / 0.565 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002969/1.454, allocations: 444.4 kB / 0.5654 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04194/1.496, allocations: 10.98 MB / 0.5762 GB, free: 98.74 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003704/1.497, allocations: 70.92 kB / 0.5762 GB, free: 98.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001858/1.498, allocations: 213.5 kB / 0.5764 GB, free: 98.62 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003054/1.501, allocations: 1.013 MB / 0.5774 GB, free: 98.44 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03124/1.533, allocations: 9.154 MB / 0.5864 GB, free: 95.63 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0694/1.602, allocations: 47.58 MB / 0.6328 GB, free: 54.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01773/1.62, allocations: 4.103 MB / 0.6368 GB, free: 50.69 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003804/1.624, allocations: 1.786 MB / 0.6386 GB, free: 48.89 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0167/1.641, allocations: 7.519 MB / 0.6459 GB, free: 41.04 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.478e-05/1.641, allocations: 55.56 kB / 0.646 GB, free: 40.98 MB / 458.7 MB Notification: Performance of pre-optimization done (n=180): time 6.022e-06/1.641, allocations: 3.938 kB / 0.646 GB, free: 40.97 MB / 458.7 MB Notification: Performance of matching and sorting (n=236): time 0.1425/1.783, allocations: 25.69 MB / 0.6711 GB, free: 15.28 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/1.783, allocations: 205.9 kB / 0.6713 GB, free: 15.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008301/1.792, allocations: 3.756 MB / 0.6749 GB, free: 11.26 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006953/1.792, allocations: 57.7 kB / 0.675 GB, free: 11.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00262/1.795, allocations: 3.117 MB / 0.678 GB, free: 8.082 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001407/1.797, allocations: 0.8745 MB / 0.6789 GB, free: 7.215 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007422/1.797, allocations: 128 kB / 0.679 GB, free: 7.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003669/1.798, allocations: 0.5753 MB / 0.6796 GB, free: 6.504 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007247/1.805, allocations: 3.359 MB / 0.6828 GB, free: 3.141 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01169/1.817, allocations: 6.968 MB / 0.6897 GB, free: 10.38 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01186/1.829, allocations: 4.739 MB / 0.6943 GB, free: 5.641 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001369/1.829, allocations: 40 kB / 0.6943 GB, free: 5.602 MB / 474.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.06756/1.896, allocations: 15.17 MB / 0.7091 GB, free: 6.418 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/1.896, allocations: 56 kB / 0.7092 GB, free: 6.363 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000202/1.897, allocations: 131.8 kB / 0.7093 GB, free: 6.238 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04348/1.94, allocations: 5.929 MB / 0.7151 GB, free: 308 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3464/2.287, allocations: 1.423 MB / 0.7165 GB, free: 121.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05797/2.345, allocations: 24.95 MB / 0.7409 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008928/2.354, allocations: 393.6 kB / 0.7412 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001678/2.355, allocations: 378.9 kB / 0.7416 GB, free: 116.8 MB / 490.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 () * 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.001771/2.357, allocations: 0.5783 MB / 0.7422 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001184/2.358, allocations: 403.1 kB / 0.7425 GB, free: 116.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05035/2.409, allocations: 10.76 MB / 0.7531 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.927e-05/2.409, allocations: 25.94 kB / 0.7531 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.209e-05/2.409, allocations: 10.38 kB / 0.7531 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.482e-05/2.409, allocations: 10.31 kB / 0.7531 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07348/2.483, allocations: 20.15 MB / 0.7728 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.729e-05/2.483, allocations: 6.688 kB / 0.7728 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003894/2.487, allocations: 388.2 kB / 0.7731 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03645/2.523, allocations: 4.983 MB / 0.778 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006899/2.524, allocations: 45.44 kB / 0.7781 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04339/2.567, allocations: 20.15 MB / 0.7977 GB, free: 95.21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.198e-05/2.567, allocations: 6.781 kB / 0.7977 GB, free: 95.21 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05309/2.62, allocations: 14.5 MB / 0.8119 GB, free: 82.38 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003706/2.624, allocations: 0.9588 MB / 0.8128 GB, free: 81.42 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001486/2.626, allocations: 45.86 kB / 0.8129 GB, free: 81.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005017/2.631, allocations: 163.8 kB / 0.813 GB, free: 81.21 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001186/2.632, allocations: 154 kB / 0.8132 GB, free: 81.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003418/2.632, allocations: 67.16 kB / 0.8132 GB, free: 81.01 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006575/2.639, allocations: 2.642 MB / 0.8158 GB, free: 78.36 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.012e-06/2.639, allocations: 0 / 0.8158 GB, free: 78.36 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008674/2.648, allocations: 1.322 MB / 0.8171 GB, free: 77.05 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 () * 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.0539/2.702, allocations: 16.3 MB / 0.833 GB, free: 60.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01698/2.719, allocations: 7.852 MB / 0.8407 GB, free: 53.06 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/2.719, allocations: 5.031 kB / 0.8407 GB, free: 53.05 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007156/2.726, allocations: 3.09 MB / 0.8437 GB, free: 49.96 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004382/2.73, allocations: 489.3 kB / 0.8442 GB, free: 49.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03498/2.765, allocations: 11.91 MB / 0.8558 GB, free: 37.56 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007327/2.773, allocations: 3.608 MB / 0.8594 GB, free: 33.96 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005309/2.778, allocations: 2.111 MB / 0.8614 GB, free: 31.85 MB / 490.7 MB Notification: Performance of SimCode: time 1.623e-06/2.778, allocations: 0 / 0.8614 GB, free: 31.85 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.043/7.821, allocations: 132.1 MB / 0.9904 GB, free: 87.24 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