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.462/2.462, allocations: 235 MB / 248.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.09e-05/3.1e-05, allocations: 0 / 309.8 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3922/0.3922, allocations: 54.86 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.5478, allocations: 82.5 MB / 447.1 MB, free: 13.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/0.5481, allocations: 59.98 kB / 447.2 MB, free: 13.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01849/0.5667, allocations: 4.153 MB / 451.3 MB, free: 9.785 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5667, allocations: 0 / 451.3 MB, free: 9.785 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.17e-05/0.5667, allocations: 4 kB / 451.3 MB, free: 9.781 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.0008208/0.5676, allocations: 458.3 kB / 451.8 MB, free: 9.289 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/0.5676, allocations: 17.89 kB / 451.8 MB, free: 9.273 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.465e-05/0.5678, allocations: 58.48 kB / 451.9 MB, free: 9.207 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.672e-05/0.5678, allocations: 23.72 kB / 451.9 MB, free: 9.184 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.5682, allocations: 227.2 kB / 452.1 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.5682, allocations: 16.44 kB / 452.1 MB, free: 8.902 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.697e-05/0.5683, allocations: 28 kB / 452.1 MB, free: 8.875 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005284/0.5689, allocations: 218.7 kB / 452.4 MB, free: 8.645 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.693e-05/0.5689, allocations: 3.906 kB / 452.4 MB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.5689, allocations: 12.55 kB / 452.4 MB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.569, allocations: 7.953 kB / 452.4 MB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003411/0.5693, allocations: 116.8 kB / 452.5 MB, free: 8.508 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.5715, allocations: 1.034 MB / 453.5 MB, free: 7.383 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003827/0.5719, allocations: 154.5 kB / 453.7 MB, free: 7.195 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.572, allocations: 63.61 kB / 453.7 MB, free: 7.121 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.5721, allocations: 0 / 453.7 MB, free: 7.121 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/0.5721, allocations: 38.56 kB / 453.8 MB, free: 7.074 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.034e-06/0.5721, allocations: 0 / 453.8 MB, free: 7.074 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004807/0.5726, allocations: 117.3 kB / 453.9 MB, free: 6.953 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.733e-05/0.5727, allocations: 136.5 kB / 454 MB, free: 6.789 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002349/0.573, allocations: 154.3 kB / 454.2 MB, free: 6.629 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.518e-05/0.573, allocations: 30.92 kB / 454.2 MB, free: 6.594 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.5732, allocations: 230.3 kB / 454.4 MB, free: 6.367 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.153e-05/0.5733, allocations: 58.34 kB / 454.5 MB, free: 6.312 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.652e-05/0.5733, allocations: 8 kB / 454.5 MB, free: 6.305 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.5735, allocations: 322.8 kB / 454.8 MB, free: 5.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.5736, allocations: 40 kB / 454.9 MB, free: 5.941 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002677/0.5739, allocations: 154.5 kB / 455 MB, free: 5.738 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001973/0.5741, allocations: 59.97 kB / 455.1 MB, free: 5.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.5741, allocations: 3.938 kB / 455.1 MB, free: 5.676 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000575/0.5747, allocations: 221.4 kB / 455.3 MB, free: 5.453 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.5747, allocations: 4 kB / 455.3 MB, free: 5.449 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.5748, allocations: 8.062 kB / 455.3 MB, free: 5.441 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.7e-05/0.5748, allocations: 8 kB / 455.3 MB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004137/0.5752, allocations: 61.09 kB / 455.4 MB, free: 5.375 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.88e-05/0.5753, allocations: 11.94 kB / 455.4 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002254/0.5755, allocations: 23.75 kB / 455.4 MB, free: 5.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/0.5755, allocations: 16 kB / 455.4 MB, free: 5.324 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.0001315/0.5757, allocations: 128.8 kB / 455.5 MB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.5758, allocations: 15.81 kB / 455.6 MB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002656/0.5761, allocations: 78.55 kB / 455.6 MB, free: 5.082 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.5761, allocations: 4 kB / 455.6 MB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.5761, allocations: 1.031 kB / 455.6 MB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.5762, allocations: 4 kB / 455.6 MB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000695/0.5769, allocations: 261.5 kB / 455.9 MB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.5769, allocations: 0 / 455.9 MB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000471/0.5774, allocations: 43.97 kB / 455.9 MB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/0.5774, allocations: 4 kB / 455.9 MB, free: 4.723 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.5774, allocations: 4 kB / 455.9 MB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-06/0.5774, allocations: 7.938 kB / 456 MB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.5774, allocations: 0 / 456 MB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006329/0.5781, allocations: 0.5103 MB / 456.5 MB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.031e-05/0.5782, allocations: 96.86 kB / 456.6 MB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.249e-05/0.5782, allocations: 5.031 kB / 456.6 MB, free: 4.047 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002669/0.5785, allocations: 4 kB / 456.6 MB, free: 4.043 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.5786, allocations: 19.94 kB / 456.6 MB, free: 4.023 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.5786, allocations: 4 kB / 456.6 MB, free: 4.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001584/0.5788, allocations: 133.2 kB / 456.7 MB, free: 3.891 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5788, allocations: 0 / 456.7 MB, free: 3.891 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006024/0.5794, allocations: 59.83 kB / 456.8 MB, free: 3.832 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.001051/0.5805, allocations: 1.273 MB / 458 MB, free: 2.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003913/0.5809, allocations: 130.3 kB / 458.2 MB, free: 2.395 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.5809, allocations: 0 / 458.2 MB, free: 2.395 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.581, allocations: 43.94 kB / 458.2 MB, free: 2.352 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006679/0.5817, allocations: 33.09 kB / 458.3 MB, free: 2.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00228/0.584, allocations: 0.8265 MB / 459.1 MB, free: 1.438 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004763/0.5845, allocations: 0.7482 MB / 459.8 MB, free: 0.6602 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001505/0.5847, allocations: 63.41 kB / 459.9 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5847, allocations: 3.938 kB / 459.9 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.366/2.951, allocations: 3.277 MB / 463.2 MB, free: 13.32 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