Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking.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.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.319/2.319, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006712/0.0006714, allocations: 16 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3794, allocations: 54.85 MB / 369.3 MB, free: 12.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1517/0.5312, allocations: 82.58 MB / 451.9 MB, free: 9.953 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.5315, allocations: 59.81 kB / 452 MB, free: 9.898 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01872/0.5503, allocations: 4.143 MB / 456.1 MB, free: 5.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.5503, allocations: 4 kB / 456.1 MB, free: 5.746 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.953e-05/0.5504, allocations: 7.984 kB / 456.1 MB, free: 5.738 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008551/0.5512, allocations: 480.6 kB / 456.6 MB, free: 5.223 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.5513, allocations: 15.95 kB / 456.6 MB, free: 5.207 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.216e-05/0.5514, allocations: 54.55 kB / 456.7 MB, free: 5.145 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.976e-05/0.5515, allocations: 35.59 kB / 456.7 MB, free: 5.109 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003208/0.5518, allocations: 223.3 kB / 456.9 MB, free: 4.848 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.5518, allocations: 20.44 kB / 457 MB, free: 4.828 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.252e-05/0.5519, allocations: 27.89 kB / 457 MB, free: 4.801 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005434/0.5525, allocations: 218.6 kB / 457.2 MB, free: 4.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/0.5525, allocations: 4 kB / 457.2 MB, free: 4.566 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.044e-05/0.5526, allocations: 4 kB / 457.2 MB, free: 4.562 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.5526, allocations: 11.95 kB / 457.2 MB, free: 4.551 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003406/0.5529, allocations: 123.8 kB / 457.3 MB, free: 4.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.555, allocations: 1.029 MB / 458.4 MB, free: 3.309 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003671/0.5554, allocations: 166.6 kB / 458.5 MB, free: 3.109 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.5555, allocations: 4 kB / 458.5 MB, free: 3.105 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.5555, allocations: 34.56 kB / 458.6 MB, free: 3.062 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.805e-06/0.5555, allocations: 0 / 458.6 MB, free: 3.062 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005346/0.5561, allocations: 145.5 kB / 458.7 MB, free: 2.914 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.5562, allocations: 136.5 kB / 458.8 MB, free: 2.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.5564, allocations: 170.3 kB / 459 MB, free: 2.574 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.5565, allocations: 29.7 kB / 459 MB, free: 2.539 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.5566, allocations: 218.3 kB / 459.2 MB, free: 2.324 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.945e-05/0.5567, allocations: 55.2 kB / 459.3 MB, free: 2.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.385e-05/0.5567, allocations: 4 kB / 459.3 MB, free: 2.266 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.5569, allocations: 326.8 kB / 459.6 MB, free: 1.938 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.557, allocations: 43.92 kB / 459.7 MB, free: 1.895 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002103/0.5573, allocations: 151.8 kB / 459.8 MB, free: 1.695 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.5575, allocations: 67.94 kB / 459.9 MB, free: 1.629 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.5575, allocations: 0 / 459.9 MB, free: 1.629 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005452/0.558, allocations: 229.1 kB / 460.1 MB, free: 1.398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.5581, allocations: 8 kB / 460.1 MB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.5581, allocations: 4 kB / 460.1 MB, free: 1.387 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/0.5581, allocations: 8 kB / 460.1 MB, free: 1.379 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003853/0.5585, allocations: 60.34 kB / 460.2 MB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.5586, allocations: 8 kB / 460.2 MB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.5588, allocations: 23.78 kB / 460.2 MB, free: 1.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.5588, allocations: 24.11 kB / 460.2 MB, free: 1.266 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001786/0.559, allocations: 138.3 kB / 460.4 MB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.5591, allocations: 19.81 kB / 460.4 MB, free: 1.102 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000222/0.5594, allocations: 82.55 kB / 460.5 MB, free: 1.004 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.5594, allocations: 4 kB / 460.5 MB, free: 1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.5594, allocations: 0 / 460.5 MB, free: 1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.5594, allocations: 8 kB / 460.5 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006533/0.5601, allocations: 261.4 kB / 460.7 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.5601, allocations: 0 / 460.7 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004443/0.5606, allocations: 47.91 kB / 460.8 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.716e-06/0.5606, allocations: 4 kB / 460.8 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.422e-05/0.5606, allocations: 8 kB / 460.8 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.5606, allocations: 0 / 460.8 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.5606, allocations: 0 / 460.8 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000552/0.5612, allocations: 0.518 MB / 461.3 MB, free: 76 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.433e-05/0.5613, allocations: 89.02 kB / 461.4 MB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.129e-05/0.5614, allocations: 7.938 kB / 461.4 MB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002617/0.5616, allocations: 7.938 kB / 461.4 MB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.409e-05/0.5617, allocations: 15.94 kB / 461.4 MB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.5617, allocations: 8 kB / 461.4 MB, free: 15.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001473/0.5619, allocations: 129.2 kB / 461.6 MB, free: 15.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5619, allocations: 0 / 461.6 MB, free: 15.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006113/0.5625, allocations: 63.75 kB / 461.6 MB, free: 15.74 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi) * 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 (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009307/0.5634, allocations: 1.263 MB / 462.9 MB, free: 14.44 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003778/0.5638, allocations: 128.3 kB / 463 MB, free: 14.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5639, allocations: 0 / 463 MB, free: 14.31 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.564, allocations: 47.91 kB / 463.1 MB, free: 14.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007212/0.5647, allocations: 41.98 kB / 463.1 MB, free: 14.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004457/0.5692, allocations: 4.096 MB / 467.2 MB, free: 9.988 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004074/0.5696, allocations: 0.7555 MB / 468 MB, free: 9.207 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.5698, allocations: 63.42 kB / 468 MB, free: 9.148 MB / 394.7 MB Notification: Performance of SimCode: time 1.333e-06/0.5698, allocations: 0 / 468 MB, free: 9.148 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.401/2.971, allocations: 3.321 MB / 471.3 MB, free: 5.836 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking_res.mat does not exist to compare? outputFormat=mat