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.252/2.252, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006059/0.0006062, allocations: 12 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3566, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2268/0.5835, allocations: 105.4 MB / 474.8 MB, free: 1.051 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003035/0.5838, allocations: 83.89 kB / 474.8 MB, free: 0.9688 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.719/2.302, allocations: 240 MB / 0.6981 GB, free: 40.18 MB / 458.7 MB Notification: Performance of FrontEnd: time 5.059e-06/2.302, allocations: 0 / 0.6981 GB, free: 40.18 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009754/2.303, allocations: 257.5 kB / 0.6983 GB, free: 40.18 MB / 458.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.05897/2.362, allocations: 13.35 MB / 0.7114 GB, free: 35.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/2.363, allocations: 11.06 kB / 0.7114 GB, free: 35.18 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.011/2.374, allocations: 2.195 MB / 0.7135 GB, free: 35.03 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09432/2.468, allocations: 12.82 MB / 0.726 GB, free: 34.13 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04626/2.514, allocations: 13.34 MB / 0.7391 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001386/2.516, allocations: 0.959 MB / 0.74 GB, free: 32.61 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007678/2.523, allocations: 1.28 MB / 0.7412 GB, free: 32.45 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0974/2.621, allocations: 30.18 MB / 0.7707 GB, free: 5.613 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001043/2.622, allocations: 149.8 kB / 0.7709 GB, free: 5.473 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007028/2.629, allocations: 0.5865 MB / 0.7714 GB, free: 4.957 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006526/2.636, allocations: 2.866 MB / 0.7742 GB, free: 2.547 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08839/2.724, allocations: 24.68 MB / 0.7983 GB, free: 10.34 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6328/3.357, allocations: 127.8 MB / 0.9231 GB, free: 32.82 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06276/3.42, allocations: 14.08 MB / 0.9369 GB, free: 32.05 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05257/3.472, allocations: 19.84 MB / 0.9562 GB, free: 26.37 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.719e-05/3.473, allocations: 95.5 kB / 0.9563 GB, free: 26.29 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=562): time 1.034e-05/3.473, allocations: 0 / 0.9563 GB, free: 26.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=646): time 0.2902/3.763, allocations: 67.83 MB / 1.023 GB, free: 4.555 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002537/3.763, allocations: 381.2 kB / 1.023 GB, free: 4.113 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4508/4.214, allocations: 11.49 MB / 1.034 GB, free: 126.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002379/4.216, allocations: 123.3 kB / 1.034 GB, free: 126 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.01074/4.227, allocations: 8.017 MB / 1.042 GB, free: 123.2 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.005469/4.233, allocations: 2.379 MB / 1.044 GB, free: 121.8 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003724/4.236, allocations: 316.1 kB / 1.045 GB, free: 121.8 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001854/4.238, allocations: 0.9655 MB / 1.046 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02573/4.264, allocations: 6.77 MB / 1.052 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03045/4.295, allocations: 15.19 MB / 1.067 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0242/4.319, allocations: 9.931 MB / 1.077 GB, free: 110.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000419/4.319, allocations: 82.41 kB / 1.077 GB, free: 110.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.07164/4.391, allocations: 24.34 MB / 1.101 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008047/4.392, allocations: 133.7 kB / 1.101 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007591/4.393, allocations: 294.2 kB / 1.101 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01424/4.407, allocations: 3.306 MB / 1.104 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02547/4.433, allocations: 3.759 MB / 1.108 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04466/4.477, allocations: 23.25 MB / 1.131 GB, free: 92.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02036/4.498, allocations: 0.9352 MB / 1.132 GB, free: 92.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004206/4.502, allocations: 0.8856 MB / 1.132 GB, free: 92.3 MB / 0.5417 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.01914/4.521, allocations: 5.743 MB / 1.138 GB, free: 89.68 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004691/4.526, allocations: 1.073 MB / 1.139 GB, free: 89.09 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06214/4.588, allocations: 14.75 MB / 1.154 GB, free: 79.44 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001279/4.588, allocations: 64 kB / 1.154 GB, free: 79.38 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001229/4.588, allocations: 18.91 kB / 1.154 GB, free: 79.36 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002143/4.589, allocations: 34.33 kB / 1.154 GB, free: 79.36 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1031/4.692, allocations: 32.56 MB / 1.185 GB, free: 53.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000114/4.692, allocations: 12 kB / 1.185 GB, free: 53.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01265/4.705, allocations: 1.276 MB / 1.187 GB, free: 52.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01296/4.718, allocations: 2.838 MB / 1.189 GB, free: 50.21 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001996/4.72, allocations: 126 kB / 1.19 GB, free: 50.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04374/4.763, allocations: 21.73 MB / 1.211 GB, free: 30.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.304e-05/4.763, allocations: 15.94 kB / 1.211 GB, free: 30.73 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.492/5.255, allocations: 26.91 MB / 1.237 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00854/5.264, allocations: 2.184 MB / 1.239 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005163/5.269, allocations: 121.6 kB / 1.239 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01175/5.281, allocations: 446.1 kB / 1.24 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002724/5.284, allocations: 413.1 kB / 1.24 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001816/5.286, allocations: 172.2 kB / 1.24 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.02236/5.308, allocations: 7.755 MB / 1.248 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.72e-07/5.308, allocations: 0 / 1.248 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02207/5.33, allocations: 3.11 MB / 1.251 GB, free: 106.1 MB / 0.5417 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.06566/5.396, allocations: 27.44 MB / 1.278 GB, free: 100 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.04048/5.436, allocations: 16.82 MB / 1.294 GB, free: 97.26 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.702e-05/5.437, allocations: 4 kB / 1.294 GB, free: 97.26 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02214/5.459, allocations: 7.122 MB / 1.301 GB, free: 94.57 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01312/5.472, allocations: 1.342 MB / 1.302 GB, free: 94 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.926/6.398, allocations: 350.3 MB / 1.644 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02472/6.423, allocations: 8.88 MB / 1.653 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0189/6.442, allocations: 6.528 MB / 1.66 GB, free: 12.54 MB / 0.6198 GB Notification: Performance of SimCode: time 1.282e-06/6.442, allocations: 0 / 1.66 GB, free: 12.54 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.023/15.46, allocations: 451.5 MB / 2.1 GB, free: 65.4 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