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.Torque2.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.Torque2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.362/2.362, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.91e-05/3.916e-05, allocations: 4 kB / 309.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4146/0.4147, allocations: 54.85 MB / 364.6 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1913/0.6061, allocations: 105.3 MB / 469.9 MB, free: 7.137 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.6065, allocations: 68.97 kB / 470 MB, free: 7.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.303/1.909, allocations: 240.3 MB / 0.6937 GB, free: 13.21 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.973e-06/1.909, allocations: 0 / 0.6937 GB, free: 13.21 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001038/1.911, allocations: 256 kB / 0.6939 GB, free: 12.96 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4454 * Number of variables: 4454 Notification: Performance of Generate backend data structure: time 0.05673/1.967, allocations: 12.35 MB / 0.706 GB, free: 0.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.733e-05/1.967, allocations: 12.03 kB / 0.706 GB, free: 500 kB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3966/2.364, allocations: 2.2 MB / 0.7081 GB, free: 43.36 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1105/2.475, allocations: 12.82 MB / 0.7206 GB, free: 42.49 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05149/2.526, allocations: 13.29 MB / 0.7336 GB, free: 41.89 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001381/2.528, allocations: 0.9618 MB / 0.7346 GB, free: 41.87 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007169/2.535, allocations: 1.269 MB / 0.7358 GB, free: 41.86 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1067/2.642, allocations: 29.94 MB / 0.765 GB, free: 35.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001175/2.643, allocations: 144.5 kB / 0.7652 GB, free: 35.68 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007281/2.65, allocations: 0.5914 MB / 0.7658 GB, free: 35.68 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008715/2.659, allocations: 2.864 MB / 0.7685 GB, free: 35.65 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08554/2.744, allocations: 24.31 MB / 0.7923 GB, free: 32.37 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8224/3.567, allocations: 127.8 MB / 0.9171 GB, free: 31.57 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07064/3.638, allocations: 13.95 MB / 0.9307 GB, free: 30.81 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01612/3.654, allocations: 7.957 MB / 0.9385 GB, free: 30.74 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05441/3.708, allocations: 19.83 MB / 0.9579 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.557e-05/3.708, allocations: 99.73 kB / 0.9579 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=562): time 9.889e-06/3.708, allocations: 2.125 kB / 0.958 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=646): time 0.2725/3.981, allocations: 59.14 MB / 1.016 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001817/3.981, allocations: 382.1 kB / 1.016 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03007/4.011, allocations: 10.61 MB / 1.026 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001882/4.013, allocations: 123.7 kB / 1.027 GB, free: 10.47 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.007793/4.021, allocations: 8.017 MB / 1.034 GB, free: 3.172 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.004248/4.025, allocations: 2.372 MB / 1.037 GB, free: 1.066 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003237/4.029, allocations: 312 kB / 1.037 GB, free: 0.7617 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001666/4.03, allocations: 0.9809 MB / 1.038 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0203/4.051, allocations: 6.619 MB / 1.044 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02932/4.08, allocations: 15.05 MB / 1.059 GB, free: 8.176 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02755/4.108, allocations: 9.886 MB / 1.069 GB, free: 228 kB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003971/4.108, allocations: 84 kB / 1.069 GB, free: 144 kB / 0.5573 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.08597/4.194, allocations: 24.42 MB / 1.093 GB, free: 13.61 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002762/4.194, allocations: 136 kB / 1.093 GB, free: 13.48 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006221/4.195, allocations: 292 kB / 1.093 GB, free: 13.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01549/4.211, allocations: 3.304 MB / 1.096 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02823/4.239, allocations: 3.759 MB / 1.1 GB, free: 7.57 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0516/4.291, allocations: 22.68 MB / 1.122 GB, free: 3.523 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02147/4.312, allocations: 0.933 MB / 1.123 GB, free: 2.754 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004535/4.317, allocations: 0.8917 MB / 1.124 GB, free: 1.898 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1343 * Number of states: 0 () * Number of discrete variables: 117 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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 (1897): * Single equations (assignments): 1890 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007594/4.324, allocations: 1.273 MB / 1.125 GB, free: 0.6211 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004933/4.329, allocations: 1.079 MB / 1.126 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05188/4.381, allocations: 14.6 MB / 1.14 GB, free: 2.203 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001252/4.381, allocations: 67.89 kB / 1.141 GB, free: 2.141 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.056e-05/4.381, allocations: 16 kB / 1.141 GB, free: 2.125 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001932/4.382, allocations: 37.28 kB / 1.141 GB, free: 2.09 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5379/4.92, allocations: 32.4 MB / 1.172 GB, free: 171.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000115/4.92, allocations: 10.25 kB / 1.172 GB, free: 171.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01339/4.933, allocations: 1.279 MB / 1.173 GB, free: 171.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01348/4.947, allocations: 2.834 MB / 1.176 GB, free: 171.4 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002036/4.949, allocations: 122.3 kB / 1.176 GB, free: 171.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04309/4.992, allocations: 21.07 MB / 1.197 GB, free: 166.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.802e-05/4.992, allocations: 19.45 kB / 1.197 GB, free: 166.1 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06408/5.056, allocations: 26.09 MB / 1.222 GB, free: 158.6 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01007/5.066, allocations: 2.177 MB / 1.225 GB, free: 158 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005193/5.071, allocations: 120.2 kB / 1.225 GB, free: 157.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01264/5.084, allocations: 447 kB / 1.225 GB, free: 157.9 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002804/5.087, allocations: 413.5 kB / 1.225 GB, free: 157.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001908/5.089, allocations: 175.1 kB / 1.226 GB, free: 157.8 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.02287/5.112, allocations: 7.642 MB / 1.233 GB, free: 155.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.222e-06/5.112, allocations: 1.406 kB / 1.233 GB, free: 155.2 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02296/5.135, allocations: 3.11 MB / 1.236 GB, free: 154.8 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (553): * Single equations (assignments): 546 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(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.06762/5.203, allocations: 27.2 MB / 1.263 GB, free: 141.4 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.04156/5.244, allocations: 16.57 MB / 1.279 GB, free: 132.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.858e-05/5.244, allocations: 4 kB / 1.279 GB, free: 132.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0202/5.264, allocations: 7.015 MB / 1.286 GB, free: 126.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01349/5.278, allocations: 1.344 MB / 1.287 GB, free: 125.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1092/5.387, allocations: 31.25 MB / 1.318 GB, free: 98.6 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03363/5.421, allocations: 8.882 MB / 1.326 GB, free: 92.23 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02491/5.446, allocations: 6.525 MB / 1.333 GB, free: 86.16 MB / 0.6198 GB Notification: Performance of SimCode: time 2.885e-06/5.446, allocations: 4 kB / 1.333 GB, free: 86.16 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.045/14.49, allocations: 450.8 MB / 1.773 GB, free: 67.89 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat