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.909/1.909, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.022e-05/3.047e-05, allocations: 4 kB / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/0.08636, allocations: 48.71 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.337/0.4234, allocations: 76.16 MB / 402.7 MB, free: 9.887 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001881/0.4236, allocations: 62.16 kB / 402.8 MB, free: 9.879 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01949/0.4431, allocations: 4.707 MB / 407.5 MB, free: 8.047 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.206e-06/0.4431, allocations: 0 / 407.5 MB, free: 8.047 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.27e-05/0.4432, allocations: 3.844 kB / 407.5 MB, free: 8.047 MB / 314.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.0006926/0.4439, allocations: 0.522 MB / 408 MB, free: 7.594 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.4439, allocations: 7.688 kB / 408 MB, free: 7.594 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.634e-05/0.444, allocations: 38.33 kB / 408 MB, free: 7.578 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.4443, allocations: 255.6 kB / 408.3 MB, free: 7.336 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.4444, allocations: 21.25 kB / 408.3 MB, free: 7.332 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.813e-05/0.4444, allocations: 29.41 kB / 408.3 MB, free: 7.332 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004193/0.4449, allocations: 253.4 kB / 408.6 MB, free: 7.215 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.4449, allocations: 3.906 kB / 408.6 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.25e-05/0.4449, allocations: 14.22 kB / 408.6 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.445, allocations: 7.688 kB / 408.6 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003341/0.4453, allocations: 150.7 kB / 408.7 MB, free: 7.188 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.4471, allocations: 1.309 MB / 410.1 MB, free: 6.125 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003453/0.4474, allocations: 214.3 kB / 410.3 MB, free: 6.016 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/0.4476, allocations: 86.42 kB / 410.4 MB, free: 5.977 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.4476, allocations: 3.844 kB / 410.4 MB, free: 5.977 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.4477, allocations: 42.39 kB / 410.4 MB, free: 5.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 3.143e-06/0.4477, allocations: 0 / 410.4 MB, free: 5.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002001/0.4497, allocations: 1.404 MB / 411.8 MB, free: 4.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.4498, allocations: 136.3 kB / 411.9 MB, free: 4.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000213/0.45, allocations: 201.8 kB / 412.1 MB, free: 4.457 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.45, allocations: 36.17 kB / 412.2 MB, free: 4.426 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.122e-05/0.4501, allocations: 226.7 kB / 412.4 MB, free: 4.234 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.137e-05/0.4502, allocations: 119.3 kB / 412.5 MB, free: 4.152 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.111e-05/0.4502, allocations: 7.062 kB / 412.5 MB, free: 4.148 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.022e-05/0.4503, allocations: 326.3 kB / 412.8 MB, free: 3.832 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.4505, allocations: 75.08 kB / 412.9 MB, free: 3.824 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002372/0.4508, allocations: 203.7 kB / 413.1 MB, free: 3.656 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002374/0.451, allocations: 105.7 kB / 413.2 MB, free: 3.633 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.827e-06/0.451, allocations: 3.875 kB / 413.2 MB, free: 3.633 MB / 314.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006637/0.4517, allocations: 316.3 kB / 413.5 MB, free: 3.535 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.4517, allocations: 11.75 kB / 413.5 MB, free: 3.531 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.853e-06/0.4518, allocations: 3.938 kB / 413.5 MB, free: 3.531 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/0.4518, allocations: 7.734 kB / 413.5 MB, free: 3.531 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005124/0.4523, allocations: 108.4 kB / 413.6 MB, free: 3.508 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.4524, allocations: 19.73 kB / 413.7 MB, free: 3.496 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000339/0.4527, allocations: 42.14 kB / 413.7 MB, free: 3.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.4528, allocations: 17.88 kB / 413.7 MB, free: 3.48 MB / 314.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 9.841e-05/0.4529, allocations: 123.5 kB / 413.8 MB, free: 3.367 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.453, allocations: 27.16 kB / 413.9 MB, free: 3.355 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.876e-05/0.4531, allocations: 32.73 kB / 413.9 MB, free: 3.344 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.4532, allocations: 11.62 kB / 413.9 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.246e-06/0.4532, allocations: 0 / 413.9 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.677e-06/0.4532, allocations: 7.984 kB / 413.9 MB, free: 3.332 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.4547, allocations: 0.933 MB / 414.9 MB, free: 2.672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.834e-06/0.4547, allocations: 3.969 kB / 414.9 MB, free: 2.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000546/0.4553, allocations: 88.84 kB / 414.9 MB, free: 2.652 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.507e-06/0.4553, allocations: 0 / 414.9 MB, free: 2.652 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.4553, allocations: 7.031 kB / 415 MB, free: 2.652 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.132e-06/0.4554, allocations: 11.98 kB / 415 MB, free: 2.645 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.4554, allocations: 3.938 kB / 415 MB, free: 2.641 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007667/0.4562, allocations: 0.6997 MB / 415.7 MB, free: 2.145 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.4563, allocations: 121 kB / 415.8 MB, free: 2.027 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.66e-05/0.4564, allocations: 7.719 kB / 415.8 MB, free: 2.027 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004342/0.4568, allocations: 29.38 kB / 415.8 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.507e-05/0.4569, allocations: 30.17 kB / 415.9 MB, free: 2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.457, allocations: 11.41 kB / 415.9 MB, free: 2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001552/0.4571, allocations: 157.5 kB / 416 MB, free: 1.914 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.99e-06/0.4571, allocations: 0 / 416 MB, free: 1.914 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006771/0.4578, allocations: 70 kB / 416.1 MB, free: 1.91 MB / 314.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.0001299/0.458, allocations: 108.5 kB / 416.2 MB, free: 1.816 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004732/0.4585, allocations: 227.2 kB / 416.4 MB, free: 1.73 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.4585, allocations: 0 / 416.4 MB, free: 1.73 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002087/0.4587, allocations: 105.5 kB / 416.5 MB, free: 1.652 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005442/0.4593, allocations: 36.03 kB / 416.6 MB, free: 1.629 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.4606, allocations: 0.7488 MB / 417.3 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.4609, allocations: 0.7838 MB / 418.1 MB, free: 68 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.461, allocations: 27.44 kB / 418.1 MB, free: 40 kB / 314.7 MB Notification: Performance of SimCode: time 1.906e-06/0.461, allocations: 0 / 418.1 MB, free: 40 kB / 314.7 MB Notification: Performance of Templates: time 0.006748/0.4678, allocations: 3.219 MB / 421.3 MB, free: 12.86 MB / 330.7 MB