Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque.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.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.336/2.336, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006449/0.0006449, allocations: 16 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3388, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1814/0.5203, allocations: 101.5 MB / 470.9 MB, free: 4.977 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/0.5207, allocations: 79.95 kB / 470.9 MB, free: 4.898 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8131/1.334, allocations: 131.9 MB / 0.5887 GB, free: 13.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.266e-06/1.334, allocations: 0 / 0.5887 GB, free: 13.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005236/1.334, allocations: 136 kB / 0.5888 GB, free: 13.62 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.03261/1.367, allocations: 7.167 MB / 0.5958 GB, free: 6.363 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.025e-05/1.367, allocations: 12.03 kB / 0.5958 GB, free: 6.352 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006613/1.374, allocations: 1.199 MB / 0.597 GB, free: 5.141 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0565/1.43, allocations: 7.136 MB / 0.604 GB, free: 13.98 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02953/1.46, allocations: 7.473 MB / 0.6113 GB, free: 6.422 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008262/1.461, allocations: 0.5014 MB / 0.6118 GB, free: 5.918 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004089/1.465, allocations: 0.6599 MB / 0.6124 GB, free: 5.258 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05532/1.52, allocations: 16.2 MB / 0.6282 GB, free: 3.562 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005251/1.521, allocations: 87.12 kB / 0.6283 GB, free: 3.477 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003552/1.524, allocations: 323.8 kB / 0.6286 GB, free: 3.16 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004058/1.528, allocations: 1.561 MB / 0.6301 GB, free: 1.594 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04676/1.575, allocations: 13.13 MB / 0.643 GB, free: 4.414 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7742/2.35, allocations: 72.98 MB / 0.7142 GB, free: 35.47 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02638/2.376, allocations: 6.516 MB / 0.7206 GB, free: 34.78 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0236/2.4, allocations: 9.271 MB / 0.7297 GB, free: 33.08 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.986e-05/2.4, allocations: 65.09 kB / 0.7297 GB, free: 33.04 MB / 474.8 MB Notification: Performance of pre-optimization done (n=269): time 7.624e-06/2.4, allocations: 0 / 0.7297 GB, free: 33.04 MB / 474.8 MB Notification: Performance of matching and sorting (n=311): time 0.1282/2.528, allocations: 30.09 MB / 0.7591 GB, free: 22.11 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/2.528, allocations: 249.8 kB / 0.7593 GB, free: 21.85 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0195/2.548, allocations: 6.16 MB / 0.7654 GB, free: 19.81 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001006/2.549, allocations: 72.95 kB / 0.7654 GB, free: 19.75 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005519/2.554, allocations: 4.588 MB / 0.7699 GB, free: 16.28 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002581/2.557, allocations: 1.179 MB / 0.7711 GB, free: 15.42 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001576/2.559, allocations: 181.2 kB / 0.7712 GB, free: 15.28 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0008409/2.56, allocations: 0.6915 MB / 0.7719 GB, free: 14.81 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01241/2.572, allocations: 3.57 MB / 0.7754 GB, free: 13.61 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01719/2.589, allocations: 8.85 MB / 0.784 GB, free: 4.715 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/2.602, allocations: 5.5 MB / 0.7894 GB, free: 180 kB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001942/2.603, allocations: 56 kB / 0.7895 GB, free: 124 kB / 474.8 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.04683/2.649, allocations: 13.73 MB / 0.8029 GB, free: 5.852 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001842/2.65, allocations: 88.89 kB / 0.803 GB, free: 5.766 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003881/2.65, allocations: 188 kB / 0.8031 GB, free: 5.582 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007837/2.658, allocations: 1.71 MB / 0.8048 GB, free: 4.309 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01432/2.672, allocations: 2.129 MB / 0.8069 GB, free: 2.484 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0283/2.701, allocations: 11.78 MB / 0.8184 GB, free: 8.328 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01122/2.712, allocations: 0.5395 MB / 0.8189 GB, free: 7.867 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002635/2.715, allocations: 0.5337 MB / 0.8194 GB, free: 7.352 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * Number of states: 0 () * Number of discrete variables: 60 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1104): * Single equations (assignments): 1099 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0105/2.725, allocations: 3.223 MB / 0.8226 GB, free: 4.516 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002085/2.727, allocations: 0.59 MB / 0.8232 GB, free: 3.918 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02883/2.756, allocations: 6.792 MB / 0.8298 GB, free: 14.57 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001054/2.756, allocations: 35.47 kB / 0.8298 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-05/2.756, allocations: 12 kB / 0.8298 GB, free: 14.53 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001001/2.756, allocations: 14.3 kB / 0.8298 GB, free: 14.53 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06712/2.824, allocations: 15.19 MB / 0.8447 GB, free: 0.8477 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-05/2.824, allocations: 4 kB / 0.8447 GB, free: 0.8438 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005973/2.83, allocations: 0.5616 MB / 0.8452 GB, free: 288 kB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3678/3.198, allocations: 1.414 MB / 0.8466 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008807/3.198, allocations: 61.25 kB / 0.8467 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02189/3.22, allocations: 10.8 MB / 0.8572 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.538e-06/3.22, allocations: 12.52 kB / 0.8572 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02771/3.248, allocations: 11.84 MB / 0.8688 GB, free: 117.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004308/3.253, allocations: 1.152 MB / 0.8699 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002161/3.255, allocations: 60.48 kB / 0.87 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005932/3.261, allocations: 213.4 kB / 0.8702 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001295/3.262, allocations: 187.6 kB / 0.8704 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005311/3.263, allocations: 84.89 kB / 0.8704 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01211/3.275, allocations: 4.409 MB / 0.8747 GB, free: 117 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.11e-07/3.275, allocations: 2.219 kB / 0.8747 GB, free: 117 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01201/3.287, allocations: 1.655 MB / 0.8764 GB, free: 117 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (254): * Single equations (assignments): 249 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02983/3.317, allocations: 13.2 MB / 0.8893 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02031/3.337, allocations: 8.81 MB / 0.8979 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/3.337, allocations: 0 / 0.8979 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009235/3.346, allocations: 3.385 MB / 0.9012 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006423/3.353, allocations: 0.6976 MB / 0.9018 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5705/3.923, allocations: 194.9 MB / 1.092 GB, free: 122.6 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01162/3.935, allocations: 5.03 MB / 1.097 GB, free: 121.7 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008573/3.944, allocations: 3.288 MB / 1.1 GB, free: 121.7 MB / 0.5418 GB Notification: Performance of SimCode: time 1.473e-06/3.944, allocations: 1.531 kB / 1.1 GB, free: 121.7 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.903/9.846, allocations: 189.8 MB / 1.286 GB, free: 151.5 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat