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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.391/2.391, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.59e-05/2.602e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3483, allocations: 54.84 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1488/0.4972, allocations: 81.83 MB / 439.9 MB, free: 12.92 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.4975, allocations: 63.97 kB / 440 MB, free: 12.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01822/0.5158, allocations: 4.124 MB / 444.1 MB, free: 8.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.5158, allocations: 0 / 444.1 MB, free: 8.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.246e-05/0.5159, allocations: 4 kB / 444.1 MB, free: 8.727 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.0007977/0.5167, allocations: 462.5 kB / 444.6 MB, free: 8.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.5167, allocations: 12.03 kB / 444.6 MB, free: 8.219 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.067e-05/0.5168, allocations: 27.67 kB / 444.6 MB, free: 8.191 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003348/0.5172, allocations: 227.2 kB / 444.8 MB, free: 7.926 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.5172, allocations: 4 kB / 444.8 MB, free: 7.922 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.59e-05/0.5173, allocations: 16 kB / 444.9 MB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003275/0.5176, allocations: 100.8 kB / 445 MB, free: 7.805 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004056/0.518, allocations: 181.9 kB / 445.1 MB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.569e-05/0.5181, allocations: 15.89 kB / 445.2 MB, free: 7.598 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.385e-05/0.5181, allocations: 0 / 445.2 MB, free: 7.598 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.5182, allocations: 11.95 kB / 445.2 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.52, allocations: 0.9826 MB / 446.1 MB, free: 6.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003024/0.5204, allocations: 148.2 kB / 446.3 MB, free: 6.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.943e-05/0.5205, allocations: 47.41 kB / 446.3 MB, free: 6.281 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.5205, allocations: 4 kB / 446.3 MB, free: 6.277 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.5205, allocations: 34.5 kB / 446.4 MB, free: 6.234 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.515e-06/0.5205, allocations: 4 kB / 446.4 MB, free: 6.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003937/0.521, allocations: 109.5 kB / 446.5 MB, free: 6.117 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.102e-05/0.521, allocations: 136.5 kB / 446.6 MB, free: 5.953 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.5212, allocations: 145.4 kB / 446.8 MB, free: 5.805 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.5213, allocations: 25.7 kB / 446.8 MB, free: 5.773 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.5214, allocations: 222.2 kB / 447 MB, free: 5.555 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.059e-05/0.5215, allocations: 59.19 kB / 447.1 MB, free: 5.496 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.002e-05/0.5215, allocations: 4.031 kB / 447.1 MB, free: 5.492 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.5216, allocations: 326.8 kB / 447.4 MB, free: 5.164 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.5217, allocations: 32 kB / 447.4 MB, free: 5.133 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.5219, allocations: 154.4 kB / 447.6 MB, free: 4.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.5221, allocations: 63.88 kB / 447.6 MB, free: 4.867 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.5222, allocations: 0 / 447.6 MB, free: 4.867 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004634/0.5226, allocations: 189.6 kB / 447.8 MB, free: 4.676 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.5227, allocations: 8 kB / 447.8 MB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.5227, allocations: 4 kB / 447.8 MB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.5227, allocations: 4 kB / 447.8 MB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003955/0.5231, allocations: 59.91 kB / 447.9 MB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.592e-05/0.5231, allocations: 11.94 kB / 447.9 MB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000194/0.5234, allocations: 15.84 kB / 447.9 MB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.5234, allocations: 15.98 kB / 447.9 MB, free: 4.559 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 () * 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.0001065/0.5235, allocations: 119 kB / 448 MB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003182/0.5238, allocations: 117.6 kB / 448.2 MB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.524, allocations: 19.81 kB / 448.2 MB, free: 4.297 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001965/0.5242, allocations: 71.17 kB / 448.3 MB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.5242, allocations: 4 kB / 448.3 MB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.5242, allocations: 0 / 448.3 MB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5242, allocations: 0 / 448.3 MB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006013/0.5248, allocations: 226.2 kB / 448.5 MB, free: 3.957 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.5248, allocations: 0 / 448.5 MB, free: 3.957 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004669/0.5253, allocations: 43.98 kB / 448.5 MB, free: 3.914 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.657e-06/0.5253, allocations: 4.031 kB / 448.5 MB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.5254, allocations: 11.92 kB / 448.5 MB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.5254, allocations: 3.938 kB / 448.5 MB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.5254, allocations: 7.984 kB / 448.5 MB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005079/0.5259, allocations: 0.4929 MB / 449 MB, free: 3.359 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.289e-05/0.526, allocations: 96.84 kB / 449.1 MB, free: 3.246 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/0.5261, allocations: 8 kB / 449.1 MB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.5264, allocations: 0 / 449.1 MB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/0.5264, allocations: 15.88 kB / 449.2 MB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.5265, allocations: 8 kB / 449.2 MB, free: 3.215 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00012/0.5266, allocations: 120.8 kB / 449.3 MB, free: 3.098 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5266, allocations: 4 kB / 449.3 MB, free: 3.094 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006162/0.5272, allocations: 51.84 kB / 449.3 MB, free: 3.043 MB / 378.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 () * 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.0008432/0.5281, allocations: 1.247 MB / 450.6 MB, free: 1.754 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003234/0.5284, allocations: 105.8 kB / 450.7 MB, free: 1.652 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5284, allocations: 0 / 450.7 MB, free: 1.652 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.656e-05/0.5285, allocations: 48.73 kB / 450.7 MB, free: 1.605 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006787/0.5292, allocations: 47.91 kB / 450.8 MB, free: 1.559 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002179/0.5314, allocations: 0.8099 MB / 451.6 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004165/0.5319, allocations: 0.748 MB / 452.3 MB, free: 15.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.532, allocations: 63.36 kB / 452.4 MB, free: 15.86 MB / 394.7 MB Notification: Performance of SimCode: time 3.276e-06/0.532, allocations: 0 / 452.4 MB, free: 15.86 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.509/3.041, allocations: 3.256 MB / 455.7 MB, free: 12.61 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