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.Worldtorque.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.Worldtorque,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Worldtorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.429/2.429, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006051/0.0006051, allocations: 15.98 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.347, allocations: 54.85 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1824/0.5294, allocations: 99.76 MB / 469.1 MB, free: 6.707 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/0.5298, allocations: 79.89 kB / 469.2 MB, free: 6.629 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8917/1.422, allocations: 142.8 MB / 0.5976 GB, free: 4.441 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.945e-06/1.422, allocations: 0 / 0.5976 GB, free: 4.441 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005797/1.422, allocations: 140 kB / 0.5977 GB, free: 4.305 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: 2470 * Number of variables: 2470 Notification: Performance of Generate backend data structure: time 0.04654/1.469, allocations: 7.472 MB / 0.605 GB, free: 12.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.7e-05/1.469, allocations: 8.031 kB / 0.6051 GB, free: 12.74 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01535/1.484, allocations: 1.236 MB / 0.6063 GB, free: 11.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1037/1.588, allocations: 9.526 MB / 0.6156 GB, free: 1.945 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03957/1.628, allocations: 8.887 MB / 0.6242 GB, free: 8.977 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008393/1.628, allocations: 0.5255 MB / 0.6248 GB, free: 8.449 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004131/1.633, allocations: 0.7106 MB / 0.6254 GB, free: 7.738 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4076/2.04, allocations: 16.67 MB / 0.6417 GB, free: 61.89 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007128/2.041, allocations: 100.2 kB / 0.6418 GB, free: 61.89 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004017/2.045, allocations: 341.6 kB / 0.6421 GB, free: 61.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003793/2.049, allocations: 1.52 MB / 0.6436 GB, free: 61.87 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04267/2.092, allocations: 13.34 MB / 0.6567 GB, free: 61.81 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1114/2.203, allocations: 72.59 MB / 0.7275 GB, free: 16.38 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02349/2.227, allocations: 5.948 MB / 0.7334 GB, free: 14.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000351/2.227, allocations: 49.67 kB / 0.7334 GB, free: 14.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/2.227, allocations: 61.34 kB / 0.7335 GB, free: 14.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=249): time 7.554e-06/2.227, allocations: 0 / 0.7335 GB, free: 14.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=267): time 0.09681/2.324, allocations: 22.85 MB / 0.7558 GB, free: 4.648 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/2.324, allocations: 268.6 kB / 0.756 GB, free: 4.359 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01795/2.342, allocations: 6.186 MB / 0.7621 GB, free: 2.004 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006916/2.343, allocations: 69.7 kB / 0.7621 GB, free: 1.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005322/2.348, allocations: 4.791 MB / 0.7668 GB, free: 13.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002064/2.35, allocations: 1.031 MB / 0.7678 GB, free: 12.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0012/2.352, allocations: 172 kB / 0.768 GB, free: 12.63 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000729/2.352, allocations: 0.6771 MB / 0.7687 GB, free: 12.04 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008768/2.361, allocations: 2.961 MB / 0.7715 GB, free: 9.559 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01477/2.376, allocations: 8.224 MB / 0.7796 GB, free: 15.49 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01273/2.389, allocations: 4.826 MB / 0.7843 GB, free: 11.27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001779/2.389, allocations: 55.94 kB / 0.7843 GB, free: 11.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.03413/2.423, allocations: 11.28 MB / 0.7954 GB, free: 1.289 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002137/2.423, allocations: 91.95 kB / 0.7955 GB, free: 1.199 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000309/2.424, allocations: 191.2 kB / 0.7956 GB, free: 1.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003297/2.427, allocations: 0.8438 MB / 0.7965 GB, free: 320 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01491/2.442, allocations: 2.128 MB / 0.7985 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01535/2.457, allocations: 8.632 MB / 0.807 GB, free: 6.688 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01048/2.468, allocations: 478 kB / 0.8074 GB, free: 6.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002037/2.47, allocations: 0.5092 MB / 0.8079 GB, free: 5.77 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 849 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (1056): * Single equations (assignments): 1050 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009965/2.48, allocations: 3.317 MB / 0.8112 GB, free: 2.848 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001915/2.482, allocations: 0.5862 MB / 0.8117 GB, free: 2.254 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3972/2.879, allocations: 4.815 MB / 0.8164 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-05/2.879, allocations: 28.09 kB / 0.8165 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.547e-05/2.879, allocations: 9.734 kB / 0.8165 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.818e-05/2.879, allocations: 12.17 kB / 0.8165 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03951/2.919, allocations: 11.7 MB / 0.8279 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.077e-05/2.919, allocations: 1.719 kB / 0.8279 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00475/2.924, allocations: 443.6 kB / 0.8283 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002759/2.927, allocations: 0.5253 MB / 0.8288 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007653/2.927, allocations: 55.23 kB / 0.8289 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0121/2.94, allocations: 7.727 MB / 0.8364 GB, free: 98.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/2.94, allocations: 0 / 0.8364 GB, free: 98.65 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01948/2.959, allocations: 8.03 MB / 0.8443 GB, free: 97.86 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003999/2.963, allocations: 1.007 MB / 0.8453 GB, free: 97.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002182/2.965, allocations: 45.11 kB / 0.8453 GB, free: 97.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005385/2.971, allocations: 153.1 kB / 0.8455 GB, free: 97.77 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001094/2.972, allocations: 156.8 kB / 0.8456 GB, free: 97.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003051/2.972, allocations: 70.2 kB / 0.8457 GB, free: 97.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01264/2.985, allocations: 4.42 MB / 0.85 GB, free: 97.55 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.134e-06/2.985, allocations: 0 / 0.85 GB, free: 97.55 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01209/2.997, allocations: 1.565 MB / 0.8515 GB, free: 97.55 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (219): * Single equations (assignments): 213 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02641/3.024, allocations: 8.885 MB / 0.8602 GB, free: 96.12 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02618/3.05, allocations: 7.488 MB / 0.8675 GB, free: 95.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/3.05, allocations: 0 / 0.8675 GB, free: 95.43 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008904/3.059, allocations: 2.547 MB / 0.87 GB, free: 94.32 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009804/3.069, allocations: 0.7677 MB / 0.8707 GB, free: 94 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5925/3.661, allocations: 191.3 MB / 1.058 GB, free: 116 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01407/3.675, allocations: 5.207 MB / 1.063 GB, free: 115.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008646/3.684, allocations: 3.423 MB / 1.066 GB, free: 115.1 MB / 0.5417 GB Notification: Performance of SimCode: time 1.643e-06/3.684, allocations: 0 / 1.066 GB, free: 115.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.748/9.432, allocations: 221.5 MB / 1.282 GB, free: 128.3 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Worldtorque_res.mat does not exist to compare? outputFormat=mat