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.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.492/2.492, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.947e-05/2.939e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3667, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1941/0.5608, allocations: 98.54 MB / 456.7 MB, free: 12.25 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/0.5611, allocations: 75.95 kB / 456.7 MB, free: 12.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.801/1.362, allocations: 126.3 MB / 0.5694 GB, free: 13.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.362, allocations: 0 / 0.5694 GB, free: 13.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004904/1.363, allocations: 116 kB / 0.5695 GB, free: 13.39 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: 2209 * Number of variables: 2209 Notification: Performance of Generate backend data structure: time 0.02884/1.392, allocations: 6.243 MB / 0.5756 GB, free: 7.074 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/1.392, allocations: 12.03 kB / 0.5756 GB, free: 7.062 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05016/1.442, allocations: 6.454 MB / 0.5819 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03157/1.473, allocations: 8.557 MB / 0.5903 GB, free: 7.973 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004701/1.474, allocations: 188 kB / 0.5905 GB, free: 7.789 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003934/1.478, allocations: 351.8 kB / 0.5908 GB, free: 7.445 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03007/1.508, allocations: 10.54 MB / 0.6011 GB, free: 12.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05442/1.563, allocations: 13.71 MB / 0.6145 GB, free: 14.48 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005745/1.563, allocations: 63.48 kB / 0.6145 GB, free: 14.41 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003807/1.567, allocations: 20 kB / 0.6145 GB, free: 14.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006328/1.573, allocations: 1.695 MB / 0.6162 GB, free: 12.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4512/2.025, allocations: 53.26 MB / 0.6682 GB, free: 68.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0117/2.036, allocations: 6.624 MB / 0.6747 GB, free: 66.86 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008814/2.045, allocations: 4.601 MB / 0.6792 GB, free: 66.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002726/2.048, allocations: 2.21 MB / 0.6813 GB, free: 64.85 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.5e-05/2.048, allocations: 63.62 kB / 0.6814 GB, free: 64.8 MB / 458.7 MB Notification: Performance of pre-optimization done (n=369): time 7.614e-06/2.048, allocations: 0 / 0.6814 GB, free: 64.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=431): time 0.1271/2.175, allocations: 35.86 MB / 0.7164 GB, free: 53.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.506e-05/2.175, allocations: 116.1 kB / 0.7165 GB, free: 53.06 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007778/2.183, allocations: 3.516 MB / 0.72 GB, free: 50.06 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001197/2.184, allocations: 32.33 kB / 0.72 GB, free: 50.03 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003451/2.188, allocations: 3.897 MB / 0.7238 GB, free: 46.95 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002678/2.191, allocations: 1.487 MB / 0.7252 GB, free: 45.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001092/2.192, allocations: 2.906 kB / 0.7253 GB, free: 45.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005812/2.192, allocations: 0.6622 MB / 0.7259 GB, free: 45.02 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008802/2.201, allocations: 3.822 MB / 0.7296 GB, free: 41.64 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01188/2.213, allocations: 7.837 MB / 0.7373 GB, free: 32.57 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/2.226, allocations: 5.499 MB / 0.7427 GB, free: 28.21 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001613/2.226, allocations: 40 kB / 0.7427 GB, free: 28.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=1074) (initialization): time 0.04114/2.267, allocations: 13.34 MB / 0.7557 GB, free: 17.49 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/2.267, allocations: 68 kB / 0.7558 GB, free: 17.42 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001997/2.267, allocations: 140 kB / 0.7559 GB, free: 17.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01331/2.281, allocations: 2.61 MB / 0.7585 GB, free: 15.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0145/2.295, allocations: 2.053 MB / 0.7605 GB, free: 13.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02756/2.323, allocations: 12.92 MB / 0.7731 GB, free: 2.715 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009998/2.333, allocations: 338.1 kB / 0.7734 GB, free: 2.488 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002342/2.335, allocations: 457.2 kB / 0.7738 GB, free: 2.062 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 639 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (977): * Single equations (assignments): 969 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00318/2.339, allocations: 488.2 kB / 0.7743 GB, free: 1.59 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03794/2.377, allocations: 9.63 MB / 0.7837 GB, free: 10.65 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002232/2.379, allocations: 454.2 kB / 0.7841 GB, free: 10.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03511/2.414, allocations: 10.26 MB / 0.7942 GB, free: 15.89 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001714/2.414, allocations: 63.98 kB / 0.7942 GB, free: 15.83 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-05/2.414, allocations: 8 kB / 0.7942 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001173/2.414, allocations: 27.86 kB / 0.7943 GB, free: 15.79 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4048/2.819, allocations: 19.73 MB / 0.8135 GB, free: 108.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.034e-05/2.819, allocations: 10.81 kB / 0.8135 GB, free: 108.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007586/2.827, allocations: 0.8098 MB / 0.8143 GB, free: 108.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01272/2.84, allocations: 2.384 MB / 0.8167 GB, free: 108.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00111/2.841, allocations: 22.38 kB / 0.8167 GB, free: 108.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02452/2.865, allocations: 11.7 MB / 0.8281 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.761e-05/2.866, allocations: 16.97 kB / 0.8281 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03888/2.904, allocations: 16.16 MB / 0.8439 GB, free: 103.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004474/2.909, allocations: 1.15 MB / 0.845 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001902/2.911, allocations: 13.94 kB / 0.845 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005796/2.917, allocations: 239.8 kB / 0.8453 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001679/2.918, allocations: 274.6 kB / 0.8455 GB, free: 103 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000708/2.919, allocations: 114 kB / 0.8456 GB, free: 103 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005857/2.925, allocations: 2.365 MB / 0.8479 GB, free: 102.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.242e-06/2.925, allocations: 0 / 0.8479 GB, free: 102.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01051/2.936, allocations: 1.462 MB / 0.8494 GB, free: 102.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 338 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04104/2.977, allocations: 19.46 MB / 0.8684 GB, free: 94.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02134/2.998, allocations: 9.476 MB / 0.8776 GB, free: 91.92 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.617e-05/2.998, allocations: 2.906 kB / 0.8776 GB, free: 91.92 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01004/3.008, allocations: 4.181 MB / 0.8817 GB, free: 90.38 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00555/3.014, allocations: 486.4 kB / 0.8822 GB, free: 90.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04715/3.061, allocations: 15.8 MB / 0.8976 GB, free: 79.93 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01077/3.072, allocations: 4.765 MB / 0.9023 GB, free: 76.38 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008601/3.081, allocations: 2.976 MB / 0.9052 GB, free: 73.62 MB / 490.7 MB Notification: Performance of SimCode: time 1.353e-06/3.081, allocations: 0 / 0.9052 GB, free: 73.62 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.323/8.404, allocations: 172.3 MB / 1.073 GB, free: 92.69 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat