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.Torque3.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.Torque3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.464/2.464, allocations: 234.9 MB / 250.5 MB, free: 9.676 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006058/0.0006059, allocations: 12 kB / 314.5 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3596, allocations: 54.86 MB / 369.4 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.193/0.5527, allocations: 104 MB / 473.3 MB, free: 4.648 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000412/0.5531, allocations: 79.95 kB / 473.4 MB, free: 4.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.868/2.421, allocations: 223.4 MB / 0.6805 GB, free: 41.38 MB / 474.8 MB Notification: Performance of FrontEnd: time 3.076e-06/2.422, allocations: 0 / 0.6805 GB, free: 41.38 MB / 474.8 MB Notification: Performance of Transformations before backend: time 0.0007821/2.422, allocations: 239.6 kB / 0.6807 GB, free: 41.38 MB / 474.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4184 * Number of variables: 4184 Notification: Performance of Generate backend data structure: time 0.0515/2.474, allocations: 12.27 MB / 0.6927 GB, free: 39.42 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/2.474, allocations: 11.66 kB / 0.6927 GB, free: 39.42 MB / 474.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009549/2.483, allocations: 2.071 MB / 0.6947 GB, free: 39.27 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09086/2.574, allocations: 12.63 MB / 0.7071 GB, free: 38.47 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04192/2.616, allocations: 12.6 MB / 0.7194 GB, free: 37.23 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001216/2.618, allocations: 0.9017 MB / 0.7203 GB, free: 37.21 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006472/2.624, allocations: 1.205 MB / 0.7214 GB, free: 37.19 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08841/2.713, allocations: 28.38 MB / 0.7491 GB, free: 31.71 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009322/2.714, allocations: 139.4 kB / 0.7493 GB, free: 31.7 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005888/2.72, allocations: 0.5539 MB / 0.7498 GB, free: 31.69 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005906/2.725, allocations: 2.685 MB / 0.7524 GB, free: 31.66 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0936/2.819, allocations: 23.57 MB / 0.7755 GB, free: 28.8 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6802/3.499, allocations: 116.9 MB / 0.8897 GB, free: 40.47 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05946/3.559, allocations: 13.73 MB / 0.9031 GB, free: 39.75 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003777/3.563, allocations: 2.346 MB / 0.9054 GB, free: 37.77 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001325/3.563, allocations: 102.6 kB / 0.9055 GB, free: 37.72 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=559): time 1.118e-05/3.563, allocations: 3.531 kB / 0.9055 GB, free: 37.72 MB / 0.5262 GB Notification: Performance of matching and sorting (n=643): time 0.2725/3.835, allocations: 62.11 MB / 0.9661 GB, free: 28.21 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/3.836, allocations: 323.6 kB / 0.9664 GB, free: 27.89 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02405/3.86, allocations: 9.065 MB / 0.9753 GB, free: 27.21 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001943/3.862, allocations: 129.1 kB / 0.9754 GB, free: 27.18 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.006673/3.868, allocations: 7.305 MB / 0.9825 GB, free: 23.15 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.00408/3.873, allocations: 2.34 MB / 0.9848 GB, free: 21.76 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002574/3.875, allocations: 288.8 kB / 0.9851 GB, free: 21.76 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.001243/3.876, allocations: 0.9164 MB / 0.986 GB, free: 21.41 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01732/3.894, allocations: 6.526 MB / 0.9924 GB, free: 21.38 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02274/3.917, allocations: 14.1 MB / 1.006 GB, free: 8.75 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02255/3.939, allocations: 9.412 MB / 1.015 GB, free: 0.8594 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003334/3.94, allocations: 76 kB / 1.015 GB, free: 0.7852 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1861) (initialization): time 0.07882/4.018, allocations: 23.29 MB / 1.038 GB, free: 14.71 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002473/4.019, allocations: 116 kB / 1.038 GB, free: 14.6 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005749/4.019, allocations: 264.8 kB / 1.039 GB, free: 14.34 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01533/4.035, allocations: 3.271 MB / 1.042 GB, free: 11.94 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02558/4.06, allocations: 3.498 MB / 1.045 GB, free: 9.02 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05284/4.113, allocations: 23.24 MB / 1.068 GB, free: 4.266 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01933/4.133, allocations: 0.8601 MB / 1.069 GB, free: 3.562 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005054/4.138, allocations: 0.8129 MB / 1.069 GB, free: 2.789 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1201 * Number of states: 0 () * Number of discrete variables: 105 (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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[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],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 (1741): * Single equations (assignments): 1734 * 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.02462/4.162, allocations: 5.614 MB / 1.075 GB, free: 14.82 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00422/4.167, allocations: 0.9483 MB / 1.076 GB, free: 13.86 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05196/4.219, allocations: 14.6 MB / 1.09 GB, free: 2 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001218/4.219, allocations: 64 kB / 1.09 GB, free: 1.938 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.088e-05/4.219, allocations: 16 kB / 1.09 GB, free: 1.922 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001871/4.219, allocations: 29.77 kB / 1.09 GB, free: 1.922 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5337/4.753, allocations: 31.28 MB / 1.121 GB, free: 158.3 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.557e-05/4.753, allocations: 7.812 kB / 1.121 GB, free: 158.3 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01204/4.765, allocations: 1.218 MB / 1.122 GB, free: 158.3 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01268/4.778, allocations: 2.832 MB / 1.125 GB, free: 158.3 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002049/4.78, allocations: 122.9 kB / 1.125 GB, free: 158.3 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05856/4.838, allocations: 21.72 MB / 1.146 GB, free: 152.9 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.401e-05/4.838, allocations: 13.47 kB / 1.146 GB, free: 152.9 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0687/4.907, allocations: 24.01 MB / 1.17 GB, free: 150 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01027/4.918, allocations: 2.037 MB / 1.172 GB, free: 149.9 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005007/4.923, allocations: 110.9 kB / 1.172 GB, free: 149.9 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0116/4.934, allocations: 494.7 kB / 1.172 GB, free: 149.9 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002717/4.937, allocations: 394.2 kB / 1.172 GB, free: 149.9 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001907/4.939, allocations: 163.6 kB / 1.173 GB, free: 149.9 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.01821/4.957, allocations: 6.51 MB / 1.179 GB, free: 149.6 MB / 0.6043 GB Notification: Performance of sort global known variables: time 8.21e-07/4.957, allocations: 0 / 1.179 GB, free: 149.6 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.02056/4.978, allocations: 2.935 MB / 1.182 GB, free: 149.6 MB / 0.6043 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (554): * Single equations (assignments): 547 * 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.06338/5.041, allocations: 25.21 MB / 1.206 GB, free: 139 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.03861/5.08, allocations: 16.28 MB / 1.222 GB, free: 133.7 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-05/5.08, allocations: 3.656 kB / 1.222 GB, free: 133.7 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.02104/5.101, allocations: 7.168 MB / 1.229 GB, free: 130.9 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0113/5.112, allocations: 1.2 MB / 1.231 GB, free: 130.4 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8694/5.982, allocations: 308.8 MB / 1.532 GB, free: 13.8 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02488/6.007, allocations: 8.31 MB / 1.54 GB, free: 28.78 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01794/6.025, allocations: 5.971 MB / 1.546 GB, free: 28.78 MB / 0.6199 GB Notification: Performance of SimCode: time 1.262e-06/6.025, allocations: 0 / 1.546 GB, free: 28.78 MB / 0.6199 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.448/14.47, allocations: 418.8 MB / 1.955 GB, free: 140.5 MB / 0.6199 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat