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.WorldForces2.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.WorldForces2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.401/2.401, allocations: 235 MB / 248.1 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.659e-05/3.674e-05, allocations: 4 kB / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4768/0.4769, allocations: 54.85 MB / 364.6 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2624/0.7394, allocations: 99.49 MB / 464.1 MB, free: 12.99 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.7397, allocations: 75.97 kB / 464.2 MB, free: 12.91 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.051/1.791, allocations: 137.1 MB / 0.5872 GB, free: 99.32 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.984e-06/1.791, allocations: 0 / 0.5872 GB, free: 99.32 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004985/1.792, allocations: 136.8 kB / 0.5873 GB, free: 99.32 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: 2367 * Number of variables: 2367 Notification: Performance of Generate backend data structure: time 0.02812/1.82, allocations: 6.637 MB / 0.5938 GB, free: 95 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/1.82, allocations: 14.22 kB / 0.5938 GB, free: 94.99 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006114/1.826, allocations: 1.178 MB / 0.595 GB, free: 94.21 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06913/1.895, allocations: 9.496 MB / 0.6042 GB, free: 88.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03232/1.928, allocations: 8.721 MB / 0.6127 GB, free: 79.55 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006612/1.928, allocations: 0.5058 MB / 0.6132 GB, free: 79.08 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004031/1.932, allocations: 0.6809 MB / 0.6139 GB, free: 78.44 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0502/1.983, allocations: 15.98 MB / 0.6295 GB, free: 61.06 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005941/1.983, allocations: 95.12 kB / 0.6296 GB, free: 60.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003554/1.987, allocations: 327.8 kB / 0.6299 GB, free: 60.64 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003355/1.99, allocations: 1.46 MB / 0.6313 GB, free: 59.18 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0398/2.03, allocations: 12.65 MB / 0.6437 GB, free: 46.51 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5175/2.548, allocations: 70.68 MB / 0.7127 GB, free: 56.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02612/2.574, allocations: 5.844 MB / 0.7184 GB, free: 55.7 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007391/2.581, allocations: 3.034 MB / 0.7214 GB, free: 55.66 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004279/2.582, allocations: 49.72 kB / 0.7214 GB, free: 55.66 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.683e-05/2.582, allocations: 63.53 kB / 0.7215 GB, free: 55.62 MB / 474.7 MB Notification: Performance of pre-optimization done (n=242): time 7.184e-06/2.582, allocations: 0 / 0.7215 GB, free: 55.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=260): time 0.08983/2.672, allocations: 18.97 MB / 0.74 GB, free: 50.58 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/2.672, allocations: 262.6 kB / 0.7403 GB, free: 50.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0169/2.689, allocations: 6.081 MB / 0.7462 GB, free: 49.79 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007878/2.69, allocations: 66.17 kB / 0.7463 GB, free: 49.75 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004954/2.695, allocations: 4.606 MB / 0.7508 GB, free: 47.18 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001741/2.696, allocations: 1.007 MB / 0.7517 GB, free: 46.61 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001157/2.698, allocations: 170 kB / 0.7519 GB, free: 46.61 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000625/2.698, allocations: 0.6659 MB / 0.7526 GB, free: 46.29 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007504/2.706, allocations: 2.79 MB / 0.7553 GB, free: 46.26 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01172/2.718, allocations: 7.908 MB / 0.763 GB, free: 39.55 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01115/2.729, allocations: 4.66 MB / 0.7676 GB, free: 38.23 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002542/2.729, allocations: 54.56 kB / 0.7676 GB, free: 38.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.03681/2.766, allocations: 10.79 MB / 0.7781 GB, free: 35.15 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002325/2.766, allocations: 85.64 kB / 0.7782 GB, free: 35.15 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003977/2.767, allocations: 181.6 kB / 0.7784 GB, free: 35.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004558/2.771, allocations: 0.8087 MB / 0.7792 GB, free: 35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01675/2.788, allocations: 1.927 MB / 0.7811 GB, free: 34.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01889/2.807, allocations: 8.294 MB / 0.7892 GB, free: 28.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01462/2.822, allocations: 455.8 kB / 0.7896 GB, free: 28.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002198/2.824, allocations: 0.5087 MB / 0.7901 GB, free: 28.76 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 54 (worldForce2.color[3],worldForce2.color[2],worldForce2.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],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.color[3],worldForce1.color[2],worldForce1.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],fixed1.color[3],fixed1.color[2],fixed1.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 (1033): * Single equations (assignments): 1027 * 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%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003349/2.827, allocations: 0.7592 MB / 0.7908 GB, free: 28.14 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001752/2.829, allocations: 0.5788 MB / 0.7914 GB, free: 27.82 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01334/2.842, allocations: 4.275 MB / 0.7956 GB, free: 25.66 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.919e-05/2.843, allocations: 28.94 kB / 0.7956 GB, free: 25.63 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.527e-05/2.843, allocations: 8 kB / 0.7956 GB, free: 25.62 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.465e-05/2.843, allocations: 16.38 kB / 0.7956 GB, free: 25.62 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03518/2.878, allocations: 11.15 MB / 0.8065 GB, free: 16.56 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.063e-05/2.878, allocations: 0 / 0.8065 GB, free: 16.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00464/2.883, allocations: 416.2 kB / 0.8069 GB, free: 16.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002539/2.885, allocations: 0.5005 MB / 0.8074 GB, free: 15.85 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006884/2.886, allocations: 47.33 kB / 0.8075 GB, free: 15.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01349/2.899, allocations: 7.385 MB / 0.8147 GB, free: 8.664 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/2.9, allocations: 7.984 kB / 0.8147 GB, free: 8.656 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02385/2.923, allocations: 7.62 MB / 0.8221 GB, free: 1.793 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004225/2.928, allocations: 0.9948 MB / 0.8231 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002035/2.93, allocations: 41.48 kB / 0.8231 GB, free: 0.8203 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005422/2.935, allocations: 138.7 kB / 0.8233 GB, free: 0.7266 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009433/2.936, allocations: 155.1 kB / 0.8234 GB, free: 0.6289 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002759/2.937, allocations: 70.47 kB / 0.8235 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.02884/2.965, allocations: 5.317 MB / 0.8287 GB, free: 15.12 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.82e-07/2.965, allocations: 0 / 0.8287 GB, free: 15.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0113/2.977, allocations: 1.517 MB / 0.8302 GB, free: 13.61 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,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 209 * 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%) 10,(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02121/2.998, allocations: 8.465 MB / 0.8384 GB, free: 5.898 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02042/3.019, allocations: 7.149 MB / 0.8454 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/3.019, allocations: 4 kB / 0.8454 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006724/3.025, allocations: 2.398 MB / 0.8477 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007311/3.033, allocations: 0.7492 MB / 0.8485 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05925/3.092, allocations: 15 MB / 0.8631 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0154/3.107, allocations: 5.031 MB / 0.868 GB, free: 8.23 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01011/3.118, allocations: 3.295 MB / 0.8713 GB, free: 4.934 MB / 0.5105 GB Notification: Performance of SimCode: time 2.014e-06/3.118, allocations: 0 / 0.8713 GB, free: 4.934 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.421/9.539, allocations: 213.3 MB / 1.08 GB, free: 40.84 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat