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.FrameTorques.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.FrameTorques,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.222/2.222, allocations: 209.3 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004935/0.0004935, allocations: 11.98 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3965/0.397, allocations: 48.7 MB / 331.4 MB, free: 6.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2531/0.6502, allocations: 94.05 MB / 425.4 MB, free: 220 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004307/0.6507, allocations: 75.97 kB / 425.5 MB, free: 144 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8658/1.517, allocations: 114.3 MB / 0.5272 GB, free: 69.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.216e-06/1.517, allocations: 0 / 0.5272 GB, free: 69.58 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004148/1.517, allocations: 108 kB / 0.5273 GB, free: 69.48 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: 1954 * Number of variables: 1954 Notification: Performance of Generate backend data structure: time 0.02567/1.543, allocations: 5.944 MB / 0.5331 GB, free: 63.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/1.543, allocations: 8.031 kB / 0.5331 GB, free: 63.45 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004693/1.547, allocations: 0.9845 MB / 0.534 GB, free: 62.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05115/1.599, allocations: 6.943 MB / 0.5408 GB, free: 55.49 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02468/1.623, allocations: 6.895 MB / 0.5476 GB, free: 48.54 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005358/1.624, allocations: 418.9 kB / 0.548 GB, free: 48.13 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003148/1.627, allocations: 0.5388 MB / 0.5485 GB, free: 47.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03945/1.667, allocations: 13.35 MB / 0.5615 GB, free: 32.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004096/1.667, allocations: 71.34 kB / 0.5616 GB, free: 32.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00278/1.67, allocations: 267.9 kB / 0.5618 GB, free: 32.64 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002747/1.673, allocations: 1.254 MB / 0.5631 GB, free: 31.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03292/1.706, allocations: 10.66 MB / 0.5735 GB, free: 20.71 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4689/2.175, allocations: 59.63 MB / 0.6317 GB, free: 54.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0193/2.194, allocations: 4.639 MB / 0.6362 GB, free: 53.37 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02603/2.22, allocations: 6.501 MB / 0.6426 GB, free: 52.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.539e-05/2.22, allocations: 58.09 kB / 0.6427 GB, free: 52.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=183): time 8.767e-06/2.22, allocations: 0 / 0.6427 GB, free: 52.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=195): time 0.09551/2.316, allocations: 16.91 MB / 0.6592 GB, free: 47.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/2.316, allocations: 228.7 kB / 0.6594 GB, free: 47.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01528/2.331, allocations: 5.206 MB / 0.6645 GB, free: 46.74 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000511/2.332, allocations: 52.48 kB / 0.6645 GB, free: 46.71 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003851/2.336, allocations: 3.936 MB / 0.6684 GB, free: 44.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001353/2.337, allocations: 0.7714 MB / 0.6691 GB, free: 44.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001096/2.338, allocations: 145 kB / 0.6693 GB, free: 44.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007308/2.339, allocations: 0.6084 MB / 0.6698 GB, free: 43.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006389/2.345, allocations: 2.3 MB / 0.6721 GB, free: 43.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009181/2.355, allocations: 6.793 MB / 0.6787 GB, free: 37.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008979/2.364, allocations: 3.871 MB / 0.6825 GB, free: 36.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001773/2.364, allocations: 47.97 kB / 0.6826 GB, free: 36.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=934) (initialization): time 0.02548/2.39, allocations: 9.045 MB / 0.6914 GB, free: 34.07 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001345/2.39, allocations: 74.22 kB / 0.6915 GB, free: 34.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002487/2.39, allocations: 161.9 kB / 0.6916 GB, free: 34.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002271/2.392, allocations: 0.6168 MB / 0.6922 GB, free: 33.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01097/2.403, allocations: 1.639 MB / 0.6938 GB, free: 33.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009158/2.412, allocations: 5.825 MB / 0.6995 GB, free: 29.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008445/2.421, allocations: 385.1 kB / 0.6999 GB, free: 29.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001737/2.423, allocations: 447.1 kB / 0.7003 GB, free: 29.59 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * Number of states: 0 () * Number of discrete variables: 42 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (882): * Single equations (assignments): 877 * 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 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007691/2.43, allocations: 2.693 MB / 0.7029 GB, free: 28.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001266/2.432, allocations: 487.2 kB / 0.7034 GB, free: 28.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008775/2.441, allocations: 3.061 MB / 0.7064 GB, free: 26.17 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.486e-05/2.441, allocations: 23.95 kB / 0.7064 GB, free: 26.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.775e-05/2.441, allocations: 7.75 kB / 0.7064 GB, free: 26.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.273e-05/2.441, allocations: 10.56 kB / 0.7064 GB, free: 26.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02492/2.466, allocations: 8.48 MB / 0.7147 GB, free: 19.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.141e-05/2.466, allocations: 0 / 0.7147 GB, free: 19.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00304/2.469, allocations: 321.9 kB / 0.715 GB, free: 18.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00175/2.471, allocations: 362.5 kB / 0.7154 GB, free: 18.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003293/2.471, allocations: 39.14 kB / 0.7154 GB, free: 18.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007839/2.479, allocations: 5.18 MB / 0.7205 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/2.479, allocations: 7.938 kB / 0.7205 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/2.491, allocations: 6.148 MB / 0.7265 GB, free: 8.066 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002873/2.494, allocations: 0.7997 MB / 0.7272 GB, free: 7.305 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001573/2.496, allocations: 41.92 kB / 0.7273 GB, free: 7.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003802/2.5, allocations: 87.7 kB / 0.7274 GB, free: 7.211 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000587/2.5, allocations: 121.9 kB / 0.7275 GB, free: 7.133 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002061/2.5, allocations: 56.05 kB / 0.7275 GB, free: 7.086 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009326/2.51, allocations: 3.729 MB / 0.7312 GB, free: 4.047 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.122e-06/2.51, allocations: 0 / 0.7312 GB, free: 4.047 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008956/2.519, allocations: 1.222 MB / 0.7324 GB, free: 2.832 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (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 (154): * Single equations (assignments): 149 * 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 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01469/2.533, allocations: 7.342 MB / 0.7395 GB, free: 12.07 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01506/2.549, allocations: 5.708 MB / 0.7451 GB, free: 7.047 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.457e-06/2.549, allocations: 2.844 kB / 0.7451 GB, free: 7.047 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004111/2.553, allocations: 1.708 MB / 0.7468 GB, free: 5.504 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00509/2.558, allocations: 0.5987 MB / 0.7474 GB, free: 4.996 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.487/3.045, allocations: 158 MB / 0.9016 GB, free: 90.42 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01264/3.058, allocations: 4.238 MB / 0.9058 GB, free: 89.59 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007953/3.066, allocations: 2.623 MB / 0.9083 GB, free: 89.58 MB / 0.4948 GB Notification: Performance of SimCode: time 1.673e-06/3.066, allocations: 0 / 0.9083 GB, free: 89.58 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.303/8.368, allocations: 152.9 MB / 1.058 GB, free: 153.7 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat