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.Force2.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.Force2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Force2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.223/2.223, allocations: 235 MB / 248.1 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.626e-05/3.631e-05, allocations: 4 kB / 309.8 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.4129, allocations: 54.86 MB / 364.6 MB, free: 5.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1875/0.6005, allocations: 105.4 MB / 470 MB, free: 7.105 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.6008, allocations: 75.97 kB / 470.1 MB, free: 7.031 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.267/1.868, allocations: 237.1 MB / 0.6906 GB, free: 376 kB / 458.7 MB Notification: Performance of FrontEnd: time 2.875e-06/1.868, allocations: 0 / 0.6906 GB, free: 376 kB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008858/1.869, allocations: 255.9 kB / 0.6909 GB, free: 120 kB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4386 * Number of variables: 4386 Notification: Performance of Generate backend data structure: time 0.05701/1.926, allocations: 12.25 MB / 0.7028 GB, free: 3.77 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.057e-05/1.926, allocations: 15.97 kB / 0.7029 GB, free: 3.754 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01169/1.938, allocations: 2.163 MB / 0.705 GB, free: 1.582 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4943/2.432, allocations: 12.79 MB / 0.7175 GB, free: 44.16 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04991/2.482, allocations: 13.23 MB / 0.7304 GB, free: 43.56 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001254/2.483, allocations: 0.9412 MB / 0.7313 GB, free: 43.54 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006919/2.49, allocations: 1.257 MB / 0.7325 GB, free: 43.52 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09901/2.589, allocations: 30.03 MB / 0.7619 GB, free: 37.45 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001152/2.59, allocations: 149 kB / 0.762 GB, free: 37.44 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006496/2.597, allocations: 0.5834 MB / 0.7626 GB, free: 37.44 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006752/2.604, allocations: 2.862 MB / 0.7654 GB, free: 37.41 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08244/2.686, allocations: 24.52 MB / 0.7893 GB, free: 34.87 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6942/3.38, allocations: 127.3 MB / 0.9136 GB, free: 34.13 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07021/3.451, allocations: 14.91 MB / 0.9282 GB, free: 33.37 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01623/3.467, allocations: 8.102 MB / 0.9361 GB, free: 33.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05496/3.522, allocations: 20.23 MB / 0.9558 GB, free: 30.52 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001061/3.522, allocations: 96.5 kB / 0.9559 GB, free: 30.47 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=566): time 1.02e-05/3.522, allocations: 0 / 0.9559 GB, free: 30.47 MB / 0.5261 GB Notification: Performance of matching and sorting (n=650): time 0.2771/3.799, allocations: 60.84 MB / 1.015 GB, free: 17.58 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/3.8, allocations: 384.4 kB / 1.016 GB, free: 17.19 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02875/3.828, allocations: 10.52 MB / 1.026 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001905/3.83, allocations: 124.7 kB / 1.026 GB, free: 10.85 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.007315/3.838, allocations: 7.891 MB / 1.034 GB, free: 3.664 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.004074/3.842, allocations: 2.381 MB / 1.036 GB, free: 1.551 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003055/3.845, allocations: 308 kB / 1.036 GB, free: 1.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001845/3.847, allocations: 0.9599 MB / 1.037 GB, free: 476 kB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05536/3.902, allocations: 8.811 MB / 1.046 GB, free: 0 / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0294/3.932, allocations: 14.89 MB / 1.061 GB, free: 14.38 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02659/3.958, allocations: 9.828 MB / 1.07 GB, free: 6.445 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003657/3.959, allocations: 80.66 kB / 1.07 GB, free: 6.367 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1995) (initialization): time 0.1077/4.066, allocations: 24.81 MB / 1.094 GB, free: 3.395 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002791/4.067, allocations: 136 kB / 1.095 GB, free: 3.262 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005309/4.067, allocations: 288 kB / 1.095 GB, free: 2.98 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01568/4.083, allocations: 3.272 MB / 1.098 GB, free: 15.69 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03296/4.116, allocations: 3.74 MB / 1.102 GB, free: 11.95 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06964/4.186, allocations: 22.46 MB / 1.124 GB, free: 4.977 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0208/4.207, allocations: 0.9285 MB / 1.125 GB, free: 4.047 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004403/4.211, allocations: 0.8749 MB / 1.125 GB, free: 3.172 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1317 * Number of states: 0 () * Number of discrete variables: 117 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],force4.connectionLineColor[3],force4.connectionLineColor[2],force4.connectionLineColor[1],force4.torqueColor[3],force4.torqueColor[2],force4.torqueColor[1],force4.forceColor[3],force4.forceColor[2],force4.forceColor[1],force3.connectionLineColor[3],force3.connectionLineColor[2],force3.connectionLineColor[1],force3.torqueColor[3],force3.torqueColor[2],force3.torqueColor[1],force3.forceColor[3],force3.forceColor[2],force3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1877): * Single equations (assignments): 1870 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 22,(2,100.0%) 22,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007253/4.218, allocations: 1.265 MB / 1.127 GB, free: 1.898 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00439/4.223, allocations: 1.064 MB / 1.128 GB, free: 0.8203 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05395/4.277, allocations: 14.62 MB / 1.142 GB, free: 2.148 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001291/4.277, allocations: 68 kB / 1.142 GB, free: 2.082 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.622e-05/4.277, allocations: 17.69 kB / 1.142 GB, free: 2.066 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001883/4.277, allocations: 47.77 kB / 1.142 GB, free: 2.02 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5282/4.805, allocations: 32.39 MB / 1.174 GB, free: 171 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000115/4.806, allocations: 11.25 kB / 1.174 GB, free: 171 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01371/4.819, allocations: 1.312 MB / 1.175 GB, free: 171 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01326/4.833, allocations: 2.817 MB / 1.178 GB, free: 171 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002032/4.835, allocations: 122 kB / 1.178 GB, free: 171 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04378/4.878, allocations: 21.01 MB / 1.198 GB, free: 165.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-05/4.879, allocations: 20.19 kB / 1.198 GB, free: 165.6 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06119/4.94, allocations: 26.12 MB / 1.224 GB, free: 158.1 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01015/4.95, allocations: 2.189 MB / 1.226 GB, free: 157.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004788/4.955, allocations: 121.9 kB / 1.226 GB, free: 157.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01222/4.967, allocations: 454.9 kB / 1.227 GB, free: 157.4 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002759/4.97, allocations: 411.9 kB / 1.227 GB, free: 157.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001726/4.972, allocations: 170.8 kB / 1.227 GB, free: 157.3 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.02141/4.993, allocations: 7.591 MB / 1.235 GB, free: 154.7 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.523e-06/4.993, allocations: 0 / 1.235 GB, free: 154.7 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02168/5.015, allocations: 3.081 MB / 1.238 GB, free: 154.4 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (559): * Single equations (assignments): 552 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 17,(4,75.0%) 17,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06467/5.08, allocations: 27.28 MB / 1.264 GB, free: 141 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.03916/5.119, allocations: 16.52 MB / 1.28 GB, free: 131.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.792e-05/5.119, allocations: 0 / 1.28 GB, free: 131.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.01992/5.139, allocations: 7.085 MB / 1.287 GB, free: 125.3 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01248/5.151, allocations: 1.331 MB / 1.289 GB, free: 124.2 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1014/5.253, allocations: 31.02 MB / 1.319 GB, free: 97.67 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02189/5.275, allocations: 8.78 MB / 1.327 GB, free: 91.38 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01799/5.293, allocations: 6.429 MB / 1.334 GB, free: 85.4 MB / 0.6198 GB Notification: Performance of SimCode: time 1.654e-06/5.293, allocations: 0 / 1.334 GB, free: 85.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.057/14.35, allocations: 445.8 MB / 1.769 GB, free: 75.88 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Force2_res.mat does not exist to compare? outputFormat=mat