Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_WorldForces2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.051/2.051, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004374/0.0004373, allocations: 8 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3996/0.4001, allocations: 48.71 MB / 331.4 MB, free: 6.402 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1788/0.579, allocations: 92.78 MB / 424.1 MB, free: 1.473 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/0.5794, allocations: 79.95 kB / 424.2 MB, free: 1.395 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8819/1.461, allocations: 136.8 MB / 0.5479 GB, free: 48.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.955e-06/1.461, allocations: 0 / 0.5479 GB, free: 48.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005051/1.462, allocations: 132 kB / 0.548 GB, free: 48.01 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2364 * Number of variables: 2364 Notification: Performance of Generate backend data structure: time 0.03148/1.493, allocations: 7.26 MB / 0.5551 GB, free: 40.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/1.494, allocations: 11.97 kB / 0.5551 GB, free: 40.66 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005549/1.499, allocations: 1.19 MB / 0.5563 GB, free: 39.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.069/1.568, allocations: 9.487 MB / 0.5656 GB, free: 29.94 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03038/1.599, allocations: 8.756 MB / 0.5741 GB, free: 21.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006323/1.599, allocations: 0.5093 MB / 0.5746 GB, free: 20.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003802/1.603, allocations: 0.6715 MB / 0.5753 GB, free: 19.92 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04724/1.65, allocations: 16.1 MB / 0.591 GB, free: 2.348 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004/1.651, allocations: 95.12 kB / 0.5911 GB, free: 2.254 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002175/1.653, allocations: 327.8 kB / 0.5914 GB, free: 1.934 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002806/1.656, allocations: 1.463 MB / 0.5928 GB, free: 476 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0443/1.7, allocations: 12.85 MB / 0.6054 GB, free: 3.594 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4681/2.168, allocations: 70.66 MB / 0.6744 GB, free: 30.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02453/2.193, allocations: 5.907 MB / 0.6801 GB, free: 29.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003635/2.193, allocations: 49.83 kB / 0.6802 GB, free: 29.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.627e-05/2.193, allocations: 56.69 kB / 0.6802 GB, free: 29.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=242): time 7.223e-06/2.193, allocations: 2.375 kB / 0.6802 GB, free: 29.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=260): time 0.09434/2.288, allocations: 22.49 MB / 0.7022 GB, free: 24.15 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/2.288, allocations: 260.3 kB / 0.7024 GB, free: 23.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01461/2.303, allocations: 6.152 MB / 0.7085 GB, free: 23.39 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007266/2.303, allocations: 65.17 kB / 0.7085 GB, free: 23.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004571/2.308, allocations: 4.605 MB / 0.713 GB, free: 20.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001792/2.31, allocations: 1.002 MB / 0.714 GB, free: 20.33 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00105/2.311, allocations: 168.5 kB / 0.7142 GB, free: 20.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005312/2.311, allocations: 0.66 MB / 0.7148 GB, free: 20 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00772/2.319, allocations: 2.866 MB / 0.7176 GB, free: 19.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01169/2.331, allocations: 7.991 MB / 0.7254 GB, free: 11.37 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01141/2.342, allocations: 4.684 MB / 0.73 GB, free: 9.812 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002246/2.343, allocations: 57 kB / 0.73 GB, free: 9.812 MB / 426.7 MB Notification: Performance of matching and sorting (n=1096) (initialization): time 0.03033/2.373, allocations: 10.94 MB / 0.7407 GB, free: 6.055 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001353/2.373, allocations: 86 kB / 0.7408 GB, free: 6.051 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002825/2.373, allocations: 182.9 kB / 0.741 GB, free: 6.051 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003013/2.377, allocations: 0.8013 MB / 0.7418 GB, free: 5.906 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01168/2.388, allocations: 1.933 MB / 0.7436 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01421/2.402, allocations: 8.455 MB / 0.7519 GB, free: 15.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01098/2.414, allocations: 466.1 kB / 0.7523 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002478/2.416, allocations: 0.5072 MB / 0.7528 GB, free: 14.39 MB / 442.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.01123/2.427, allocations: 3.193 MB / 0.756 GB, free: 11.58 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002044/2.429, allocations: 0.5898 MB / 0.7565 GB, free: 10.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01503/2.444, allocations: 4.341 MB / 0.7608 GB, free: 7.363 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.691e-05/2.445, allocations: 35.45 kB / 0.7608 GB, free: 7.336 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.098e-05/2.445, allocations: 8 kB / 0.7608 GB, free: 7.328 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.122e-05/2.445, allocations: 9.844 kB / 0.7608 GB, free: 7.328 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03821/2.483, allocations: 11.23 MB / 0.7718 GB, free: 14.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.484e-05/2.483, allocations: 7.938 kB / 0.7718 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004295/2.487, allocations: 413.2 kB / 0.7722 GB, free: 13.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002742/2.49, allocations: 0.4907 MB / 0.7727 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000651/2.491, allocations: 49.3 kB / 0.7727 GB, free: 13.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/2.505, allocations: 7.544 MB / 0.7801 GB, free: 6.215 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/2.505, allocations: 4.031 kB / 0.7801 GB, free: 6.211 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02629/2.532, allocations: 7.984 MB / 0.7879 GB, free: 15.93 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004416/2.536, allocations: 0.9935 MB / 0.7889 GB, free: 15 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002081/2.538, allocations: 38.77 kB / 0.7889 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005272/2.544, allocations: 142.8 kB / 0.789 GB, free: 14.86 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001032/2.545, allocations: 153.9 kB / 0.7892 GB, free: 14.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003263/2.545, allocations: 67.89 kB / 0.7892 GB, free: 14.71 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0126/2.558, allocations: 4.4 MB / 0.7935 GB, free: 11.11 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.11e-07/2.558, allocations: 0 / 0.7935 GB, free: 11.11 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01294/2.571, allocations: 1.509 MB / 0.795 GB, free: 9.602 MB / 474.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 () * 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.02591/2.597, allocations: 8.594 MB / 0.8034 GB, free: 1.859 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.3388/2.935, allocations: 7.277 MB / 0.8105 GB, free: 124.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/2.936, allocations: 1.062 kB / 0.8105 GB, free: 124.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006267/2.942, allocations: 2.433 MB / 0.8129 GB, free: 124.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006947/2.949, allocations: 0.7438 MB / 0.8136 GB, free: 124 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5548/3.504, allocations: 186.6 MB / 0.9959 GB, free: 154.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0127/3.516, allocations: 5.035 MB / 1.001 GB, free: 153.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008381/3.525, allocations: 3.292 MB / 1.004 GB, free: 153.7 MB / 0.4948 GB Notification: Performance of SimCode: time 1.403e-06/3.525, allocations: 0 / 1.004 GB, free: 153.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.026/9.551, allocations: 213.7 MB / 1.213 GB, free: 131.4 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat does not exist to compare? outputFormat=mat