Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadModel(ModelicaTest): time 2.235/2.235, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004437/0.0004437, allocations: 8 kB / 314.3 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2987, allocations: 54.86 MB / 369.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004568/0.3034, allocations: 1.701 MB / 370.9 MB, free: 8.902 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.3058, allocations: 0.6716 MB / 371.5 MB, free: 8.227 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002136/0.306, allocations: 4 kB / 371.5 MB, free: 8.223 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.3062, allocations: 27.78 kB / 371.6 MB, free: 8.195 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003902/0.3066, allocations: 83.73 kB / 371.7 MB, free: 8.113 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005512/0.3071, allocations: 67.86 kB / 371.7 MB, free: 8.047 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005573/0.3077, allocations: 187.5 kB / 371.9 MB, free: 7.863 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002743/0.308, allocations: 53.64 kB / 372 MB, free: 7.805 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.3083, allocations: 75.72 kB / 372 MB, free: 7.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002815/0.3086, allocations: 91.61 kB / 372.1 MB, free: 7.641 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.751e-05/0.3086, allocations: 12 kB / 372.1 MB, free: 7.629 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.809e-05/0.3087, allocations: 8 kB / 372.1 MB, free: 7.621 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.404e-05/0.3088, allocations: 35.84 kB / 372.2 MB, free: 7.586 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.309, allocations: 65.64 kB / 372.2 MB, free: 7.516 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.3094, allocations: 172.2 kB / 372.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.499e-06/0.3095, allocations: 0 / 372.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.502e-06/0.3095, allocations: 0 / 372.4 MB, free: 7.348 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.311e-06/0.3095, allocations: 0 / 372.4 MB, free: 7.348 MB / 298.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.001312/0.3108, allocations: 475 kB / 372.9 MB, free: 6.836 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.3109, allocations: 12.03 kB / 372.9 MB, free: 6.824 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.311, allocations: 23.72 kB / 372.9 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005617/0.3116, allocations: 233.3 kB / 373.1 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.415e-05/0.3117, allocations: 16.44 kB / 373.2 MB, free: 6.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.3118, allocations: 27.91 kB / 373.2 MB, free: 6.492 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008457/0.3127, allocations: 218.7 kB / 373.4 MB, free: 6.262 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.798e-05/0.3128, allocations: 4 kB / 373.4 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.383e-05/0.3128, allocations: 11.95 kB / 373.4 MB, free: 6.246 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.3129, allocations: 8 kB / 373.4 MB, free: 6.238 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005848/0.3135, allocations: 115.9 kB / 373.5 MB, free: 6.125 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003247/0.3168, allocations: 1.033 MB / 374.6 MB, free: 5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.3174, allocations: 154.4 kB / 374.7 MB, free: 4.812 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.3174, allocations: 8.062 kB / 374.7 MB, free: 4.805 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.57e-05/0.3175, allocations: 38.5 kB / 374.8 MB, free: 4.758 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 8.146e-06/0.3175, allocations: 0 / 374.8 MB, free: 4.758 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008974/0.3184, allocations: 157.4 kB / 374.9 MB, free: 4.598 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.3186, allocations: 128.5 kB / 375 MB, free: 4.441 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004103/0.319, allocations: 186.8 kB / 375.2 MB, free: 4.246 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.258e-05/0.3191, allocations: 25.7 kB / 375.2 MB, free: 4.215 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/0.3194, allocations: 226.2 kB / 375.5 MB, free: 3.992 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.3195, allocations: 67.31 kB / 375.5 MB, free: 3.926 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.3196, allocations: 4 kB / 375.5 MB, free: 3.922 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002652/0.3198, allocations: 326.8 kB / 375.9 MB, free: 3.594 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.3201, allocations: 39.97 kB / 375.9 MB, free: 3.555 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003994/0.3205, allocations: 150.5 kB / 376 MB, free: 3.355 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003281/0.3209, allocations: 64 kB / 376.1 MB, free: 3.293 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.471e-06/0.3209, allocations: 0 / 376.1 MB, free: 3.293 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009836/0.3219, allocations: 233.4 kB / 376.3 MB, free: 3.059 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.008e-05/0.3219, allocations: 4 kB / 376.3 MB, free: 3.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.322, allocations: 7.938 kB / 376.3 MB, free: 3.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.541e-05/0.322, allocations: 8 kB / 376.4 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005487/0.3226, allocations: 63.91 kB / 376.4 MB, free: 2.977 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.778e-05/0.3227, allocations: 11.92 kB / 376.4 MB, free: 2.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.323, allocations: 19.75 kB / 376.4 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.268e-05/0.3231, allocations: 16 kB / 376.5 MB, free: 2.93 MB / 298.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.000292/0.3234, allocations: 142.5 kB / 376.6 MB, free: 2.781 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002835/0.3237, allocations: 19.81 kB / 376.6 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003333/0.3241, allocations: 78.55 kB / 376.7 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.3241, allocations: 4 kB / 376.7 MB, free: 2.676 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.3242, allocations: 0 / 376.7 MB, free: 2.676 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.3242, allocations: 4 kB / 376.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001287/0.3255, allocations: 257.4 kB / 377 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.459e-06/0.3255, allocations: 4 kB / 377 MB, free: 2.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005729/0.3261, allocations: 43.97 kB / 377 MB, free: 2.324 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.969e-06/0.3262, allocations: 8 kB / 377 MB, free: 2.316 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/0.3262, allocations: 4 kB / 377 MB, free: 2.312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.29e-06/0.3262, allocations: 0 / 377 MB, free: 2.312 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.674e-06/0.3263, allocations: 0 / 377 MB, free: 2.312 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009469/0.3272, allocations: 489.4 kB / 377.5 MB, free: 1.816 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.3274, allocations: 108.8 kB / 377.6 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.543e-05/0.3275, allocations: 0 / 377.6 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006122/0.3281, allocations: 8 kB / 377.6 MB, free: 1.684 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.024e-05/0.3282, allocations: 7.984 kB / 377.6 MB, free: 1.676 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.527e-05/0.3282, allocations: 4 kB / 377.6 MB, free: 1.672 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002718/0.3285, allocations: 133.2 kB / 377.7 MB, free: 1.543 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.09e-06/0.3285, allocations: 0 / 377.7 MB, free: 1.543 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001357/0.3299, allocations: 55.84 kB / 377.8 MB, free: 1.488 MB / 298.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.0002046/0.3301, allocations: 110.9 kB / 377.9 MB, free: 1.375 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005993/0.3308, allocations: 127.8 kB / 378 MB, free: 1.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.734e-06/0.3308, allocations: 0 / 378 MB, free: 1.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.331, allocations: 44.86 kB / 378.1 MB, free: 1.207 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.3322, allocations: 40.72 kB / 378.1 MB, free: 1.168 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003346/0.3355, allocations: 1.014 MB / 379.1 MB, free: 120 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008103/0.3364, allocations: 0.7478 MB / 379.9 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.3365, allocations: 15.44 kB / 379.9 MB, free: 15.33 MB / 314.7 MB Notification: Performance of SimCode: time 2.251e-06/0.3365, allocations: 4 kB / 379.9 MB, free: 15.32 MB / 314.7 MB Notification: Performance of Templates: time 0.008341/0.3449, allocations: 2.332 MB / 382.2 MB, free: 12.99 MB / 314.7 MB