Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadModel(ModelicaTest): time 1.836/1.836, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005497/0.00055, allocations: 12 kB / 282.6 MB, free: 9.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.29, allocations: 48.7 MB / 331.3 MB, free: 6.477 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1144/0.4044, allocations: 76.26 MB / 407.5 MB, free: 2.184 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.4047, allocations: 59.97 kB / 407.6 MB, free: 2.125 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02075/0.4255, allocations: 4.702 MB / 412.3 MB, free: 13.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.999e-06/0.4255, allocations: 0 / 412.3 MB, free: 13.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.58e-05/0.4256, allocations: 11.98 kB / 412.3 MB, free: 13.4 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001013/0.4266, allocations: 0.5455 MB / 412.8 MB, free: 12.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.4266, allocations: 12.03 kB / 412.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.831e-05/0.4267, allocations: 31.62 kB / 412.9 MB, free: 12.76 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003965/0.4272, allocations: 254.5 kB / 413.1 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.4272, allocations: 20.56 kB / 413.2 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.114e-05/0.4273, allocations: 31.91 kB / 413.2 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006791/0.428, allocations: 285.9 kB / 413.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.993e-05/0.428, allocations: 3.906 kB / 413.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.4281, allocations: 12 kB / 413.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.4281, allocations: 4 kB / 413.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006077/0.4287, allocations: 203.7 kB / 413.7 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/0.431, allocations: 1.313 MB / 415 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005779/0.4316, allocations: 250.5 kB / 415.2 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.4317, allocations: 4 kB / 415.2 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.379e-05/0.4317, allocations: 43.92 kB / 415.3 MB, free: 10.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.589e-06/0.4317, allocations: 4 kB / 415.3 MB, free: 10.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.003705/0.4354, allocations: 1.623 MB / 416.9 MB, free: 8.305 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.4356, allocations: 144.5 kB / 417.1 MB, free: 8.133 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002874/0.4359, allocations: 204.1 kB / 417.3 MB, free: 7.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.72e-05/0.4359, allocations: 29.7 kB / 417.3 MB, free: 7.895 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.4361, allocations: 230.7 kB / 417.5 MB, free: 7.668 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.4362, allocations: 114.4 kB / 417.6 MB, free: 7.555 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.043e-05/0.4363, allocations: 4 kB / 417.6 MB, free: 7.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.4365, allocations: 330.8 kB / 417.9 MB, free: 7.219 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003656/0.4368, allocations: 112.8 kB / 418.1 MB, free: 7.109 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004775/0.4373, allocations: 249.5 kB / 418.3 MB, free: 6.805 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004478/0.4378, allocations: 141 kB / 418.4 MB, free: 6.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.56e-06/0.4378, allocations: 4 kB / 418.4 MB, free: 6.664 MB / 346.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001166/0.439, allocations: 405.1 kB / 418.8 MB, free: 6.262 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.439, allocations: 8 kB / 418.8 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.4391, allocations: 4 kB / 418.8 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.959e-05/0.4391, allocations: 16.36 kB / 418.9 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/0.4396, allocations: 103.9 kB / 419 MB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.4397, allocations: 11.94 kB / 419 MB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003099/0.44, allocations: 31.92 kB / 419 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.976e-05/0.44, allocations: 24 kB / 419 MB, free: 6.066 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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.0002455/0.4403, allocations: 157.7 kB / 419.2 MB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.4405, allocations: 27.62 kB / 419.2 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.076e-05/0.4406, allocations: 37.7 kB / 419.2 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.142e-06/0.4406, allocations: 7.938 kB / 419.3 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.809e-06/0.4406, allocations: 320 / 419.3 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.196e-06/0.4406, allocations: 0 / 419.3 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.4428, allocations: 1.013 MB / 420.3 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.399e-06/0.4429, allocations: 0 / 420.3 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005215/0.4434, allocations: 87.88 kB / 420.4 MB, free: 4.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.579e-06/0.4434, allocations: 0 / 420.4 MB, free: 4.664 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.884e-05/0.4435, allocations: 12 kB / 420.4 MB, free: 4.652 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.004e-05/0.4435, allocations: 7.938 kB / 420.4 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.4435, allocations: 8.016 kB / 420.4 MB, free: 4.637 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.445, allocations: 0.8194 MB / 421.2 MB, free: 3.762 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.4452, allocations: 116.9 kB / 421.3 MB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.161e-05/0.4453, allocations: 11.98 kB / 421.3 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004308/0.4457, allocations: 23.98 kB / 421.4 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.388e-05/0.4458, allocations: 27.92 kB / 421.4 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-05/0.4459, allocations: 12.28 kB / 421.4 MB, free: 3.555 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002137/0.4461, allocations: 160.5 kB / 421.5 MB, free: 3.398 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.4e-07/0.4461, allocations: 0 / 421.5 MB, free: 3.398 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000707/0.4468, allocations: 71.94 kB / 421.6 MB, free: 3.328 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.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 (32): * Single equations (assignments): 32 * 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.0001705/0.447, allocations: 115.1 kB / 421.7 MB, free: 3.207 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009097/0.4479, allocations: 296.3 kB / 422 MB, free: 2.918 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.5e-06/0.448, allocations: 0 / 422 MB, free: 2.918 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004159/0.4484, allocations: 147.7 kB / 422.2 MB, free: 2.773 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006546/0.4491, allocations: 34.23 kB / 422.2 MB, free: 2.742 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002093/0.4512, allocations: 1.107 MB / 423.3 MB, free: 1.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005344/0.4517, allocations: 0.7799 MB / 424.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.4519, allocations: 31.42 kB / 424.1 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of SimCode: time 1.725e-06/0.4519, allocations: 0 / 424.1 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of Templates: time 0.00692/0.4588, allocations: 3.219 MB / 427.3 MB, free: 13.53 MB / 362.7 MB