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.Torque3.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.Torque3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.054/2.054, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006156/0.0006157, allocations: 16 kB / 282.7 MB, free: 9.543 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3457, allocations: 48.7 MB / 331.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1705/0.5163, allocations: 97.16 MB / 428.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/0.5167, allocations: 79.95 kB / 428.6 MB, free: 13.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.545/2.061, allocations: 223 MB / 0.6364 GB, free: 30.61 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.278e-06/2.061, allocations: 0 / 0.6364 GB, free: 30.61 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001089/2.062, allocations: 238.4 kB / 0.6366 GB, free: 30.61 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: 4176 * Number of variables: 4176 Notification: Performance of Generate backend data structure: time 0.05713/2.12, allocations: 12.27 MB / 0.6486 GB, free: 26.06 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.966e-05/2.12, allocations: 9.719 kB / 0.6486 GB, free: 26.06 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0112/2.131, allocations: 2.069 MB / 0.6506 GB, free: 25.92 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09962/2.231, allocations: 12.63 MB / 0.6629 GB, free: 25.12 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04447/2.275, allocations: 12.59 MB / 0.6752 GB, free: 23.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001301/2.277, allocations: 0.9026 MB / 0.6761 GB, free: 23.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006843/2.283, allocations: 1.194 MB / 0.6773 GB, free: 23.81 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09118/2.375, allocations: 28.35 MB / 0.705 GB, free: 18.33 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001119/2.376, allocations: 137.3 kB / 0.7051 GB, free: 18.32 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007233/2.383, allocations: 0.554 MB / 0.7056 GB, free: 18.32 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008335/2.391, allocations: 2.676 MB / 0.7082 GB, free: 18.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1027/2.494, allocations: 23.56 MB / 0.7312 GB, free: 14.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7489/3.243, allocations: 116.8 MB / 0.8453 GB, free: 25.82 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06182/3.305, allocations: 13.74 MB / 0.8588 GB, free: 25.08 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004024/3.309, allocations: 2.349 MB / 0.8611 GB, free: 23.09 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/3.309, allocations: 100.5 kB / 0.8612 GB, free: 23.05 MB / 490.7 MB Notification: Performance of pre-optimization done (n=559): time 1.083e-05/3.309, allocations: 0 / 0.8612 GB, free: 23.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=643): time 0.2826/3.592, allocations: 62.11 MB / 0.9218 GB, free: 13.11 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001723/3.592, allocations: 324.4 kB / 0.9221 GB, free: 12.79 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02629/3.619, allocations: 9.072 MB / 0.931 GB, free: 12.11 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002042/3.621, allocations: 124.9 kB / 0.9311 GB, free: 12.08 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007338/3.628, allocations: 7.301 MB / 0.9382 GB, free: 8.371 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005015/3.633, allocations: 2.34 MB / 0.9405 GB, free: 6.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003222/3.636, allocations: 289.6 kB / 0.9408 GB, free: 6.613 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.002039/3.638, allocations: 0.9171 MB / 0.9417 GB, free: 6.043 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02019/3.659, allocations: 6.524 MB / 0.9481 GB, free: 2.039 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0527/3.711, allocations: 15.48 MB / 0.9632 GB, free: 5.305 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02819/3.74, allocations: 9.486 MB / 0.9724 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003746/3.74, allocations: 76 kB / 0.9725 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1861) (initialization): time 0.07894/3.819, allocations: 23.13 MB / 0.9951 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002623/3.819, allocations: 116 kB / 0.9952 GB, free: 10.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005974/3.82, allocations: 266.1 kB / 0.9955 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0153/3.835, allocations: 3.272 MB / 0.9987 GB, free: 7.812 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02596/3.861, allocations: 3.497 MB / 1.002 GB, free: 4.887 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4821/4.344, allocations: 23.35 MB / 1.025 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0192/4.363, allocations: 0.8709 MB / 1.026 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004009/4.367, allocations: 0.8126 MB / 1.027 GB, free: 113.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1201 * Number of states: 0 () * Number of discrete variables: 105 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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],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 (1741): * Single equations (assignments): 1734 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01749/4.384, allocations: 5.323 MB / 1.032 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004108/4.389, allocations: 0.9452 MB / 1.033 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04789/4.436, allocations: 14.6 MB / 1.047 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001398/4.437, allocations: 66.98 kB / 1.047 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001027/4.437, allocations: 18.72 kB / 1.047 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002372/4.437, allocations: 29.53 kB / 1.047 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1018/4.539, allocations: 31.28 MB / 1.078 GB, free: 109 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000104/4.539, allocations: 9.75 kB / 1.078 GB, free: 109 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01246/4.551, allocations: 1.221 MB / 1.079 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01302/4.565, allocations: 2.829 MB / 1.082 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002096/4.567, allocations: 120.5 kB / 1.082 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04474/4.611, allocations: 21.72 MB / 1.103 GB, free: 96.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/4.612, allocations: 10.12 kB / 1.103 GB, free: 96.93 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06244/4.674, allocations: 24.02 MB / 1.126 GB, free: 86.66 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008666/4.683, allocations: 2.04 MB / 1.128 GB, free: 85.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005075/4.688, allocations: 115.3 kB / 1.128 GB, free: 85.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01179/4.7, allocations: 493.8 kB / 1.129 GB, free: 85.45 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002702/4.702, allocations: 385.6 kB / 1.129 GB, free: 85.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001171/4.704, allocations: 172.4 kB / 1.129 GB, free: 85.35 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01824/4.722, allocations: 6.512 MB / 1.136 GB, free: 83.08 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.092e-06/4.722, allocations: 0 / 1.136 GB, free: 83.08 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02156/4.744, allocations: 2.936 MB / 1.139 GB, free: 80.16 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (554): * Single equations (assignments): 547 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(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.06663/4.81, allocations: 25.21 MB / 1.163 GB, free: 57.98 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03853/4.849, allocations: 16.28 MB / 1.179 GB, free: 44.48 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.708e-05/4.849, allocations: 4.625 kB / 1.179 GB, free: 44.47 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0204/4.869, allocations: 7.163 MB / 1.186 GB, free: 38.34 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01156/4.881, allocations: 1.261 MB / 1.187 GB, free: 37.51 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.21/6.091, allocations: 308.8 MB / 1.489 GB, free: 100.3 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0204/6.112, allocations: 8.301 MB / 1.497 GB, free: 99.32 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01645/6.128, allocations: 5.965 MB / 1.503 GB, free: 99.32 MB / 0.5886 GB Notification: Performance of SimCode: time 1.673e-06/6.128, allocations: 0 / 1.503 GB, free: 99.32 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.359/14.49, allocations: 418.3 MB / 1.911 GB, free: 103.5 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat