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.TestSpeed.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.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.2_cpp_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadModel(ModelicaTest): time 2.314/2.314, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.96e-05/2.979e-05, allocations: 8 kB / 309.7 MB, free: 1.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3226, allocations: 54.85 MB / 364.5 MB, free: 5.387 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1267/0.4494, allocations: 82.53 MB / 447.1 MB, free: 13.86 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.4497, allocations: 64.66 kB / 447.1 MB, free: 13.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02146/0.4711, allocations: 4.707 MB / 451.8 MB, free: 9.094 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.047e-06/0.4712, allocations: 0 / 451.8 MB, free: 9.094 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.61e-05/0.4712, allocations: 8 kB / 451.8 MB, free: 9.086 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009051/0.4722, allocations: 0.5099 MB / 452.3 MB, free: 8.531 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.4722, allocations: 11.97 kB / 452.4 MB, free: 8.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.136e-05/0.4723, allocations: 32.47 kB / 452.4 MB, free: 8.488 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00039/0.4727, allocations: 250.6 kB / 452.6 MB, free: 8.203 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.4728, allocations: 20.56 kB / 452.6 MB, free: 8.184 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.931e-05/0.4728, allocations: 28 kB / 452.7 MB, free: 8.156 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005172/0.4734, allocations: 253.9 kB / 452.9 MB, free: 7.883 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.073e-05/0.4734, allocations: 7.906 kB / 452.9 MB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.4735, allocations: 15.95 kB / 452.9 MB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.4735, allocations: 4 kB / 452.9 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003752/0.4739, allocations: 155 kB / 453.1 MB, free: 7.707 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002197/0.4761, allocations: 1.31 MB / 454.4 MB, free: 6.293 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004421/0.4765, allocations: 218.6 kB / 454.6 MB, free: 6.043 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.4767, allocations: 79.44 kB / 454.7 MB, free: 5.953 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.4768, allocations: 7.984 kB / 454.7 MB, free: 5.945 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.4768, allocations: 38.5 kB / 454.7 MB, free: 5.898 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 3.637e-06/0.4769, allocations: 4 kB / 454.8 MB, free: 5.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.00261/0.4795, allocations: 1.397 MB / 456.1 MB, free: 4.293 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.199e-05/0.4796, allocations: 140.5 kB / 456.3 MB, free: 4.125 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002739/0.4799, allocations: 193.1 kB / 456.5 MB, free: 3.922 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/0.4799, allocations: 37.64 kB / 456.5 MB, free: 3.879 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.4801, allocations: 234.7 kB / 456.7 MB, free: 3.648 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.4802, allocations: 118.3 kB / 456.9 MB, free: 3.531 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.085e-05/0.4803, allocations: 4 kB / 456.9 MB, free: 3.527 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.4805, allocations: 330.9 kB / 457.2 MB, free: 3.195 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.4807, allocations: 76.75 kB / 457.3 MB, free: 3.121 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003125/0.481, allocations: 201.5 kB / 457.5 MB, free: 2.867 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.4813, allocations: 108 kB / 457.6 MB, free: 2.762 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.025e-06/0.4813, allocations: 0 / 457.6 MB, free: 2.762 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007502/0.4821, allocations: 321.7 kB / 457.9 MB, free: 2.441 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.4821, allocations: 12.06 kB / 457.9 MB, free: 2.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.4821, allocations: 4 kB / 457.9 MB, free: 2.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.617e-05/0.4822, allocations: 8 kB / 457.9 MB, free: 2.418 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005426/0.4827, allocations: 103.9 kB / 458 MB, free: 2.316 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.491e-05/0.4827, allocations: 19.95 kB / 458 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003264/0.4831, allocations: 35.89 kB / 458.1 MB, free: 2.262 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/0.4831, allocations: 19.98 kB / 458.1 MB, free: 2.242 MB / 378.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 () * 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.0001399/0.4833, allocations: 128.9 kB / 458.2 MB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.4835, allocations: 23.72 kB / 458.2 MB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.57e-05/0.4836, allocations: 37.83 kB / 458.3 MB, free: 2.047 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.4836, allocations: 4 kB / 458.3 MB, free: 2.043 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.609e-06/0.4836, allocations: 3.938 kB / 458.3 MB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.4836, allocations: 11.94 kB / 458.3 MB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/0.4855, allocations: 0.9311 MB / 459.2 MB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.186e-06/0.4855, allocations: 0 / 459.2 MB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005365/0.486, allocations: 83.88 kB / 459.3 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.131e-05/0.4861, allocations: 4 kB / 459.3 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.348e-05/0.4861, allocations: 8 kB / 459.3 MB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.262e-06/0.4861, allocations: 8.062 kB / 459.3 MB, free: 0.9297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/0.4861, allocations: 7.922 kB / 459.3 MB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009585/0.4871, allocations: 0.7021 MB / 460 MB, free: 172 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.4872, allocations: 104.8 kB / 460.1 MB, free: 48 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.529e-05/0.4873, allocations: 8.062 kB / 460.1 MB, free: 40 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004199/0.4877, allocations: 28.3 kB / 460.2 MB, free: 12 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.4879, allocations: 27.91 kB / 460.2 MB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.499e-05/0.4879, allocations: 19.98 kB / 460.2 MB, free: 15.96 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002074/0.4881, allocations: 153.4 kB / 460.4 MB, free: 15.81 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.38e-07/0.4881, allocations: 0 / 460.4 MB, free: 15.81 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006924/0.4888, allocations: 68 kB / 460.4 MB, free: 15.75 MB / 394.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 () * 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.0001697/0.489, allocations: 103.2 kB / 460.5 MB, free: 15.64 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005716/0.4896, allocations: 220.2 kB / 460.7 MB, free: 15.42 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.132e-06/0.4896, allocations: 0 / 460.7 MB, free: 15.42 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000252/0.4899, allocations: 107.8 kB / 460.8 MB, free: 15.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005588/0.4905, allocations: 39.3 kB / 460.9 MB, free: 15.28 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.4921, allocations: 0.7445 MB / 461.6 MB, free: 14.49 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005178/0.4927, allocations: 0.7806 MB / 462.4 MB, free: 13.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.4928, allocations: 35.38 kB / 462.4 MB, free: 13.64 MB / 394.7 MB Notification: Performance of SimCode: time 1.833e-06/0.4928, allocations: 0 / 462.4 MB, free: 13.64 MB / 394.7 MB Notification: Performance of Templates: time 0.006833/0.4997, allocations: 3.202 MB / 465.6 MB, free: 10.45 MB / 394.7 MB