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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.381/2.381, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.546e-05/2.556e-05, allocations: 7.938 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3663, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2496/0.616, allocations: 101.9 MB / 460 MB, free: 8.832 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003668/0.6164, allocations: 79.95 kB / 460.1 MB, free: 8.754 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8814/1.498, allocations: 148.6 MB / 0.5944 GB, free: 4.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.749e-06/1.498, allocations: 0 / 0.5944 GB, free: 4.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005987/1.499, allocations: 155.9 kB / 0.5945 GB, free: 4.008 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: 2702 * Number of variables: 2702 Notification: Performance of Generate backend data structure: time 0.03412/1.533, allocations: 7.383 MB / 0.6017 GB, free: 12.55 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/1.533, allocations: 8.031 kB / 0.6018 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0743/1.607, allocations: 9.631 MB / 0.6112 GB, free: 2.883 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03539/1.643, allocations: 9.117 MB / 0.6201 GB, free: 9.684 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006198/1.643, allocations: 252 kB / 0.6203 GB, free: 9.438 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004524/1.648, allocations: 463.8 kB / 0.6207 GB, free: 8.984 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3764/2.024, allocations: 10.43 MB / 0.6309 GB, free: 66.48 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04485/2.069, allocations: 16.1 MB / 0.6467 GB, free: 62.11 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006078/2.07, allocations: 112.9 kB / 0.6468 GB, free: 62.11 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003513/2.073, allocations: 50.5 kB / 0.6468 GB, free: 62.11 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003959/2.077, allocations: 1.696 MB / 0.6485 GB, free: 62.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1151/2.192, allocations: 77.61 MB / 0.7243 GB, free: 31.66 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01083/2.203, allocations: 5.855 MB / 0.73 GB, free: 28.89 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007475/2.211, allocations: 3.99 MB / 0.7339 GB, free: 27.18 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004293/2.211, allocations: 59.78 kB / 0.7339 GB, free: 27.17 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.866e-05/2.211, allocations: 69.94 kB / 0.734 GB, free: 27.11 MB / 474.7 MB Notification: Performance of pre-optimization done (n=307): time 8.106e-06/2.211, allocations: 0 / 0.734 GB, free: 27.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=340): time 0.09768/2.309, allocations: 30.08 MB / 0.7634 GB, free: 14.24 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001997/2.309, allocations: 294.6 kB / 0.7637 GB, free: 13.89 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01498/2.324, allocations: 5.104 MB / 0.7686 GB, free: 9.531 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009993/2.325, allocations: 25.7 kB / 0.7687 GB, free: 9.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006217/2.332, allocations: 5.287 MB / 0.7738 GB, free: 4.828 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002588/2.334, allocations: 1.249 MB / 0.775 GB, free: 3.707 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001616/2.336, allocations: 4 kB / 0.775 GB, free: 3.703 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001106/2.337, allocations: 0.7279 MB / 0.7758 GB, free: 3.086 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01015/2.347, allocations: 3.486 MB / 0.7792 GB, free: 0 / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01629/2.364, allocations: 9.269 MB / 0.7882 GB, free: 4.641 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01445/2.378, allocations: 5.598 MB / 0.7937 GB, free: 60 kB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002652/2.378, allocations: 56 kB / 0.7937 GB, free: 4 kB / 490.7 MB Notification: Performance of matching and sorting (n=1289) (initialization): time 0.04057/2.419, allocations: 12.46 MB / 0.8059 GB, free: 5.242 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001962/2.419, allocations: 92 kB / 0.806 GB, free: 5.152 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003704/2.42, allocations: 208 kB / 0.8062 GB, free: 4.949 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006159/2.426, allocations: 1.376 MB / 0.8075 GB, free: 3.867 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01588/2.442, allocations: 2.319 MB / 0.8098 GB, free: 1.863 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4125/2.854, allocations: 10.74 MB / 0.8203 GB, free: 96.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01091/2.865, allocations: 362.6 kB / 0.8206 GB, free: 96.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002357/2.868, allocations: 0.585 MB / 0.8212 GB, free: 96.8 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 941 * 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 (1214): * Single equations (assignments): 1208 * 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,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002671/2.87, allocations: 0.6246 MB / 0.8218 GB, free: 96.69 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01685/2.887, allocations: 6.255 MB / 0.8279 GB, free: 96.59 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002057/2.889, allocations: 0.5547 MB / 0.8285 GB, free: 96.59 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01866/2.908, allocations: 6.263 MB / 0.8346 GB, free: 96.39 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001021/2.908, allocations: 35.34 kB / 0.8346 GB, free: 96.39 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.631e-05/2.908, allocations: 7.906 kB / 0.8346 GB, free: 96.39 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001021/2.908, allocations: 17.19 kB / 0.8346 GB, free: 96.39 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03961/2.948, allocations: 13.91 MB / 0.8482 GB, free: 95.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.995e-05/2.948, allocations: 5.688 kB / 0.8482 GB, free: 95.63 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006031/2.954, allocations: 0.5784 MB / 0.8488 GB, free: 95.63 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004857/2.959, allocations: 1.049 MB / 0.8498 GB, free: 95.61 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008281/2.96, allocations: 13.7 kB / 0.8498 GB, free: 95.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01739/2.977, allocations: 9.729 MB / 0.8593 GB, free: 91.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/2.977, allocations: 0 / 0.8593 GB, free: 91.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02487/3.002, allocations: 10.75 MB / 0.8698 GB, free: 89.66 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005333/3.008, allocations: 1.081 MB / 0.8709 GB, free: 89.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00243/3.01, allocations: 0 / 0.8709 GB, free: 89.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007801/3.018, allocations: 153.1 kB / 0.871 GB, free: 89.06 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001773/3.02, allocations: 199.6 kB / 0.8712 GB, free: 89.03 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007093/3.021, allocations: 90.34 kB / 0.8713 GB, free: 89.01 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0122/3.033, allocations: 3.445 MB / 0.8747 GB, free: 87.75 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.082e-06/3.033, allocations: 3.844 kB / 0.8747 GB, free: 87.75 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01837/3.051, allocations: 1.54 MB / 0.8762 GB, free: 87.74 MB / 0.4948 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.03422/3.086, allocations: 11.62 MB / 0.8875 GB, free: 82.52 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01997/3.106, allocations: 8.764 MB / 0.8961 GB, free: 79.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/3.106, allocations: 0 / 0.8961 GB, free: 79.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008062/3.114, allocations: 3.39 MB / 0.8994 GB, free: 78.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006101/3.12, allocations: 0.6268 MB / 0.9 GB, free: 78.04 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05459/3.175, allocations: 17.18 MB / 0.9168 GB, free: 66.46 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01305/3.188, allocations: 5.617 MB / 0.9223 GB, free: 62.38 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009151/3.197, allocations: 3.664 MB / 0.9258 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of SimCode: time 2.385e-06/3.197, allocations: 0 / 0.9258 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.004/9.201, allocations: 235.7 MB / 1.156 GB, free: 11.18 MB / 0.5105 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