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.WorldForces.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.WorldForces,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.497/2.497, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.416e-05/4.428e-05, allocations: 4 kB / 309.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.3969, allocations: 54.85 MB / 364.6 MB, free: 5.559 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1909/0.5879, allocations: 102.5 MB / 467.2 MB, free: 9.898 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/0.5882, allocations: 76.92 kB / 467.2 MB, free: 9.824 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.032/1.621, allocations: 152 MB / 0.6047 GB, free: 88.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.056e-06/1.621, allocations: 0 / 0.6047 GB, free: 88.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007316/1.621, allocations: 151.9 kB / 0.6048 GB, free: 88.25 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: 2702 * Number of variables: 2702 Notification: Performance of Generate backend data structure: time 0.04282/1.664, allocations: 7.386 MB / 0.612 GB, free: 80.79 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/1.664, allocations: 8.031 kB / 0.612 GB, free: 80.78 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006477/1.671, allocations: 1.347 MB / 0.6134 GB, free: 79.42 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06975/1.741, allocations: 9.636 MB / 0.6228 GB, free: 69.76 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03184/1.772, allocations: 9.133 MB / 0.6317 GB, free: 60.55 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006834/1.773, allocations: 0.5698 MB / 0.6322 GB, free: 59.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004185/1.777, allocations: 0.7653 MB / 0.633 GB, free: 59.21 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05205/1.829, allocations: 18.03 MB / 0.6506 GB, free: 39.53 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005794/1.83, allocations: 110.9 kB / 0.6507 GB, free: 39.42 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00349/1.834, allocations: 367.8 kB / 0.6511 GB, free: 39.06 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003606/1.837, allocations: 1.695 MB / 0.6527 GB, free: 37.36 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04357/1.881, allocations: 14.39 MB / 0.6668 GB, free: 22.94 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5806/2.461, allocations: 80.81 MB / 0.7457 GB, free: 40.66 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0614/2.523, allocations: 7.147 MB / 0.7527 GB, free: 39.93 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01177/2.535, allocations: 4.052 MB / 0.7566 GB, free: 39.88 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005909/2.535, allocations: 69.53 kB / 0.7567 GB, free: 39.88 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.718e-05/2.536, allocations: 69.03 kB / 0.7567 GB, free: 39.84 MB / 474.7 MB Notification: Performance of pre-optimization done (n=307): time 1.238e-05/2.536, allocations: 0 / 0.7567 GB, free: 39.84 MB / 474.7 MB Notification: Performance of matching and sorting (n=340): time 0.1521/2.688, allocations: 27.36 MB / 0.7835 GB, free: 32.82 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/2.688, allocations: 300 kB / 0.7838 GB, free: 32.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01871/2.707, allocations: 6.512 MB / 0.7901 GB, free: 31.97 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001077/2.708, allocations: 76.28 kB / 0.7902 GB, free: 31.94 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005464/2.713, allocations: 5.088 MB / 0.7952 GB, free: 28.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002543/2.716, allocations: 1.279 MB / 0.7964 GB, free: 27.46 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002077/2.718, allocations: 199.4 kB / 0.7966 GB, free: 27.31 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001189/2.719, allocations: 0.7154 MB / 0.7973 GB, free: 26.82 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01031/2.73, allocations: 3.601 MB / 0.8008 GB, free: 25.58 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01495/2.745, allocations: 9.197 MB / 0.8098 GB, free: 16.86 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01416/2.759, allocations: 5.7 MB / 0.8154 GB, free: 15.17 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002771/2.759, allocations: 56.25 kB / 0.8154 GB, free: 15.17 MB / 474.7 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.03803/2.797, allocations: 13.45 MB / 0.8285 GB, free: 8.207 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001459/2.798, allocations: 88 kB / 0.8286 GB, free: 8.121 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003133/2.798, allocations: 203.9 kB / 0.8288 GB, free: 7.922 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005787/2.804, allocations: 1.376 MB / 0.8302 GB, free: 6.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01665/2.82, allocations: 2.244 MB / 0.8324 GB, free: 4.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03354/2.854, allocations: 11.3 MB / 0.8434 GB, free: 10.68 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01418/2.868, allocations: 0.5389 MB / 0.8439 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00277/2.871, allocations: 0.5658 MB / 0.8445 GB, free: 9.664 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 899 * Number of states: 0 () * Number of discrete variables: 60 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],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],worldForce.color[3],worldForce.color[2],worldForce.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],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 (1172): * Single equations (assignments): 1166 * 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%) 13,(1,100.0%) 14,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004588/2.876, allocations: 0.8366 MB / 0.8453 GB, free: 8.828 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002217/2.878, allocations: 0.644 MB / 0.8459 GB, free: 8.176 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02291/2.901, allocations: 6.586 MB / 0.8524 GB, free: 2.75 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.356e-05/2.901, allocations: 36 kB / 0.8524 GB, free: 2.715 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.02e-05/2.901, allocations: 18.34 kB / 0.8524 GB, free: 2.699 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.531e-05/2.901, allocations: 17.44 kB / 0.8524 GB, free: 2.699 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05623/2.957, allocations: 15.45 MB / 0.8675 GB, free: 6.379 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-05/2.957, allocations: 0 / 0.8675 GB, free: 6.379 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006486/2.964, allocations: 0.5908 MB / 0.8681 GB, free: 5.906 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005414/2.969, allocations: 1.045 MB / 0.8691 GB, free: 5.152 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009866/2.97, allocations: 65.17 kB / 0.8692 GB, free: 5.094 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02209/2.993, allocations: 10.25 MB / 0.8792 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/2.993, allocations: 4.109 kB / 0.8792 GB, free: 11.56 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03152/3.024, allocations: 11.12 MB / 0.89 GB, free: 1.168 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005636/3.03, allocations: 1.215 MB / 0.8912 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002873/3.033, allocations: 53.95 kB / 0.8913 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00689/3.04, allocations: 203.7 kB / 0.8915 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001383/3.041, allocations: 190.6 kB / 0.8917 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006468/3.042, allocations: 89.02 kB / 0.8917 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01481/3.057, allocations: 4.624 MB / 0.8963 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.22e-07/3.057, allocations: 4 kB / 0.8963 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01351/3.07, allocations: 1.792 MB / 0.898 GB, free: 9.023 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (286): * Single equations (assignments): 280 * 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 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4106/3.481, allocations: 12.02 MB / 0.9097 GB, free: 147.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02495/3.506, allocations: 9.11 MB / 0.9186 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/3.506, allocations: 1.656 kB / 0.9186 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01038/3.516, allocations: 3.482 MB / 0.922 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008455/3.525, allocations: 0.8227 MB / 0.9229 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06547/3.59, allocations: 17.68 MB / 0.9401 GB, free: 144 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01528/3.606, allocations: 5.609 MB / 0.9456 GB, free: 143.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01072/3.617, allocations: 3.731 MB / 0.9492 GB, free: 140.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.623e-06/3.617, allocations: 0 / 0.9492 GB, free: 140.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.135/9.752, allocations: 242.8 MB / 1.186 GB, free: 107.9 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat does not exist to compare? outputFormat=mat