Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.398/2.398, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.93e-05/2.947e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3651, allocations: 54.85 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1865/0.5517, allocations: 102.1 MB / 460.3 MB, free: 8.562 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.552, allocations: 75.95 kB / 460.3 MB, free: 8.488 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7496/1.302, allocations: 115.9 MB / 0.5627 GB, free: 4.984 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.298e-06/1.302, allocations: 0 / 0.5627 GB, free: 4.984 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004275/1.302, allocations: 123.9 kB / 0.5628 GB, free: 4.863 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: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.02554/1.328, allocations: 5.941 MB / 0.5686 GB, free: 14.85 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.404e-05/1.328, allocations: 12.03 kB / 0.5686 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0523/1.38, allocations: 7 MB / 0.5755 GB, free: 7.816 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02895/1.409, allocations: 7.78 MB / 0.5831 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004366/1.41, allocations: 192 kB / 0.5832 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003235/1.413, allocations: 355.8 kB / 0.5836 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02326/1.436, allocations: 8.2 MB / 0.5916 GB, free: 7.219 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03628/1.472, allocations: 12.41 MB / 0.6037 GB, free: 9.633 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005113/1.473, allocations: 87.23 kB / 0.6038 GB, free: 9.547 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002794/1.476, allocations: 36 kB / 0.6038 GB, free: 9.512 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003363/1.479, allocations: 1.322 MB / 0.6051 GB, free: 8.188 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5739/2.053, allocations: 59.4 MB / 0.6631 GB, free: 53.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01322/2.067, allocations: 4.896 MB / 0.6679 GB, free: 52.36 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008406/2.075, allocations: 3.216 MB / 0.671 GB, free: 52.32 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001447/2.077, allocations: 0.6925 MB / 0.6717 GB, free: 51.76 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.839e-05/2.077, allocations: 68.69 kB / 0.6718 GB, free: 51.72 MB / 458.7 MB Notification: Performance of pre-optimization done (n=254): time 1.185e-05/2.077, allocations: 0 / 0.6718 GB, free: 51.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=321): time 0.1662/2.243, allocations: 29.91 MB / 0.701 GB, free: 46.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/2.243, allocations: 267.8 kB / 0.7012 GB, free: 46.01 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01371/2.257, allocations: 3.926 MB / 0.7051 GB, free: 44.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00108/2.258, allocations: 25.7 kB / 0.7051 GB, free: 44.56 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004846/2.263, allocations: 3.998 MB / 0.709 GB, free: 41.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002577/2.266, allocations: 1.16 MB / 0.7101 GB, free: 40.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001452/2.267, allocations: 0 / 0.7101 GB, free: 40.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009127/2.268, allocations: 0.6401 MB / 0.7108 GB, free: 40.45 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01124/2.279, allocations: 3.151 MB / 0.7138 GB, free: 39.25 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01489/2.294, allocations: 7.498 MB / 0.7212 GB, free: 32.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01123/2.306, allocations: 4.821 MB / 0.7259 GB, free: 30.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002003/2.306, allocations: 43.03 kB / 0.7259 GB, free: 30.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=1032) (initialization): time 0.03435/2.34, allocations: 11.45 MB / 0.7371 GB, free: 24.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/2.34, allocations: 75.94 kB / 0.7372 GB, free: 24.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002281/2.341, allocations: 155.2 kB / 0.7373 GB, free: 23.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009053/2.35, allocations: 2.163 MB / 0.7394 GB, free: 22.26 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01195/2.362, allocations: 1.811 MB / 0.7412 GB, free: 20.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02918/2.391, allocations: 13.59 MB / 0.7545 GB, free: 8.746 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009294/2.4, allocations: 305 kB / 0.7548 GB, free: 8.516 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002095/2.402, allocations: 469.5 kB / 0.7552 GB, free: 8.074 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 700 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (956): * Single equations (assignments): 951 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 20,(7,46.9%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003191/2.406, allocations: 0.4916 MB / 0.7557 GB, free: 7.582 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02019/2.426, allocations: 6.847 MB / 0.7624 GB, free: 1.828 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001865/2.428, allocations: 458.1 kB / 0.7628 GB, free: 1.375 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02908/2.457, allocations: 7.136 MB / 0.7698 GB, free: 12.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/2.457, allocations: 32 kB / 0.7698 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.268e-05/2.457, allocations: 8 kB / 0.7698 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.054e-05/2.457, allocations: 24.31 kB / 0.7698 GB, free: 12.79 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06483/2.522, allocations: 14.69 MB / 0.7842 GB, free: 0.8008 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.92e-05/2.522, allocations: 7.953 kB / 0.7842 GB, free: 0.793 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007094/2.529, allocations: 0.5081 MB / 0.7847 GB, free: 384 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01506/2.544, allocations: 1.994 MB / 0.7866 GB, free: 15.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008681/2.545, allocations: 19.42 kB / 0.7867 GB, free: 15.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02917/2.575, allocations: 11.93 MB / 0.7983 GB, free: 4.77 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.529e-05/2.575, allocations: 8 kB / 0.7983 GB, free: 4.762 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02976/2.604, allocations: 11.75 MB / 0.8098 GB, free: 8.77 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003738/2.608, allocations: 0.991 MB / 0.8107 GB, free: 7.754 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009884/2.609, allocations: 15.98 kB / 0.8108 GB, free: 7.738 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004062/2.613, allocations: 163.7 kB / 0.8109 GB, free: 7.578 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008959/2.614, allocations: 213.5 kB / 0.8111 GB, free: 7.371 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003762/2.615, allocations: 80 kB / 0.8112 GB, free: 7.293 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006344/2.621, allocations: 2.663 MB / 0.8138 GB, free: 4.637 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.81e-07/2.621, allocations: 0 / 0.8138 GB, free: 4.637 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009547/2.63, allocations: 1.29 MB / 0.8151 GB, free: 3.352 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (260): * Single equations (assignments): 255 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3566/2.987, allocations: 13.75 MB / 0.8285 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02117/3.008, allocations: 8.465 MB / 0.8368 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/3.008, allocations: 9.688 kB / 0.8368 GB, free: 123.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01103/3.019, allocations: 3.768 MB / 0.8404 GB, free: 123 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004324/3.024, allocations: 0.5035 MB / 0.8409 GB, free: 122.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03962/3.063, allocations: 14.46 MB / 0.8551 GB, free: 120.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008013/3.072, allocations: 4.529 MB / 0.8595 GB, free: 119.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006202/3.078, allocations: 2.832 MB / 0.8622 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.583e-06/3.078, allocations: 0 / 0.8622 GB, free: 118.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.099/8.177, allocations: 163.8 MB / 1.022 GB, free: 119.5 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat