Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Cylindrical.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Cylindrical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Cylindrical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.993/1.993, allocations: 209.2 MB / 224.8 MB, free: 1.547 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000447/0.0004472, allocations: 12 kB / 282.7 MB, free: 9.672 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1021, allocations: 48.7 MB / 331.4 MB, free: 8.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4248/0.527, allocations: 92.24 MB / 423.6 MB, free: 8.875 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/0.5274, allocations: 82.14 kB / 423.7 MB, free: 8.797 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6808/1.208, allocations: 90.63 MB / 0.5023 GB, free: 90.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.035e-06/1.208, allocations: 0 / 0.5023 GB, free: 90.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002425/1.208, allocations: 78.53 kB / 0.5023 GB, free: 90.34 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1680 * Number of variables: 1680 Notification: Performance of Generate backend data structure: time 0.01699/1.225, allocations: 4.115 MB / 0.5063 GB, free: 88.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/1.226, allocations: 9.25 kB / 0.5064 GB, free: 88.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004246/1.23, allocations: 0.8426 MB / 0.5072 GB, free: 88.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02773/1.258, allocations: 3.552 MB / 0.5106 GB, free: 88.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01715/1.275, allocations: 4.425 MB / 0.515 GB, free: 87.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005119/1.275, allocations: 327.8 kB / 0.5153 GB, free: 87.56 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003452/1.279, allocations: 435.5 kB / 0.5157 GB, free: 87.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03399/1.313, allocations: 10.92 MB / 0.5264 GB, free: 85.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002134/1.313, allocations: 30.28 kB / 0.5264 GB, free: 85.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002234/1.315, allocations: 198.9 kB / 0.5266 GB, free: 85.58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002894/1.318, allocations: 1.26 MB / 0.5278 GB, free: 85.35 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03032/1.349, allocations: 10.46 MB / 0.538 GB, free: 82.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0787/1.427, allocations: 37.72 MB / 0.5749 GB, free: 54.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01444/1.442, allocations: 4.591 MB / 0.5793 GB, free: 50.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001517/1.443, allocations: 1.322 MB / 0.5806 GB, free: 48.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.52e-05/1.444, allocations: 56.56 kB / 0.5807 GB, free: 48.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=242): time 7.214e-06/1.444, allocations: 0 / 0.5807 GB, free: 48.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=254): time 0.06725/1.511, allocations: 17.94 MB / 0.5982 GB, free: 30.35 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/1.511, allocations: 73.41 kB / 0.5983 GB, free: 30.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005129/1.516, allocations: 2.466 MB / 0.6007 GB, free: 27.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005511/1.517, allocations: 57.7 kB / 0.6007 GB, free: 27.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002125/1.519, allocations: 2.831 MB / 0.6035 GB, free: 24.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001418/1.52, allocations: 0.9126 MB / 0.6044 GB, free: 23.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006718/1.521, allocations: 108 kB / 0.6045 GB, free: 23.89 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004239/1.521, allocations: 0.5462 MB / 0.605 GB, free: 23.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005685/1.527, allocations: 2.291 MB / 0.6073 GB, free: 21.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007573/1.535, allocations: 5.231 MB / 0.6124 GB, free: 14.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007565/1.542, allocations: 3.462 MB / 0.6158 GB, free: 10.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.058e-05/1.543, allocations: 32 kB / 0.6158 GB, free: 10.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.02337/1.566, allocations: 8.2 MB / 0.6238 GB, free: 2.648 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.41e-05/1.566, allocations: 52 kB / 0.6238 GB, free: 2.598 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001409/1.566, allocations: 100 kB / 0.6239 GB, free: 2.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00478/1.571, allocations: 0.9574 MB / 0.6249 GB, free: 1.539 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007542/1.579, allocations: 1.236 MB / 0.6261 GB, free: 308 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/1.59, allocations: 4.858 MB / 0.6308 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005575/1.596, allocations: 303.7 kB / 0.6311 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001334/1.597, allocations: 312 kB / 0.6314 GB, free: 10.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 469 * Number of states: 0 () * Number of discrete variables: 30 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],cylindrical.cylinderColor[3],cylindrical.cylinderColor[2],cylindrical.cylinderColor[1],cylindrical.revolute.cylinderColor[3],cylindrical.revolute.cylinderColor[2],cylindrical.revolute.cylinderColor[1],cylindrical.prismatic.boxColor[3],cylindrical.prismatic.boxColor[2],cylindrical.prismatic.boxColor[1],axis.color[3],axis.color[2],axis.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (661): * Single equations (assignments): 654 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006582/1.604, allocations: 2.189 MB / 0.6335 GB, free: 8.523 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007351/1.605, allocations: 276.4 kB / 0.6338 GB, free: 8.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01574/1.62, allocations: 5.098 MB / 0.6388 GB, free: 3.121 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001222/1.621, allocations: 47.98 kB / 0.6388 GB, free: 3.074 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/1.621, allocations: 4 kB / 0.6388 GB, free: 3.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-05/1.621, allocations: 15.95 kB / 0.6389 GB, free: 3.055 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3772/1.998, allocations: 11.96 MB / 0.6505 GB, free: 94.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.994e-05/1.998, allocations: 10.22 kB / 0.6505 GB, free: 94.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004588/2.003, allocations: 399.9 kB / 0.6509 GB, free: 94.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006599/2.009, allocations: 0.7748 MB / 0.6517 GB, free: 94.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006554/2.01, allocations: 51.23 kB / 0.6517 GB, free: 94.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0127/2.023, allocations: 4.142 MB / 0.6558 GB, free: 92.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.145e-05/2.023, allocations: 16.31 kB / 0.6558 GB, free: 92.86 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0262/2.049, allocations: 8.437 MB / 0.664 GB, free: 91.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00289/2.052, allocations: 0.6789 MB / 0.6647 GB, free: 91.11 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009115/2.053, allocations: 53.3 kB / 0.6647 GB, free: 91.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003228/2.056, allocations: 139.9 kB / 0.6649 GB, free: 91.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007117/2.057, allocations: 147.7 kB / 0.665 GB, free: 91.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003518/2.057, allocations: 76.92 kB / 0.6651 GB, free: 91.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004828/2.062, allocations: 1.693 MB / 0.6667 GB, free: 90.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.92e-07/2.062, allocations: 0 / 0.6667 GB, free: 90.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009119/2.071, allocations: 0.9986 MB / 0.6677 GB, free: 90.96 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 4 (cylindrical.s,cylindrical.phi,cylindrical.v,cylindrical.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 (196): * Single equations (assignments): 189 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02263/2.094, allocations: 11.64 MB / 0.6791 GB, free: 84.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01216/2.106, allocations: 5.595 MB / 0.6846 GB, free: 83.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/2.106, allocations: 2.875 kB / 0.6846 GB, free: 83.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004778/2.111, allocations: 2.145 MB / 0.6866 GB, free: 82.47 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/2.114, allocations: 338.9 kB / 0.687 GB, free: 82.33 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0867/2.201, allocations: 102.7 MB / 0.7872 GB, free: 8.602 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008426/2.209, allocations: 3.534 MB / 0.7907 GB, free: 5.887 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005518/2.215, allocations: 1.909 MB / 0.7925 GB, free: 4.121 MB / 442.7 MB Notification: Performance of SimCode: time 1.432e-06/2.215, allocations: 0 / 0.7925 GB, free: 4.121 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.812/7.027, allocations: 98.16 MB / 0.8884 GB, free: 97.98 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Cylindrical_res.mat does not exist to compare? outputFormat=mat