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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.109/2.109, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.42e-05/1.424e-05, allocations: 4 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3557, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.127/0.4827, allocations: 81.86 MB / 439.9 MB, free: 12.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.483, allocations: 63.97 kB / 439.9 MB, free: 12.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02048/0.5035, allocations: 4.658 MB / 444.6 MB, free: 8.227 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.5035, allocations: 0 / 444.6 MB, free: 8.227 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.728e-05/0.5036, allocations: 12 kB / 444.6 MB, free: 8.215 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.0008785/0.5045, allocations: 0.5099 MB / 445.1 MB, free: 7.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.5045, allocations: 11.97 kB / 445.1 MB, free: 7.648 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.756e-05/0.5046, allocations: 35.53 kB / 445.2 MB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003862/0.505, allocations: 250.6 kB / 445.4 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.505, allocations: 8 kB / 445.4 MB, free: 7.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.13e-05/0.5051, allocations: 12 kB / 445.4 MB, free: 7.309 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000357/0.5055, allocations: 129.1 kB / 445.6 MB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004564/0.506, allocations: 224.8 kB / 445.8 MB, free: 6.941 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.923e-05/0.506, allocations: 8 kB / 445.8 MB, free: 6.934 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.506, allocations: 3.953 kB / 445.8 MB, free: 6.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.5061, allocations: 8 kB / 445.8 MB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002095/0.5082, allocations: 1.255 MB / 447.1 MB, free: 5.574 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003949/0.5086, allocations: 206.4 kB / 447.3 MB, free: 5.336 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.5088, allocations: 67.44 kB / 447.3 MB, free: 5.258 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.5088, allocations: 4 kB / 447.3 MB, free: 5.254 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.5089, allocations: 46.67 kB / 447.4 MB, free: 5.199 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 3.361e-06/0.5089, allocations: 4 kB / 447.4 MB, free: 5.195 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002501/0.5114, allocations: 1.333 MB / 448.7 MB, free: 3.656 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.193e-05/0.5115, allocations: 132.5 kB / 448.8 MB, free: 3.496 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002623/0.5118, allocations: 188.4 kB / 449 MB, free: 3.301 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.296e-05/0.5118, allocations: 25.7 kB / 449.1 MB, free: 3.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.512, allocations: 235 kB / 449.3 MB, free: 3.035 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.5121, allocations: 110.4 kB / 449.4 MB, free: 2.926 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.644e-05/0.5122, allocations: 0 / 449.4 MB, free: 2.926 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.5124, allocations: 334.9 kB / 449.7 MB, free: 2.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.5125, allocations: 68.81 kB / 449.8 MB, free: 2.523 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.5129, allocations: 198.3 kB / 450 MB, free: 2.273 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002405/0.5132, allocations: 91.89 kB / 450.1 MB, free: 2.184 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.371e-06/0.5132, allocations: 0 / 450.1 MB, free: 2.184 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006891/0.5139, allocations: 277.7 kB / 450.3 MB, free: 1.906 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.5139, allocations: 11.94 kB / 450.4 MB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.5139, allocations: 4.375 kB / 450.4 MB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/0.514, allocations: 8 kB / 450.4 MB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005293/0.5145, allocations: 103.9 kB / 450.5 MB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.855e-05/0.5146, allocations: 16.25 kB / 450.5 MB, free: 1.766 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000313/0.5149, allocations: 27.92 kB / 450.5 MB, free: 1.738 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.512e-05/0.5149, allocations: 23.94 kB / 450.5 MB, free: 1.715 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.0001326/0.5151, allocations: 108.9 kB / 450.6 MB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.5153, allocations: 35.61 kB / 450.7 MB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.804e-05/0.5153, allocations: 29.83 kB / 450.7 MB, free: 1.543 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.213e-06/0.5154, allocations: 8 kB / 450.7 MB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/0.5154, allocations: 4 kB / 450.7 MB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.743e-06/0.5154, allocations: 11.98 kB / 450.7 MB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/0.5172, allocations: 0.8614 MB / 451.6 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.952e-06/0.5172, allocations: 4 kB / 451.6 MB, free: 0.6016 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005127/0.5177, allocations: 83.98 kB / 451.7 MB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.355e-05/0.5177, allocations: 15.95 kB / 451.7 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.948e-05/0.5178, allocations: 3.984 kB / 451.7 MB, free: 0.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.637e-06/0.5178, allocations: 4 kB / 451.7 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.839e-06/0.5178, allocations: 4 kB / 451.7 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009379/0.5188, allocations: 0.6828 MB / 452.4 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.5189, allocations: 96.83 kB / 452.5 MB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.803e-05/0.519, allocations: 0 / 452.5 MB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004151/0.5194, allocations: 27.94 kB / 452.5 MB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.876e-05/0.5195, allocations: 28.02 kB / 452.5 MB, free: 15.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.184e-05/0.5195, allocations: 12 kB / 452.5 MB, free: 15.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001808/0.5197, allocations: 148.5 kB / 452.7 MB, free: 15.42 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.5197, allocations: 0 / 452.7 MB, free: 15.42 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006828/0.5204, allocations: 55.94 kB / 452.7 MB, free: 15.37 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.0001603/0.5206, allocations: 103.4 kB / 452.8 MB, free: 15.25 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005166/0.5211, allocations: 195.7 kB / 453 MB, free: 15.06 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.04e-06/0.5212, allocations: 0 / 453 MB, free: 15.06 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000224/0.5214, allocations: 95.86 kB / 453.1 MB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005361/0.5219, allocations: 25.36 kB / 453.2 MB, free: 14.95 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.5236, allocations: 0.7279 MB / 453.9 MB, free: 14.17 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00052/0.5241, allocations: 0.7878 MB / 454.7 MB, free: 13.35 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.5243, allocations: 35.38 kB / 454.7 MB, free: 13.31 MB / 394.7 MB Notification: Performance of SimCode: time 1.741e-06/0.5243, allocations: 0 / 454.7 MB, free: 13.31 MB / 394.7 MB Notification: Performance of Templates: time 0.006779/0.5311, allocations: 3.188 MB / 457.9 MB, free: 10.13 MB / 394.7 MB