Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.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.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.046/2.046, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007129/0.0007132, allocations: 16 kB / 282.7 MB, free: 9.547 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4504/0.4512, allocations: 48.7 MB / 331.4 MB, free: 6.422 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1941/0.6454, allocations: 95.97 MB / 427.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/0.6458, allocations: 83.95 kB / 427.4 MB, free: 14.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6996/1.345, allocations: 97.13 MB / 0.5123 GB, free: 84.58 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.716e-06/1.345, allocations: 0 / 0.5123 GB, free: 84.58 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003023/1.346, allocations: 101.8 kB / 0.5124 GB, free: 84.58 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1847 * Number of variables: 1847 Notification: Performance of Generate backend data structure: time 0.03208/1.378, allocations: 5.775 MB / 0.518 GB, free: 79.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/1.378, allocations: 11.97 kB / 0.518 GB, free: 79.36 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004768/1.383, allocations: 0.931 MB / 0.5189 GB, free: 78.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01816/1.401, allocations: 2.321 MB / 0.5212 GB, free: 76.08 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0179/1.419, allocations: 4.988 MB / 0.5261 GB, free: 71.03 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004691/1.419, allocations: 390.3 kB / 0.5264 GB, free: 70.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003181/1.423, allocations: 0.5115 MB / 0.5269 GB, free: 70.14 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04157/1.464, allocations: 12.98 MB / 0.5396 GB, free: 56.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003905/1.465, allocations: 63.39 kB / 0.5397 GB, free: 56.04 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002929/1.468, allocations: 251.9 kB / 0.5399 GB, free: 55.79 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002909/1.471, allocations: 1.212 MB / 0.5411 GB, free: 54.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03614/1.507, allocations: 11.28 MB / 0.5521 GB, free: 43.28 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1013/1.608, allocations: 55.77 MB / 0.6066 GB, free: 1.984 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03033/1.639, allocations: 5.326 MB / 0.6118 GB, free: 12.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002749/1.641, allocations: 1.01 MB / 0.6127 GB, free: 11.33 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001001/1.642, allocations: 67.77 kB / 0.6128 GB, free: 11.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=224): time 6.703e-06/1.642, allocations: 0 / 0.6128 GB, free: 11.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=255): time 0.4941/2.136, allocations: 26.17 MB / 0.6384 GB, free: 103.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.978e-05/2.136, allocations: 153.4 kB / 0.6385 GB, free: 103.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01031/2.146, allocations: 4.014 MB / 0.6424 GB, free: 103.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008621/2.147, allocations: 69.31 kB / 0.6425 GB, free: 103.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003294/2.15, allocations: 3.423 MB / 0.6458 GB, free: 101.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001946/2.152, allocations: 0.9594 MB / 0.6468 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009953/2.153, allocations: 136.6 kB / 0.6469 GB, free: 100.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004757/2.154, allocations: 0.5983 MB / 0.6475 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007681/2.162, allocations: 3.045 MB / 0.6505 GB, free: 100.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01022/2.172, allocations: 6.958 MB / 0.6573 GB, free: 94.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01048/2.182, allocations: 4.506 MB / 0.6617 GB, free: 92.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001374/2.183, allocations: 41.75 kB / 0.6617 GB, free: 92.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=891) (initialization): time 0.03041/2.213, allocations: 10.72 MB / 0.6722 GB, free: 88.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000121/2.213, allocations: 64.12 kB / 0.6722 GB, free: 88.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002469/2.213, allocations: 137.6 kB / 0.6724 GB, free: 88.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004996/2.218, allocations: 1.143 MB / 0.6735 GB, free: 88.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01138/2.23, allocations: 1.706 MB / 0.6752 GB, free: 88.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/2.241, allocations: 6.026 MB / 0.681 GB, free: 85.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008893/2.25, allocations: 425.8 kB / 0.6814 GB, free: 85.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001896/2.252, allocations: 425.9 kB / 0.6818 GB, free: 85.38 MB / 426.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 () * Number of clocked 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.00751/2.26, allocations: 2.419 MB / 0.6842 GB, free: 84.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/2.261, allocations: 415.4 kB / 0.6846 GB, free: 84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01656/2.278, allocations: 5.681 MB / 0.6902 GB, free: 79.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.341e-05/2.278, allocations: 27.28 kB / 0.6902 GB, free: 79.74 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/2.278, allocations: 4 kB / 0.6902 GB, free: 79.74 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.734e-05/2.278, allocations: 14.5 kB / 0.6902 GB, free: 79.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03295/2.311, allocations: 12.36 MB / 0.7023 GB, free: 69.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-05/2.311, allocations: 4.312 kB / 0.7023 GB, free: 69.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005128/2.316, allocations: 0.5183 MB / 0.7028 GB, free: 69.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004239/2.321, allocations: 0.9336 MB / 0.7037 GB, free: 68.67 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004964/2.321, allocations: 44.08 kB / 0.7037 GB, free: 68.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01054/2.332, allocations: 5.77 MB / 0.7094 GB, free: 63.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/2.332, allocations: 4 kB / 0.7094 GB, free: 63.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02242/2.354, allocations: 9.995 MB / 0.7191 GB, free: 54.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003552/2.358, allocations: 0.9128 MB / 0.72 GB, free: 53.89 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001601/2.359, allocations: 44 kB / 0.7201 GB, free: 53.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004591/2.364, allocations: 187.5 kB / 0.7202 GB, free: 53.73 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008204/2.365, allocations: 158.2 kB / 0.7204 GB, free: 53.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003125/2.365, allocations: 72.5 kB / 0.7205 GB, free: 53.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0065/2.372, allocations: 2.819 MB / 0.7232 GB, free: 51.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.22e-07/2.372, allocations: 0 / 0.7232 GB, free: 51.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008916/2.381, allocations: 1.264 MB / 0.7245 GB, free: 49.94 MB / 426.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 () * Number of clocked 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.02366/2.404, allocations: 11.34 MB / 0.7355 GB, free: 38.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01754/2.422, allocations: 7.306 MB / 0.7427 GB, free: 31.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.316e-05/2.422, allocations: 4 kB / 0.7427 GB, free: 31.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007249/2.429, allocations: 2.776 MB / 0.7454 GB, free: 28.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004426/2.434, allocations: 455.7 kB / 0.7458 GB, free: 27.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4428/2.877, allocations: 139.9 MB / 0.8824 GB, free: 34.17 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007712/2.884, allocations: 3.906 MB / 0.8862 GB, free: 33.35 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006359/2.891, allocations: 2.375 MB / 0.8885 GB, free: 32.41 MB / 442.7 MB Notification: Performance of SimCode: time 1.172e-06/2.891, allocations: 0 / 0.8885 GB, free: 32.41 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.931/7.822, allocations: 121.2 MB / 1.007 GB, free: 115.8 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat does not exist to compare? outputFormat=mat