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.336/2.336, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004493/0.0004491, allocations: 16 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3639, allocations: 54.86 MB / 369.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1995/0.5634, allocations: 99.57 MB / 468.9 MB, free: 6.871 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/0.5638, allocations: 91.95 kB / 469 MB, free: 6.781 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8338/1.398, allocations: 136.9 MB / 0.5918 GB, free: 10.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.585e-06/1.398, allocations: 0 / 0.5918 GB, free: 10.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005676/1.398, allocations: 132 kB / 0.5919 GB, free: 10.3 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: 2367 * Number of variables: 2367 Notification: Performance of Generate backend data structure: time 0.03457/1.433, allocations: 7.254 MB / 0.599 GB, free: 2.965 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.592e-05/1.433, allocations: 16.02 kB / 0.599 GB, free: 2.949 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006348/1.439, allocations: 1.179 MB / 0.6001 GB, free: 1.758 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07326/1.513, allocations: 9.487 MB / 0.6094 GB, free: 8.246 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03309/1.546, allocations: 8.775 MB / 0.618 GB, free: 15.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008503/1.547, allocations: 0.5093 MB / 0.6185 GB, free: 14.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003827/1.55, allocations: 0.6793 MB / 0.6191 GB, free: 14.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0535/1.604, allocations: 16.1 MB / 0.6348 GB, free: 12.62 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005116/1.605, allocations: 95.12 kB / 0.6349 GB, free: 12.53 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002753/1.607, allocations: 327.8 kB / 0.6353 GB, free: 12.21 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003699/1.611, allocations: 1.463 MB / 0.6367 GB, free: 10.74 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4178/2.029, allocations: 12.85 MB / 0.6492 GB, free: 78.82 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1217/2.151, allocations: 70.7 MB / 0.7183 GB, free: 38.06 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03378/2.185, allocations: 5.914 MB / 0.724 GB, free: 37.36 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004115/2.185, allocations: 49.95 kB / 0.7241 GB, free: 37.36 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.529e-05/2.185, allocations: 63.78 kB / 0.7242 GB, free: 37.32 MB / 474.7 MB Notification: Performance of pre-optimization done (n=242): time 1.047e-05/2.185, allocations: 0 / 0.7242 GB, free: 37.32 MB / 474.7 MB Notification: Performance of matching and sorting (n=260): time 0.1352/2.32, allocations: 22.48 MB / 0.7461 GB, free: 28.66 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001492/2.321, allocations: 265.8 kB / 0.7464 GB, free: 28.38 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02091/2.342, allocations: 6.153 MB / 0.7524 GB, free: 26.34 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006886/2.342, allocations: 63.92 kB / 0.7524 GB, free: 26.28 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00446/2.347, allocations: 4.6 MB / 0.7569 GB, free: 22.73 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001696/2.349, allocations: 1.005 MB / 0.7579 GB, free: 22 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001294/2.35, allocations: 172.5 kB / 0.7581 GB, free: 21.87 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008668/2.351, allocations: 0.6617 MB / 0.7587 GB, free: 21.41 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007833/2.359, allocations: 2.862 MB / 0.7615 GB, free: 20.47 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01138/2.37, allocations: 7.993 MB / 0.7693 GB, free: 12.63 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01181/2.382, allocations: 4.681 MB / 0.7739 GB, free: 11.07 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002888/2.382, allocations: 51.03 kB / 0.7739 GB, free: 11.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.03057/2.413, allocations: 10.94 MB / 0.7846 GB, free: 5.504 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001416/2.413, allocations: 86.03 kB / 0.7847 GB, free: 5.422 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002987/2.413, allocations: 182.4 kB / 0.7849 GB, free: 5.246 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003217/2.417, allocations: 0.8129 MB / 0.7857 GB, free: 4.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01222/2.429, allocations: 1.929 MB / 0.7875 GB, free: 2.883 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01531/2.444, allocations: 8.458 MB / 0.7958 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0139/2.458, allocations: 451.5 kB / 0.7962 GB, free: 10.44 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002824/2.461, allocations: 0.5019 MB / 0.7967 GB, free: 9.945 MB / 490.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 () * Number of clocked 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.01316/2.474, allocations: 3.212 MB / 0.7999 GB, free: 7.125 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002405/2.477, allocations: 0.5822 MB / 0.8004 GB, free: 6.535 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01968/2.496, allocations: 4.338 MB / 0.8047 GB, free: 2.918 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.033e-05/2.497, allocations: 28 kB / 0.8047 GB, free: 2.891 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.405e-05/2.497, allocations: 8 kB / 0.8047 GB, free: 2.883 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.435e-05/2.497, allocations: 12.75 kB / 0.8047 GB, free: 2.883 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.055/2.552, allocations: 11.4 MB / 0.8158 GB, free: 10.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-05/2.552, allocations: 0 / 0.8158 GB, free: 10.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005599/2.557, allocations: 414.5 kB / 0.8162 GB, free: 9.785 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00358/2.561, allocations: 0.497 MB / 0.8167 GB, free: 9.41 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007125/2.562, allocations: 43.19 kB / 0.8168 GB, free: 9.371 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03555/2.597, allocations: 7.537 MB / 0.8241 GB, free: 2.133 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/2.597, allocations: 4.031 kB / 0.8241 GB, free: 2.129 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03833/2.636, allocations: 7.739 MB / 0.8317 GB, free: 11.26 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00568/2.642, allocations: 0.9913 MB / 0.8327 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003037/2.645, allocations: 40 kB / 0.8327 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007576/2.652, allocations: 143.4 kB / 0.8328 GB, free: 10.19 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001331/2.654, allocations: 152.1 kB / 0.833 GB, free: 10.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006853/2.654, allocations: 66.95 kB / 0.833 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01946/2.674, allocations: 4.392 MB / 0.8373 GB, free: 6.434 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.412e-06/2.674, allocations: 0 / 0.8373 GB, free: 6.434 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01805/2.692, allocations: 1.517 MB / 0.8388 GB, free: 4.922 MB / 0.5105 GB 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 () * Number of clocked 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.4685/3.161, allocations: 8.589 MB / 0.8472 GB, free: 119.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01887/3.18, allocations: 7.245 MB / 0.8543 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/3.18, allocations: 3.938 kB / 0.8543 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006261/3.186, allocations: 2.431 MB / 0.8567 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006775/3.193, allocations: 0.758 MB / 0.8574 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1927/3.385, allocations: 186.6 MB / 1.04 GB, free: 9.926 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01362/3.399, allocations: 5.031 MB / 1.045 GB, free: 8.25 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009415/3.409, allocations: 3.301 MB / 1.048 GB, free: 5.582 MB / 0.5573 GB Notification: Performance of SimCode: time 1.062e-06/3.409, allocations: 0 / 1.048 GB, free: 5.582 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.791/9.2, allocations: 213.9 MB / 1.257 GB, free: 43.36 MB / 0.5573 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