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.FrameForcesAndTorques3.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.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.472/2.472, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.13e-05/3.145e-05, allocations: 4 kB / 309.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.407/0.4071, allocations: 54.84 MB / 364.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1845/0.5916, allocations: 100.8 MB / 465.4 MB, free: 11.63 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/0.592, allocations: 71.97 kB / 465.5 MB, free: 11.56 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8554/1.447, allocations: 131.1 MB / 0.5826 GB, free: 100.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.815e-06/1.447, allocations: 0 / 0.5826 GB, free: 100.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003907/1.448, allocations: 125 kB / 0.5827 GB, free: 100.9 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: 2374 * Number of variables: 2374 Notification: Performance of Generate backend data structure: time 0.02659/1.474, allocations: 6.377 MB / 0.5889 GB, free: 97.84 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/1.475, allocations: 10.12 kB / 0.589 GB, free: 97.84 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00595/1.481, allocations: 1.182 MB / 0.5901 GB, free: 97.28 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05223/1.533, allocations: 7.095 MB / 0.597 GB, free: 93.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02641/1.559, allocations: 7.24 MB / 0.6041 GB, free: 88.74 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006512/1.56, allocations: 0.4969 MB / 0.6046 GB, free: 88.29 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003962/1.564, allocations: 0.6633 MB / 0.6052 GB, free: 87.67 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05292/1.617, allocations: 16.43 MB / 0.6213 GB, free: 70.12 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004957/1.617, allocations: 75.33 kB / 0.6214 GB, free: 70.05 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003725/1.621, allocations: 307.8 kB / 0.6217 GB, free: 69.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003552/1.625, allocations: 1.581 MB / 0.6232 GB, free: 68.16 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04468/1.67, allocations: 13.89 MB / 0.6368 GB, free: 54.25 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1145/1.784, allocations: 66.22 MB / 0.7014 GB, free: 2.207 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3763/2.16, allocations: 6.973 MB / 0.7082 GB, free: 107.9 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009635/2.17, allocations: 4.171 MB / 0.7123 GB, free: 107.8 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04307/2.213, allocations: 15.05 MB / 0.727 GB, free: 106.1 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.065e-05/2.213, allocations: 67.62 kB / 0.7271 GB, free: 106 MB / 474.7 MB Notification: Performance of pre-optimization done (n=306): time 7.724e-06/2.213, allocations: 0 / 0.7271 GB, free: 106 MB / 474.7 MB Notification: Performance of matching and sorting (n=348): time 0.1267/2.34, allocations: 26.04 MB / 0.7525 GB, free: 97.53 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/2.34, allocations: 219.6 kB / 0.7527 GB, free: 97.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01568/2.356, allocations: 4.648 MB / 0.7573 GB, free: 95.61 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00117/2.357, allocations: 81.81 kB / 0.7573 GB, free: 95.54 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004914/2.362, allocations: 4.232 MB / 0.7615 GB, free: 92.19 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003095/2.365, allocations: 1.281 MB / 0.7627 GB, free: 91.24 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002189/2.368, allocations: 167.8 kB / 0.7629 GB, free: 91.11 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001188/2.369, allocations: 0.6546 MB / 0.7635 GB, free: 90.65 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01253/2.381, allocations: 3.536 MB / 0.767 GB, free: 89.41 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01443/2.396, allocations: 7.992 MB / 0.7748 GB, free: 82.24 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/2.408, allocations: 5.258 MB / 0.7799 GB, free: 80.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001699/2.409, allocations: 49.88 kB / 0.78 GB, free: 80.09 MB / 474.7 MB Notification: Performance of matching and sorting (n=1068) (initialization): time 0.03662/2.445, allocations: 12.71 MB / 0.7924 GB, free: 69.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001346/2.445, allocations: 68 kB / 0.7924 GB, free: 69.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002539/2.446, allocations: 156 kB / 0.7926 GB, free: 69.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00709/2.453, allocations: 1.663 MB / 0.7942 GB, free: 68.03 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01351/2.466, allocations: 1.924 MB / 0.7961 GB, free: 66.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02138/2.488, allocations: 11.36 MB / 0.8072 GB, free: 56.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01033/2.498, allocations: 499.5 kB / 0.8077 GB, free: 55.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002233/2.5, allocations: 479.3 kB / 0.8081 GB, free: 55.31 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 710 * Number of states: 0 () * Number of discrete variables: 48 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (996): * Single equations (assignments): 991 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003387/2.504, allocations: 0.7177 MB / 0.8088 GB, free: 54.59 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001501/2.505, allocations: 0.4975 MB / 0.8093 GB, free: 54.09 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02225/2.528, allocations: 7.357 MB / 0.8165 GB, free: 48.06 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.296e-05/2.528, allocations: 47.59 kB / 0.8165 GB, free: 48.02 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.699e-05/2.528, allocations: 8.75 kB / 0.8165 GB, free: 48.01 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.246e-05/2.528, allocations: 18.39 kB / 0.8166 GB, free: 48 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05006/2.578, allocations: 16 MB / 0.8322 GB, free: 33.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.285e-05/2.578, allocations: 0 / 0.8322 GB, free: 33.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006505/2.585, allocations: 0.6085 MB / 0.8328 GB, free: 33.35 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006487/2.591, allocations: 1.411 MB / 0.8342 GB, free: 31.93 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001021/2.592, allocations: 63.98 kB / 0.8342 GB, free: 31.87 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02085/2.613, allocations: 10.52 MB / 0.8445 GB, free: 21.09 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/2.613, allocations: 0.6562 kB / 0.8445 GB, free: 21.09 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03936/2.653, allocations: 11.9 MB / 0.8561 GB, free: 9.121 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006543/2.659, allocations: 1.096 MB / 0.8572 GB, free: 8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00273/2.662, allocations: 56.92 kB / 0.8572 GB, free: 7.945 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007855/2.67, allocations: 259.6 kB / 0.8575 GB, free: 7.691 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001425/2.671, allocations: 202 kB / 0.8577 GB, free: 7.492 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000484/2.672, allocations: 87.58 kB / 0.8578 GB, free: 7.41 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008592/2.68, allocations: 3.265 MB / 0.8609 GB, free: 4.164 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.062e-06/2.681, allocations: 0 / 0.8609 GB, free: 4.164 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01029/2.691, allocations: 1.615 MB / 0.8625 GB, free: 2.555 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (294): * Single equations (assignments): 289 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.03509/2.726, allocations: 12.73 MB / 0.875 GB, free: 5.734 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.3726/3.099, allocations: 8.826 MB / 0.8836 GB, free: 132.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.301e-05/3.099, allocations: 4.719 kB / 0.8836 GB, free: 132.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01196/3.111, allocations: 3.719 MB / 0.8872 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005969/3.117, allocations: 0.6108 MB / 0.8878 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0603/3.177, allocations: 15.84 MB / 0.9033 GB, free: 129.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01286/3.19, allocations: 4.932 MB / 0.9081 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009712/3.2, allocations: 3.104 MB / 0.9111 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.392e-06/3.2, allocations: 1.969 kB / 0.9111 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.885/9.085, allocations: 182 MB / 1.089 GB, free: 121.4 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat does not exist to compare? outputFormat=mat