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.468/2.468, allocations: 235 MB / 248.1 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.471e-05, allocations: 4 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4007/0.4008, allocations: 54.85 MB / 364.6 MB, free: 5.418 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1881/0.5889, allocations: 99.67 MB / 464.3 MB, free: 12.71 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.5892, allocations: 75.97 kB / 464.4 MB, free: 12.64 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.088/1.677, allocations: 142.9 MB / 0.5931 GB, free: 96.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.465e-06/1.677, allocations: 0 / 0.5931 GB, free: 96.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005093/1.678, allocations: 142.9 kB / 0.5932 GB, free: 96.2 MB / 458.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.02901/1.707, allocations: 6.843 MB / 0.5999 GB, free: 91.74 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/1.707, allocations: 11.31 kB / 0.5999 GB, free: 91.74 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006052/1.713, allocations: 1.231 MB / 0.6011 GB, free: 90.93 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06964/1.782, allocations: 9.535 MB / 0.6104 GB, free: 82 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03182/1.814, allocations: 8.839 MB / 0.619 GB, free: 73.09 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008322/1.815, allocations: 0.5333 MB / 0.6195 GB, free: 72.56 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004739/1.82, allocations: 0.7028 MB / 0.6202 GB, free: 71.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05103/1.871, allocations: 16.53 MB / 0.6364 GB, free: 53.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005927/1.872, allocations: 95.11 kB / 0.6365 GB, free: 53.74 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003676/1.875, allocations: 339.8 kB / 0.6368 GB, free: 53.41 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003541/1.879, allocations: 1.519 MB / 0.6383 GB, free: 51.89 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04117/1.92, allocations: 13.11 MB / 0.6511 GB, free: 38.75 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5419/2.462, allocations: 72.56 MB / 0.7219 GB, free: 53.38 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03751/2.5, allocations: 5.865 MB / 0.7277 GB, free: 52.67 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01077/2.511, allocations: 3.066 MB / 0.7307 GB, free: 52.63 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005076/2.511, allocations: 54.38 kB / 0.7307 GB, free: 52.63 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.01e-05/2.511, allocations: 62.16 kB / 0.7308 GB, free: 52.59 MB / 474.7 MB Notification: Performance of pre-optimization done (n=249): time 1.292e-05/2.511, allocations: 0 / 0.7308 GB, free: 52.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=267): time 0.115/2.626, allocations: 19.49 MB / 0.7498 GB, free: 47.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/2.626, allocations: 263.2 kB / 0.7501 GB, free: 47.02 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0164/2.643, allocations: 6.128 MB / 0.756 GB, free: 46.51 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007457/2.644, allocations: 65.33 kB / 0.7561 GB, free: 46.48 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004541/2.648, allocations: 4.79 MB / 0.7608 GB, free: 43.78 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001727/2.65, allocations: 1.031 MB / 0.7618 GB, free: 43.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001116/2.651, allocations: 172.1 kB / 0.762 GB, free: 43.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005906/2.652, allocations: 0.6746 MB / 0.7626 GB, free: 42.87 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007668/2.659, allocations: 2.877 MB / 0.7654 GB, free: 42.84 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01138/2.671, allocations: 8.13 MB / 0.7734 GB, free: 35.49 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01129/2.682, allocations: 4.803 MB / 0.7781 GB, free: 34.11 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002507/2.683, allocations: 54.55 kB / 0.7781 GB, free: 34.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.03204/2.715, allocations: 11.12 MB / 0.789 GB, free: 30.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001686/2.715, allocations: 85.41 kB / 0.789 GB, free: 30.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003415/2.715, allocations: 187 kB / 0.7892 GB, free: 30.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003512/2.719, allocations: 0.8394 MB / 0.79 GB, free: 30.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01299/2.732, allocations: 1.986 MB / 0.792 GB, free: 30.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01388/2.746, allocations: 8.491 MB / 0.8003 GB, free: 24.61 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01113/2.757, allocations: 472.3 kB / 0.8007 GB, free: 24.44 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002215/2.759, allocations: 0.5142 MB / 0.8012 GB, free: 24.14 MB / 474.7 MB 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 () * 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.003214/2.762, allocations: 0.7728 MB / 0.802 GB, free: 23.37 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001715/2.764, allocations: 0.59 MB / 0.8026 GB, free: 22.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01332/2.777, allocations: 4.46 MB / 0.8069 GB, free: 19.05 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.627e-05/2.778, allocations: 28.62 kB / 0.8069 GB, free: 19.02 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.894e-05/2.778, allocations: 8 kB / 0.8069 GB, free: 19.01 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.931e-05/2.778, allocations: 14.86 kB / 0.807 GB, free: 19.01 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03716/2.815, allocations: 11.6 MB / 0.8183 GB, free: 9.574 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-05/2.815, allocations: 0 / 0.8183 GB, free: 9.574 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004572/2.82, allocations: 440.1 kB / 0.8187 GB, free: 9.223 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002669/2.822, allocations: 0.5271 MB / 0.8192 GB, free: 8.816 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000686/2.823, allocations: 50.95 kB / 0.8193 GB, free: 8.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01196/2.835, allocations: 7.57 MB / 0.8267 GB, free: 1.48 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/2.835, allocations: 4.031 kB / 0.8267 GB, free: 1.477 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02485/2.86, allocations: 8.097 MB / 0.8346 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004771/2.865, allocations: 1.014 MB / 0.8356 GB, free: 9.98 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00198/2.867, allocations: 40 kB / 0.8356 GB, free: 9.941 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00535/2.872, allocations: 154.1 kB / 0.8358 GB, free: 9.836 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009969/2.873, allocations: 153 kB / 0.8359 GB, free: 9.738 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003125/2.873, allocations: 67.8 kB / 0.836 GB, free: 9.676 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01305/2.887, allocations: 4.36 MB / 0.8402 GB, free: 5.844 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.32e-07/2.887, allocations: 0 / 0.8402 GB, free: 5.844 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01281/2.899, allocations: 1.563 MB / 0.8417 GB, free: 4.289 MB / 490.7 MB 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 () * 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.03222/2.932, allocations: 8.835 MB / 0.8504 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02032/2.952, allocations: 7.344 MB / 0.8575 GB, free: 5.926 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/2.952, allocations: 0 / 0.8575 GB, free: 5.926 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006501/2.959, allocations: 2.489 MB / 0.86 GB, free: 3.629 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007184/2.966, allocations: 0.7683 MB / 0.8607 GB, free: 2.98 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08121/3.047, allocations: 15.46 MB / 0.8758 GB, free: 4.469 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01511/3.062, allocations: 5.206 MB / 0.8809 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01037/3.073, allocations: 3.424 MB / 0.8843 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of SimCode: time 1.532e-06/3.073, allocations: 0 / 0.8843 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.874/8.947, allocations: 221.1 MB / 1.1 GB, free: 25.54 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