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.Torque2.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.Torque2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.942/1.942, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004453/0.0004453, allocations: 16 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1087, allocations: 48.71 MB / 331.4 MB, free: 8.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4475/0.5562, allocations: 98.6 MB / 430 MB, free: 2.434 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/0.5566, allocations: 79.95 kB / 430 MB, free: 2.355 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.931/2.488, allocations: 239.6 MB / 0.654 GB, free: 27.3 MB / 426.8 MB Notification: Performance of FrontEnd: time 2.685e-06/2.488, allocations: 3.844 kB / 0.654 GB, free: 27.3 MB / 426.8 MB Notification: Performance of Transformations before backend: time 0.001185/2.489, allocations: 253.7 kB / 0.6542 GB, free: 27.3 MB / 426.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4446 * Number of variables: 4446 Notification: Performance of Generate backend data structure: time 0.06393/2.553, allocations: 13.34 MB / 0.6672 GB, free: 22.81 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.015e-05/2.553, allocations: 10.06 kB / 0.6672 GB, free: 22.81 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01145/2.564, allocations: 2.198 MB / 0.6694 GB, free: 22.66 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09608/2.66, allocations: 12.81 MB / 0.6819 GB, free: 21.79 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04927/2.71, allocations: 13.34 MB / 0.6949 GB, free: 20.38 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001459/2.711, allocations: 0.9566 MB / 0.6958 GB, free: 20.35 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007445/2.719, allocations: 1.271 MB / 0.6971 GB, free: 20.34 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09991/2.819, allocations: 30.15 MB / 0.7265 GB, free: 14.18 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001263/2.82, allocations: 142.4 kB / 0.7267 GB, free: 14.17 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007095/2.827, allocations: 0.5885 MB / 0.7272 GB, free: 14.17 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006812/2.834, allocations: 2.857 MB / 0.73 GB, free: 14.14 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08599/2.92, allocations: 24.67 MB / 0.7541 GB, free: 9.688 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7256/3.646, allocations: 127.7 MB / 0.8788 GB, free: 13.64 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06571/3.712, allocations: 14.08 MB / 0.8926 GB, free: 12.87 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05081/3.762, allocations: 19.83 MB / 0.9119 GB, free: 9.629 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.913e-05/3.763, allocations: 98.19 kB / 0.912 GB, free: 9.59 MB / 490.8 MB Notification: Performance of pre-optimization done (n=562): time 9.599e-06/3.763, allocations: 0 / 0.912 GB, free: 9.59 MB / 490.8 MB Notification: Performance of matching and sorting (n=646): time 0.2889/4.051, allocations: 67.83 MB / 0.9783 GB, free: 8.797 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002845/4.052, allocations: 385.5 kB / 0.9786 GB, free: 8.355 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03396/4.086, allocations: 10.73 MB / 0.9891 GB, free: 15.53 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002023/4.088, allocations: 121.7 kB / 0.9892 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.01046/4.098, allocations: 8.005 MB / 0.997 GB, free: 8.109 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.005056/4.103, allocations: 2.373 MB / 0.9994 GB, free: 6.004 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003411/4.107, allocations: 315.4 kB / 0.9997 GB, free: 5.699 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001969/4.109, allocations: 0.9665 MB / 1.001 GB, free: 4.91 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02618/4.135, allocations: 7.097 MB / 1.008 GB, free: 0 / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3909/4.526, allocations: 15.2 MB / 1.022 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02668/4.553, allocations: 9.926 MB / 1.032 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000569/4.554, allocations: 84.16 kB / 1.032 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.07312/4.627, allocations: 24.34 MB / 1.056 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002657/4.627, allocations: 132 kB / 1.056 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005023/4.627, allocations: 296.1 kB / 1.056 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01422/4.642, allocations: 3.309 MB / 1.06 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02602/4.668, allocations: 3.763 MB / 1.063 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04516/4.713, allocations: 23.25 MB / 1.086 GB, free: 94.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02078/4.734, allocations: 0.9413 MB / 1.087 GB, free: 94.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004282/4.738, allocations: 0.8849 MB / 1.088 GB, free: 93.97 MB / 0.5105 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 () * Number of clocked 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.0189/4.757, allocations: 5.73 MB / 1.093 GB, free: 91.54 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00408/4.761, allocations: 1.072 MB / 1.094 GB, free: 91.54 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04756/4.809, allocations: 14.75 MB / 1.109 GB, free: 86.17 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001087/4.809, allocations: 66.66 kB / 1.109 GB, free: 86.17 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001021/4.809, allocations: 18.5 kB / 1.109 GB, free: 86.17 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001865/4.809, allocations: 35.5 kB / 1.109 GB, free: 86.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1187/4.928, allocations: 32.55 MB / 1.141 GB, free: 67.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001001/4.928, allocations: 8 kB / 1.141 GB, free: 67.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01346/4.942, allocations: 1.279 MB / 1.142 GB, free: 66.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01815/4.96, allocations: 2.846 MB / 1.145 GB, free: 64.89 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0022/4.962, allocations: 124.2 kB / 1.145 GB, free: 64.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0595/5.022, allocations: 21.72 MB / 1.166 GB, free: 45.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.461e-05/5.022, allocations: 19.94 kB / 1.166 GB, free: 45.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4955/5.517, allocations: 26.39 MB / 1.192 GB, free: 93.57 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009304/5.527, allocations: 2.187 MB / 1.194 GB, free: 93.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005311/5.532, allocations: 121.8 kB / 1.194 GB, free: 93.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01232/5.544, allocations: 443.6 kB / 1.195 GB, free: 93.48 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002699/5.547, allocations: 410.6 kB / 1.195 GB, free: 93.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001097/5.548, allocations: 171.3 kB / 1.195 GB, free: 93.48 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.02355/5.572, allocations: 7.778 MB / 1.203 GB, free: 93.16 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.41e-07/5.572, allocations: 0 / 1.203 GB, free: 93.16 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02216/5.594, allocations: 3.101 MB / 1.206 GB, free: 93.16 MB / 0.5105 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 () * Number of clocked 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.06444/5.658, allocations: 27.44 MB / 1.232 GB, free: 87.17 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.04098/5.699, allocations: 16.84 MB / 1.249 GB, free: 86.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-05/5.7, allocations: 0 / 1.249 GB, free: 86.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0206/5.72, allocations: 7.124 MB / 1.256 GB, free: 85.01 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01303/5.733, allocations: 1.343 MB / 1.257 GB, free: 84.44 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8952/6.629, allocations: 350.2 MB / 1.599 GB, free: 14.36 MB / 0.6199 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02686/6.655, allocations: 8.875 MB / 1.608 GB, free: 13.33 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01899/6.675, allocations: 6.524 MB / 1.614 GB, free: 13.33 MB / 0.6199 GB Notification: Performance of SimCode: time 1.262e-06/6.675, allocations: 0 / 1.614 GB, free: 13.33 MB / 0.6199 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.31/15.99, allocations: 451.1 MB / 2.055 GB, free: 158.1 MB / 0.6199 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat