Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.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.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.371/2.371, allocations: 235 MB / 248.1 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.84e-05/2.846e-05, allocations: 0 / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.394/0.394, allocations: 54.86 MB / 364.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1848/0.5789, allocations: 102.7 MB / 467.3 MB, free: 9.812 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/0.5793, allocations: 83.95 kB / 467.4 MB, free: 9.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7651/1.344, allocations: 97.24 MB / 0.5514 GB, free: 105.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.083e-06/1.344, allocations: 0 / 0.5514 GB, free: 105.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003021/1.345, allocations: 98.22 kB / 0.5515 GB, free: 105.1 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: 1848 * Number of variables: 1848 Notification: Performance of Generate backend data structure: time 0.0304/1.375, allocations: 5.51 MB / 0.5569 GB, free: 103 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/1.375, allocations: 11.19 kB / 0.5569 GB, free: 103 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003192/1.378, allocations: 0.9252 MB / 0.5578 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01713/1.396, allocations: 2.318 MB / 0.56 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01765/1.413, allocations: 4.976 MB / 0.5649 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003522/1.414, allocations: 392 kB / 0.5653 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002186/1.416, allocations: 0.5095 MB / 0.5658 GB, free: 101.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0346/1.45, allocations: 12.87 MB / 0.5783 GB, free: 96.99 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002399/1.451, allocations: 60.41 kB / 0.5784 GB, free: 96.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001169/1.452, allocations: 255.1 kB / 0.5786 GB, free: 96.81 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002465/1.454, allocations: 1.21 MB / 0.5798 GB, free: 96.59 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03281/1.487, allocations: 11.08 MB / 0.5906 GB, free: 93.14 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0899/1.577, allocations: 55.77 MB / 0.6451 GB, free: 42.52 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02643/1.604, allocations: 5.26 MB / 0.6502 GB, free: 37.1 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006316/1.61, allocations: 3.284 MB / 0.6534 GB, free: 33.82 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002306/1.612, allocations: 1.013 MB / 0.6544 GB, free: 32.65 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/1.613, allocations: 59.75 kB / 0.6545 GB, free: 32.58 MB / 458.7 MB Notification: Performance of pre-optimization done (n=224): time 6.111e-06/1.613, allocations: 0 / 0.6545 GB, free: 32.58 MB / 458.7 MB Notification: Performance of matching and sorting (n=255): time 0.09706/1.71, allocations: 21.92 MB / 0.6759 GB, free: 10.54 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/1.71, allocations: 158.5 kB / 0.676 GB, free: 10.35 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008284/1.718, allocations: 3.971 MB / 0.6799 GB, free: 6.363 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007559/1.719, allocations: 61.7 kB / 0.68 GB, free: 6.297 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002666/1.722, allocations: 3.428 MB / 0.6833 GB, free: 2.875 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001595/1.723, allocations: 0.9542 MB / 0.6843 GB, free: 1.926 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001018/1.724, allocations: 138.9 kB / 0.6844 GB, free: 1.793 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005263/1.725, allocations: 0.6 MB / 0.685 GB, free: 1.184 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008375/1.733, allocations: 2.965 MB / 0.6879 GB, free: 14.21 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01325/1.746, allocations: 6.876 MB / 0.6946 GB, free: 5.402 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01618/1.763, allocations: 4.467 MB / 0.699 GB, free: 0.9336 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001851/1.763, allocations: 40 kB / 0.699 GB, free: 0.8945 MB / 474.7 MB Notification: Performance of matching and sorting (n=891) (initialization): time 0.03612/1.799, allocations: 10.57 MB / 0.7093 GB, free: 6.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001387/1.799, allocations: 68.92 kB / 0.7094 GB, free: 6.254 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000231/1.8, allocations: 140 kB / 0.7095 GB, free: 6.117 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005551/1.805, allocations: 1.133 MB / 0.7106 GB, free: 4.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01547/1.821, allocations: 1.708 MB / 0.7123 GB, free: 3.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.443/2.264, allocations: 5.911 MB / 0.7181 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01235/2.276, allocations: 427.3 kB / 0.7185 GB, free: 117.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002505/2.279, allocations: 425.2 kB / 0.7189 GB, free: 117.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 629 * Number of states: 0 () * Number of discrete variables: 39 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (852): * Single equations (assignments): 848 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003161/2.282, allocations: 0.6156 MB / 0.7195 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/2.283, allocations: 412 kB / 0.7199 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01934/2.303, allocations: 5.577 MB / 0.7253 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.502e-05/2.303, allocations: 26.97 kB / 0.7253 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.448e-05/2.303, allocations: 4.344 kB / 0.7253 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.473e-05/2.303, allocations: 15.39 kB / 0.7254 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03654/2.339, allocations: 12.27 MB / 0.7373 GB, free: 116 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-05/2.339, allocations: 7.188 kB / 0.7373 GB, free: 116 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005426/2.345, allocations: 0.5128 MB / 0.7378 GB, free: 116 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0043/2.349, allocations: 0.9395 MB / 0.7388 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006302/2.35, allocations: 46.08 kB / 0.7388 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/2.361, allocations: 5.64 MB / 0.7443 GB, free: 113.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-06/2.361, allocations: 7.891 kB / 0.7443 GB, free: 113.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02132/2.382, allocations: 9.825 MB / 0.7539 GB, free: 109 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003266/2.385, allocations: 0.9223 MB / 0.7548 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009033/2.386, allocations: 43.72 kB / 0.7549 GB, free: 108.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003726/2.39, allocations: 192 kB / 0.755 GB, free: 108.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006251/2.391, allocations: 152.5 kB / 0.7552 GB, free: 108.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003114/2.391, allocations: 72.03 kB / 0.7553 GB, free: 108.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005642/2.396, allocations: 2.777 MB / 0.758 GB, free: 107.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.397, allocations: 0 / 0.758 GB, free: 107.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007557/2.404, allocations: 1.253 MB / 0.7592 GB, free: 107.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 224 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02187/2.426, allocations: 11.19 MB / 0.7701 GB, free: 102 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01632/2.442, allocations: 7.164 MB / 0.7771 GB, free: 99.86 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/2.442, allocations: 3.594 kB / 0.7771 GB, free: 99.86 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00663/2.449, allocations: 2.729 MB / 0.7798 GB, free: 98.83 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00385/2.453, allocations: 455.5 kB / 0.7802 GB, free: 98.63 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0397/2.493, allocations: 12.34 MB / 0.7923 GB, free: 94.16 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008809/2.502, allocations: 3.899 MB / 0.7961 GB, free: 91.45 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006981/2.509, allocations: 2.375 MB / 0.7984 GB, free: 89.26 MB / 490.7 MB Notification: Performance of SimCode: time 1.262e-06/2.509, allocations: 3 kB / 0.7984 GB, free: 89.26 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.848/7.356, allocations: 121.2 MB / 0.9168 GB, free: 129.8 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat does not exist to compare? outputFormat=mat