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.Torque.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.Torque,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.287/2.287, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.005e-05/2.014e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3375, allocations: 54.86 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1809/0.5185, allocations: 100.7 MB / 458.9 MB, free: 9.961 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.5188, allocations: 71.97 kB / 458.9 MB, free: 9.891 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8284/1.347, allocations: 129 MB / 0.5742 GB, free: 8.879 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.304e-06/1.347, allocations: 0 / 0.5742 GB, free: 8.879 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005232/1.348, allocations: 132 kB / 0.5743 GB, free: 8.75 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.02984/1.378, allocations: 6.654 MB / 0.5808 GB, free: 2.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.173e-05/1.378, allocations: 12.03 kB / 0.5808 GB, free: 2.008 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05415/1.432, allocations: 7.139 MB / 0.5878 GB, free: 10.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02851/1.46, allocations: 7.431 MB / 0.595 GB, free: 3.332 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005026/1.461, allocations: 216 kB / 0.5952 GB, free: 3.121 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003448/1.464, allocations: 411.8 kB / 0.5956 GB, free: 2.719 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02733/1.492, allocations: 9.251 MB / 0.6047 GB, free: 9.461 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04082/1.533, allocations: 14.33 MB / 0.6187 GB, free: 9.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004319/1.533, allocations: 91.11 kB / 0.6187 GB, free: 9.57 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002644/1.536, allocations: 44 kB / 0.6188 GB, free: 9.527 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003905/1.54, allocations: 1.55 MB / 0.6203 GB, free: 7.969 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4334/1.973, allocations: 69.69 MB / 0.6884 GB, free: 35.61 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00916/1.982, allocations: 5.199 MB / 0.6934 GB, free: 34.91 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006138/1.989, allocations: 3.508 MB / 0.6969 GB, free: 34.86 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008555/1.99, allocations: 391.7 kB / 0.6972 GB, free: 34.57 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/1.99, allocations: 66.94 kB / 0.6973 GB, free: 34.53 MB / 458.7 MB Notification: Performance of pre-optimization done (n=268): time 8.226e-06/1.99, allocations: 3.406 kB / 0.6973 GB, free: 34.53 MB / 458.7 MB Notification: Performance of matching and sorting (n=312): time 0.08852/2.078, allocations: 27.53 MB / 0.7242 GB, free: 25.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/2.078, allocations: 240.6 kB / 0.7244 GB, free: 25.32 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01176/2.09, allocations: 4.77 MB / 0.7291 GB, free: 23.63 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008907/2.091, allocations: 25.7 kB / 0.7291 GB, free: 23.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004035/2.095, allocations: 4.793 MB / 0.7338 GB, free: 20.23 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00191/2.097, allocations: 1.157 MB / 0.7349 GB, free: 19.38 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001226/2.098, allocations: 3.844 kB / 0.7349 GB, free: 19.38 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000633/2.099, allocations: 0.7036 MB / 0.7356 GB, free: 18.89 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008193/2.107, allocations: 3.408 MB / 0.7389 GB, free: 17.67 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01201/2.119, allocations: 8.858 MB / 0.7476 GB, free: 9.094 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01169/2.131, allocations: 5.434 MB / 0.7529 GB, free: 5.824 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002208/2.131, allocations: 52 kB / 0.7529 GB, free: 5.773 MB / 458.7 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.0507/2.182, allocations: 12.69 MB / 0.7653 GB, free: 12.29 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002471/2.182, allocations: 92.06 kB / 0.7654 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004463/2.183, allocations: 193.2 kB / 0.7656 GB, free: 12.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01035/2.193, allocations: 1.714 MB / 0.7673 GB, free: 10.72 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02109/2.214, allocations: 2.208 MB / 0.7694 GB, free: 8.832 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03002/2.244, allocations: 10.76 MB / 0.7799 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01594/2.26, allocations: 375 kB / 0.7803 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003181/2.264, allocations: 0.5531 MB / 0.7808 GB, free: 14.43 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 886 * Number of states: 0 () * Number of discrete variables: 60 (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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[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 (1148): * Single equations (assignments): 1143 * 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%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003291/2.267, allocations: 0.5925 MB / 0.7814 GB, free: 13.83 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02752/2.294, allocations: 6.459 MB / 0.7877 GB, free: 8.441 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002553/2.297, allocations: 0.509 MB / 0.7882 GB, free: 7.926 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0263/2.323, allocations: 6.499 MB / 0.7946 GB, free: 2.707 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001036/2.324, allocations: 40 kB / 0.7946 GB, free: 2.668 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.293e-05/2.324, allocations: 11.47 kB / 0.7946 GB, free: 2.66 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.762e-05/2.324, allocations: 14.86 kB / 0.7946 GB, free: 2.66 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04496/2.369, allocations: 13.76 MB / 0.8081 GB, free: 7.668 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-05/2.369, allocations: 0 / 0.8081 GB, free: 7.668 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005878/2.375, allocations: 0.5407 MB / 0.8086 GB, free: 7.242 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006904/2.382, allocations: 1.403 MB / 0.81 GB, free: 6.262 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009032/2.383, allocations: 8 kB / 0.81 GB, free: 6.254 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3931/2.776, allocations: 9.897 MB / 0.8196 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/2.776, allocations: 7.031 kB / 0.8196 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02694/2.803, allocations: 10.95 MB / 0.8303 GB, free: 112.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004076/2.807, allocations: 1.023 MB / 0.8313 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001862/2.809, allocations: 6.031 kB / 0.8313 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005543/2.814, allocations: 167.4 kB / 0.8315 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001319/2.816, allocations: 184.1 kB / 0.8317 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004084/2.816, allocations: 80.53 kB / 0.8318 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008717/2.825, allocations: 3.216 MB / 0.8349 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.52e-07/2.825, allocations: 3.031 kB / 0.8349 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01206/2.837, allocations: 1.422 MB / 0.8363 GB, free: 112.4 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 248 * 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.03567/2.873, allocations: 12.05 MB / 0.8481 GB, free: 110.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0299/2.903, allocations: 8.59 MB / 0.8564 GB, free: 110.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/2.903, allocations: 6.844 kB / 0.8564 GB, free: 110.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01207/2.915, allocations: 3.31 MB / 0.8597 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007893/2.923, allocations: 0.5279 MB / 0.8602 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05976/2.983, allocations: 15.69 MB / 0.8755 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01459/2.997, allocations: 5.043 MB / 0.8804 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008792/3.006, allocations: 3.242 MB / 0.8836 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.964e-06/3.006, allocations: 0 / 0.8836 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.507/8.514, allocations: 183.2 MB / 1.063 GB, free: 105.1 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat