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/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.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.485/2.485, allocations: 235 MB / 248.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.344e-05/3.358e-05, allocations: 4 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3962/0.3963, allocations: 54.86 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1855/0.5819, allocations: 102.8 MB / 467.4 MB, free: 9.621 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.5822, allocations: 71.97 kB / 467.5 MB, free: 9.551 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7922/1.374, allocations: 118.5 MB / 0.5723 GB, free: 105.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.465e-06/1.375, allocations: 3.281 kB / 0.5723 GB, free: 105.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004115/1.375, allocations: 117.6 kB / 0.5724 GB, free: 105.1 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: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.02445/1.399, allocations: 5.946 MB / 0.5782 GB, free: 102.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/1.4, allocations: 10.62 kB / 0.5782 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004718/1.404, allocations: 1.019 MB / 0.5792 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05024/1.455, allocations: 7.006 MB / 0.586 GB, free: 100.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02734/1.482, allocations: 7.792 MB / 0.5936 GB, free: 96.43 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005518/1.483, allocations: 439.5 kB / 0.594 GB, free: 96.26 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003233/1.486, allocations: 0.5834 MB / 0.5946 GB, free: 96.09 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04133/1.527, allocations: 13.83 MB / 0.6081 GB, free: 83.03 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000495/1.528, allocations: 91.14 kB / 0.6082 GB, free: 82.94 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002967/1.531, allocations: 277.4 kB / 0.6085 GB, free: 82.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002838/1.534, allocations: 1.312 MB / 0.6098 GB, free: 81.39 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03494/1.569, allocations: 11.53 MB / 0.621 GB, free: 69.86 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09458/1.663, allocations: 62.07 MB / 0.6816 GB, free: 6.234 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02306/1.686, allocations: 5.709 MB / 0.6872 GB, free: 388 kB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007129/1.694, allocations: 3.289 MB / 0.6904 GB, free: 13.09 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001162/1.695, allocations: 0.6872 MB / 0.6911 GB, free: 12.3 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.403e-05/1.695, allocations: 64.5 kB / 0.6912 GB, free: 12.23 MB / 474.7 MB Notification: Performance of pre-optimization done (n=254): time 6.642e-06/1.695, allocations: 0 / 0.6912 GB, free: 12.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=320): time 0.4767/2.172, allocations: 29.16 MB / 0.7196 GB, free: 107.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/2.172, allocations: 266.5 kB / 0.7199 GB, free: 107.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01191/2.184, allocations: 4.626 MB / 0.7244 GB, free: 107 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008777/2.185, allocations: 70.77 kB / 0.7245 GB, free: 107 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003577/2.188, allocations: 3.876 MB / 0.7283 GB, free: 104.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002037/2.19, allocations: 1.185 MB / 0.7294 GB, free: 104.1 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/2.191, allocations: 157 kB / 0.7296 GB, free: 104 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004797/2.192, allocations: 0.6336 MB / 0.7302 GB, free: 103.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007721/2.2, allocations: 3.251 MB / 0.7334 GB, free: 102.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0105/2.21, allocations: 7.487 MB / 0.7407 GB, free: 95.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/2.221, allocations: 4.908 MB / 0.7455 GB, free: 94.03 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001661/2.221, allocations: 44.25 kB / 0.7455 GB, free: 94.03 MB / 474.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03504/2.256, allocations: 12.27 MB / 0.7575 GB, free: 89.86 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001277/2.257, allocations: 72.8 kB / 0.7576 GB, free: 89.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002051/2.257, allocations: 144.8 kB / 0.7577 GB, free: 89.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009067/2.266, allocations: 2.132 MB / 0.7598 GB, free: 89.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01149/2.278, allocations: 1.76 MB / 0.7615 GB, free: 89.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03622/2.314, allocations: 14.31 MB / 0.7755 GB, free: 81.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01427/2.328, allocations: 451.9 kB / 0.7759 GB, free: 81.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002355/2.331, allocations: 454.6 kB / 0.7763 GB, free: 81.49 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * 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 (928): * Single equations (assignments): 923 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003632/2.334, allocations: 0.673 MB / 0.777 GB, free: 80.93 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002145/2.336, allocations: 0.4949 MB / 0.7775 GB, free: 80.66 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03061/2.367, allocations: 7.021 MB / 0.7843 GB, free: 77.04 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.539e-05/2.367, allocations: 32 kB / 0.7844 GB, free: 77.01 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.843e-05/2.367, allocations: 8.562 kB / 0.7844 GB, free: 77 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001027/2.367, allocations: 18.2 kB / 0.7844 GB, free: 77 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07424/2.442, allocations: 16.01 MB / 0.8 GB, free: 63.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.071e-05/2.442, allocations: 8 kB / 0.8 GB, free: 63.92 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005432/2.447, allocations: 0.5047 MB / 0.8005 GB, free: 63.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008277/2.455, allocations: 1.873 MB / 0.8024 GB, free: 62.14 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008017/2.456, allocations: 73.27 kB / 0.8024 GB, free: 62.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02712/2.483, allocations: 12.81 MB / 0.8149 GB, free: 50.74 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.809e-06/2.484, allocations: 10.28 kB / 0.8149 GB, free: 50.73 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02797/2.512, allocations: 12.08 MB / 0.8267 GB, free: 39.81 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00422/2.516, allocations: 1.053 MB / 0.8278 GB, free: 38.83 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001963/2.518, allocations: 61.72 kB / 0.8278 GB, free: 38.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00548/2.523, allocations: 218.5 kB / 0.828 GB, free: 38.63 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00125/2.525, allocations: 202 kB / 0.8282 GB, free: 38.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004289/2.525, allocations: 91.89 kB / 0.8283 GB, free: 38.41 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008379/2.533, allocations: 3.266 MB / 0.8315 GB, free: 35.54 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.02e-07/2.534, allocations: 0 / 0.8315 GB, free: 35.54 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0101/2.544, allocations: 1.494 MB / 0.833 GB, free: 34.05 MB / 474.7 MB 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 (259): * Single equations (assignments): 254 * 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.0294/2.573, allocations: 14.06 MB / 0.8467 GB, free: 19.83 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01866/2.592, allocations: 8.165 MB / 0.8547 GB, free: 11.66 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/2.592, allocations: 7.281 kB / 0.8547 GB, free: 11.66 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01238/2.604, allocations: 3.875 MB / 0.8585 GB, free: 7.758 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005828/2.61, allocations: 0.6127 MB / 0.8591 GB, free: 7.164 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05007/2.66, allocations: 14.85 MB / 0.8736 GB, free: 8.234 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01184/2.672, allocations: 4.524 MB / 0.878 GB, free: 3.699 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008443/2.681, allocations: 2.846 MB / 0.8807 GB, free: 0.8516 MB / 490.7 MB Notification: Performance of SimCode: time 1.914e-06/2.681, allocations: 0 / 0.8807 GB, free: 0.8516 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.533/8.213, allocations: 167.2 MB / 1.044 GB, free: 15.67 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