Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque.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.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.103/2.103, allocations: 209.2 MB / 224.8 MB, free: 1.547 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004574/0.0004574, allocations: 12 kB / 282.7 MB, free: 9.672 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1076, allocations: 48.7 MB / 331.4 MB, free: 8.879 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.436/0.5437, allocations: 94.69 MB / 426.1 MB, free: 6.312 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/0.544, allocations: 75.97 kB / 426.1 MB, free: 6.238 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.823/1.367, allocations: 131.7 MB / 0.5448 GB, free: 82.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.429e-06/1.367, allocations: 0 / 0.5448 GB, free: 82.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006012/1.368, allocations: 129.8 kB / 0.5449 GB, free: 82.71 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: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.03883/1.407, allocations: 7.179 MB / 0.5519 GB, free: 78.01 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/1.407, allocations: 10.88 kB / 0.5519 GB, free: 78.01 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005561/1.412, allocations: 1.189 MB / 0.5531 GB, free: 77.22 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05223/1.464, allocations: 7.145 MB / 0.56 GB, free: 72.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02587/1.49, allocations: 7.454 MB / 0.5673 GB, free: 65.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006354/1.491, allocations: 0.4956 MB / 0.5678 GB, free: 64.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003728/1.495, allocations: 0.6637 MB / 0.5685 GB, free: 64.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04768/1.543, allocations: 16.19 MB / 0.5843 GB, free: 46.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000479/1.543, allocations: 95.11 kB / 0.5844 GB, free: 46.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003333/1.546, allocations: 327.8 kB / 0.5847 GB, free: 45.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00337/1.55, allocations: 1.549 MB / 0.5862 GB, free: 44.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03977/1.59, allocations: 13.13 MB / 0.599 GB, free: 31.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5836/2.173, allocations: 72.92 MB / 0.6702 GB, free: 40.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08474/2.258, allocations: 6.522 MB / 0.6766 GB, free: 40.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03392/2.292, allocations: 9.274 MB / 0.6856 GB, free: 38.33 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.291e-05/2.292, allocations: 70.31 kB / 0.6857 GB, free: 38.29 MB / 426.7 MB Notification: Performance of pre-optimization done (n=269): time 6.442e-06/2.292, allocations: 0 / 0.6857 GB, free: 38.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=311): time 0.1261/2.418, allocations: 30.08 MB / 0.7151 GB, free: 30.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/2.419, allocations: 233.7 kB / 0.7153 GB, free: 30.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01662/2.435, allocations: 6.172 MB / 0.7213 GB, free: 28.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009053/2.436, allocations: 76.17 kB / 0.7214 GB, free: 28.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004504/2.441, allocations: 4.582 MB / 0.7259 GB, free: 24.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002168/2.443, allocations: 1.177 MB / 0.727 GB, free: 23.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00177/2.445, allocations: 184.6 kB / 0.7272 GB, free: 23.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00118/2.446, allocations: 0.6932 MB / 0.7279 GB, free: 23.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00952/2.455, allocations: 3.567 MB / 0.7314 GB, free: 22.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01391/2.469, allocations: 8.847 MB / 0.74 GB, free: 13.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0136/2.483, allocations: 5.499 MB / 0.7454 GB, free: 11.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002462/2.483, allocations: 52.97 kB / 0.7454 GB, free: 11.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.03882/2.522, allocations: 13.43 MB / 0.7585 GB, free: 1.777 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001495/2.522, allocations: 88 kB / 0.7586 GB, free: 1.691 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003736/2.523, allocations: 184 kB / 0.7588 GB, free: 1.512 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007277/2.53, allocations: 1.707 MB / 0.7605 GB, free: 244 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01525/2.545, allocations: 2.172 MB / 0.7626 GB, free: 14.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02703/2.572, allocations: 11.67 MB / 0.774 GB, free: 4.062 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0117/2.584, allocations: 0.5326 MB / 0.7745 GB, free: 3.609 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002677/2.587, allocations: 0.5349 MB / 0.775 GB, free: 3.094 MB / 442.7 MB 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.01122/2.598, allocations: 3.228 MB / 0.7782 GB, free: 256 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002268/2.601, allocations: 0.5841 MB / 0.7787 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02465/2.625, allocations: 6.75 MB / 0.7853 GB, free: 9.559 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.523e-05/2.625, allocations: 39 kB / 0.7854 GB, free: 9.523 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-05/2.625, allocations: 15.98 kB / 0.7854 GB, free: 9.508 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.679e-05/2.626, allocations: 11.95 kB / 0.7854 GB, free: 9.496 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05409/2.68, allocations: 15.19 MB / 0.8002 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.453e-05/2.68, allocations: 4 kB / 0.8002 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005993/2.686, allocations: 0.5621 MB / 0.8008 GB, free: 9.707 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007247/2.693, allocations: 1.418 MB / 0.8022 GB, free: 8.285 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009883/2.694, allocations: 59.98 kB / 0.8022 GB, free: 8.227 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02599/2.72, allocations: 10.81 MB / 0.8128 GB, free: 13.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.645e-05/2.72, allocations: 11.94 kB / 0.8128 GB, free: 13.15 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03421/2.754, allocations: 11.83 MB / 0.8244 GB, free: 1.098 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.3275/3.082, allocations: 1.155 MB / 0.8255 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002586/3.085, allocations: 55.09 kB / 0.8255 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006253/3.091, allocations: 208.9 kB / 0.8257 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001437/3.092, allocations: 194.1 kB / 0.8259 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005235/3.093, allocations: 82.05 kB / 0.826 GB, free: 141.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01441/3.107, allocations: 4.417 MB / 0.8303 GB, free: 141.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.122e-06/3.107, allocations: 0.75 kB / 0.8303 GB, free: 141.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01331/3.121, allocations: 1.652 MB / 0.8319 GB, free: 141.4 MB / 490.7 MB 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.03541/3.156, allocations: 13.21 MB / 0.8448 GB, free: 138.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02215/3.178, allocations: 8.803 MB / 0.8534 GB, free: 138.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.198e-05/3.179, allocations: 2.719 kB / 0.8534 GB, free: 138.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009839/3.188, allocations: 3.39 MB / 0.8567 GB, free: 138 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00663/3.195, allocations: 0.7073 MB / 0.8574 GB, free: 137.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5226/3.718, allocations: 194.9 MB / 1.048 GB, free: 108.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01285/3.731, allocations: 5.024 MB / 1.053 GB, free: 107.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009826/3.741, allocations: 3.289 MB / 1.056 GB, free: 106.9 MB / 490.7 MB Notification: Performance of SimCode: time 1.513e-06/3.741, allocations: 0 / 1.056 GB, free: 106.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.225/9.966, allocations: 189.6 MB / 1.241 GB, free: 113.4 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat