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.Worldtorque.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.Worldtorque,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Worldtorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.085/2.085, allocations: 209.2 MB / 224.8 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00046/0.0004603, allocations: 16 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.373, allocations: 48.7 MB / 331.4 MB, free: 6.406 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1852/0.5583, allocations: 92.97 MB / 424.3 MB, free: 1.285 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003684/0.5587, allocations: 75.95 kB / 424.4 MB, free: 1.211 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8648/1.424, allocations: 142.7 MB / 0.5538 GB, free: 41.89 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.394e-06/1.424, allocations: 0 / 0.5538 GB, free: 41.89 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005088/1.424, allocations: 140 kB / 0.5539 GB, free: 41.75 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: 2467 * Number of variables: 2467 Notification: Performance of Generate backend data structure: time 0.03178/1.456, allocations: 7.483 MB / 0.5612 GB, free: 34.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/1.456, allocations: 8.031 kB / 0.5612 GB, free: 34.18 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006101/1.462, allocations: 1.236 MB / 0.5624 GB, free: 32.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07021/1.532, allocations: 9.526 MB / 0.5717 GB, free: 23.38 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03241/1.565, allocations: 8.87 MB / 0.5804 GB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000684/1.566, allocations: 0.5294 MB / 0.5809 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003846/1.569, allocations: 0.7028 MB / 0.5816 GB, free: 13.19 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05084/1.62, allocations: 16.67 MB / 0.5979 GB, free: 11.03 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004561/1.621, allocations: 95.06 kB / 0.598 GB, free: 10.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002397/1.623, allocations: 343.8 kB / 0.5983 GB, free: 10.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0037/1.627, allocations: 1.526 MB / 0.5998 GB, free: 9.074 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04598/1.673, allocations: 13.34 MB / 0.6128 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4907/2.164, allocations: 72.54 MB / 0.6837 GB, free: 28.53 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04726/2.211, allocations: 5.946 MB / 0.6895 GB, free: 27.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003543/2.211, allocations: 45.86 kB / 0.6895 GB, free: 27.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.648e-05/2.212, allocations: 72.06 kB / 0.6896 GB, free: 27.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=249): time 7.244e-06/2.212, allocations: 0 / 0.6896 GB, free: 27.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=267): time 0.09696/2.309, allocations: 22.86 MB / 0.7119 GB, free: 22.01 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/2.309, allocations: 264.3 kB / 0.7122 GB, free: 21.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01548/2.324, allocations: 6.208 MB / 0.7182 GB, free: 20.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007022/2.325, allocations: 66.42 kB / 0.7183 GB, free: 20.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004469/2.329, allocations: 4.785 MB / 0.723 GB, free: 16.35 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00188/2.331, allocations: 1.027 MB / 0.724 GB, free: 15.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001477/2.333, allocations: 173.6 kB / 0.7241 GB, free: 15.47 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009048/2.334, allocations: 0.6721 MB / 0.7248 GB, free: 15 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00839/2.342, allocations: 2.967 MB / 0.7277 GB, free: 14.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01154/2.354, allocations: 8.222 MB / 0.7357 GB, free: 5.992 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01129/2.365, allocations: 4.83 MB / 0.7404 GB, free: 4.336 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002365/2.366, allocations: 54.06 kB / 0.7405 GB, free: 4.336 MB / 426.7 MB Notification: Performance of matching and sorting (n=1122) (initialization): time 0.03267/2.398, allocations: 11.4 MB / 0.7516 GB, free: 0 / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008409/2.399, allocations: 139.1 kB / 0.7518 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000403/2.4, allocations: 191.9 kB / 0.7519 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003575/2.403, allocations: 0.8388 MB / 0.7528 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0134/2.417, allocations: 1.992 MB / 0.7547 GB, free: 13.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0166/2.433, allocations: 8.633 MB / 0.7631 GB, free: 5.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0108/2.444, allocations: 484.2 kB / 0.7636 GB, free: 4.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002335/2.446, allocations: 0.5143 MB / 0.7641 GB, free: 4.227 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 849 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.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],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.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],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],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 (1056): * Single equations (assignments): 1050 * 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%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01092/2.457, allocations: 3.315 MB / 0.7673 GB, free: 1.316 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001875/2.459, allocations: 0.5862 MB / 0.7679 GB, free: 0.7227 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01599/2.475, allocations: 4.574 MB / 0.7724 GB, free: 12.97 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.088e-05/2.475, allocations: 28 kB / 0.7724 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.103e-05/2.476, allocations: 8 kB / 0.7724 GB, free: 12.94 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-05/2.476, allocations: 13.17 kB / 0.7724 GB, free: 12.94 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04076/2.516, allocations: 11.69 MB / 0.7838 GB, free: 3.422 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.491e-05/2.516, allocations: 4 kB / 0.7838 GB, free: 3.418 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00472/2.521, allocations: 440.2 kB / 0.7843 GB, free: 3.066 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002962/2.524, allocations: 0.5307 MB / 0.7848 GB, free: 2.668 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007405/2.525, allocations: 47.19 kB / 0.7848 GB, free: 2.625 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01483/2.54, allocations: 7.732 MB / 0.7924 GB, free: 11.21 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/2.54, allocations: 4.031 kB / 0.7924 GB, free: 11.21 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02313/2.563, allocations: 8.029 MB / 0.8002 GB, free: 4.074 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004493/2.568, allocations: 1.019 MB / 0.8012 GB, free: 3.117 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002122/2.57, allocations: 40 kB / 0.8013 GB, free: 3.078 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005479/2.575, allocations: 149.4 kB / 0.8014 GB, free: 2.977 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001123/2.577, allocations: 159.8 kB / 0.8016 GB, free: 2.875 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000336/2.577, allocations: 74.12 kB / 0.8016 GB, free: 2.809 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.3588/2.936, allocations: 4.427 MB / 0.8059 GB, free: 114.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.62e-07/2.936, allocations: 3.5 kB / 0.8059 GB, free: 114.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01283/2.949, allocations: 1.554 MB / 0.8075 GB, free: 114.5 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,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (219): * Single equations (assignments): 213 * 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%) 11,(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.02344/2.972, allocations: 8.883 MB / 0.8161 GB, free: 113.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02042/2.993, allocations: 7.484 MB / 0.8234 GB, free: 112.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/2.993, allocations: 0 / 0.8234 GB, free: 112.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006099/2.999, allocations: 2.552 MB / 0.8259 GB, free: 112.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007172/3.006, allocations: 0.763 MB / 0.8267 GB, free: 112.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5307/3.537, allocations: 191.3 MB / 1.014 GB, free: 167.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01298/3.55, allocations: 5.212 MB / 1.019 GB, free: 166.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009011/3.559, allocations: 3.421 MB / 1.022 GB, free: 166.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.253e-06/3.559, allocations: 0 / 1.022 GB, free: 166.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.751/9.31, allocations: 221.4 MB / 1.238 GB, free: 138.2 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Worldtorque_res.mat does not exist to compare? outputFormat=mat