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.345/2.345, allocations: 234.9 MB / 250.5 MB, free: 9.457 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004338/0.0004338, allocations: 16 kB / 314.4 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.278, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1262/0.4042, allocations: 82.61 MB / 451.9 MB, free: 7.984 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.4044, allocations: 63.92 kB / 451.9 MB, free: 7.922 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02052/0.425, allocations: 4.701 MB / 456.6 MB, free: 3.191 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.08e-06/0.425, allocations: 0 / 456.6 MB, free: 3.191 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.002e-05/0.4251, allocations: 8 kB / 456.6 MB, free: 3.184 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.0009692/0.426, allocations: 0.5455 MB / 457.2 MB, free: 2.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.4261, allocations: 8.031 kB / 457.2 MB, free: 2.582 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.186e-05/0.4262, allocations: 31.62 kB / 457.2 MB, free: 2.551 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000373/0.4266, allocations: 250.5 kB / 457.5 MB, free: 2.266 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.209e-05/0.4266, allocations: 24.56 kB / 457.5 MB, free: 2.242 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.715e-05/0.4267, allocations: 28 kB / 457.5 MB, free: 2.215 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006684/0.4274, allocations: 285.9 kB / 457.8 MB, free: 1.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/0.4274, allocations: 3.906 kB / 457.8 MB, free: 1.906 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.689e-05/0.4275, allocations: 12 kB / 457.8 MB, free: 1.895 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.4275, allocations: 15.94 kB / 457.8 MB, free: 1.879 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006303/0.4281, allocations: 199.7 kB / 458 MB, free: 1.684 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/0.4304, allocations: 1.306 MB / 459.3 MB, free: 280 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006183/0.431, allocations: 247.9 kB / 459.6 MB, free: 16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.149e-05/0.4311, allocations: 8 kB / 459.6 MB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.4311, allocations: 38.55 kB / 459.6 MB, free: 15.94 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 6.524e-06/0.4312, allocations: 4 kB / 459.6 MB, free: 15.94 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.003677/0.4349, allocations: 1.62 MB / 461.2 MB, free: 14.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.523e-05/0.435, allocations: 132.5 kB / 461.4 MB, free: 13.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002816/0.4353, allocations: 200.1 kB / 461.6 MB, free: 13.74 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.668e-05/0.4353, allocations: 33.7 kB / 461.6 MB, free: 13.7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.4355, allocations: 238.6 kB / 461.8 MB, free: 13.46 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.4356, allocations: 118.3 kB / 462 MB, free: 13.35 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/0.4357, allocations: 12 kB / 462 MB, free: 13.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.4359, allocations: 330.8 kB / 462.3 MB, free: 13 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003717/0.4363, allocations: 108.8 kB / 462.4 MB, free: 12.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004714/0.4367, allocations: 241.5 kB / 462.6 MB, free: 12.61 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000463/0.4372, allocations: 148.2 kB / 462.8 MB, free: 12.46 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.08e-06/0.4372, allocations: 0 / 462.8 MB, free: 12.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001159/0.4384, allocations: 409 kB / 463.2 MB, free: 12.05 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.4384, allocations: 8 kB / 463.2 MB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.4385, allocations: 4.75 kB / 463.2 MB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.4385, allocations: 8 kB / 463.2 MB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005409/0.4391, allocations: 108.2 kB / 463.3 MB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.992e-05/0.4391, allocations: 11.94 kB / 463.3 MB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.4394, allocations: 31.94 kB / 463.3 MB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.2e-05/0.4395, allocations: 19.98 kB / 463.4 MB, free: 11.87 MB / 394.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.0002388/0.4397, allocations: 149.7 kB / 463.5 MB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.4399, allocations: 23.72 kB / 463.5 MB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.968e-05/0.44, allocations: 49.58 kB / 463.6 MB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.526e-06/0.44, allocations: 4 kB / 463.6 MB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.175e-06/0.44, allocations: 0 / 463.6 MB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.485e-06/0.4401, allocations: 7.938 kB / 463.6 MB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002185/0.4423, allocations: 1.009 MB / 464.6 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.574e-06/0.4423, allocations: 0 / 464.6 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005291/0.4428, allocations: 95.94 kB / 464.7 MB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.655e-06/0.4429, allocations: 0 / 464.7 MB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/0.4429, allocations: 8 kB / 464.7 MB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.109e-05/0.4429, allocations: 7.984 kB / 464.7 MB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.442e-06/0.4429, allocations: 3.938 kB / 464.7 MB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.4444, allocations: 0.8233 MB / 465.5 MB, free: 9.559 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.4446, allocations: 104.8 kB / 465.6 MB, free: 9.438 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.209e-05/0.4446, allocations: 11.95 kB / 465.7 MB, free: 9.426 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004227/0.4451, allocations: 23.98 kB / 465.7 MB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.463e-05/0.4452, allocations: 31.89 kB / 465.7 MB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.4452, allocations: 8.234 kB / 465.7 MB, free: 9.363 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000209/0.4455, allocations: 156.5 kB / 465.9 MB, free: 9.207 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.39e-07/0.4455, allocations: 0 / 465.9 MB, free: 9.207 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007056/0.4462, allocations: 68 kB / 465.9 MB, free: 9.141 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 () * 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.0001728/0.4464, allocations: 111.2 kB / 466 MB, free: 9.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009525/0.4473, allocations: 296.3 kB / 466.3 MB, free: 8.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.842e-06/0.4474, allocations: 0 / 466.3 MB, free: 8.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004386/0.4478, allocations: 152.4 kB / 466.5 MB, free: 8.582 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005726/0.4484, allocations: 36.38 kB / 466.5 MB, free: 8.547 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.4505, allocations: 1.103 MB / 467.6 MB, free: 7.398 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005158/0.451, allocations: 0.7761 MB / 468.4 MB, free: 6.586 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.4512, allocations: 27.42 kB / 468.4 MB, free: 6.559 MB / 394.7 MB Notification: Performance of SimCode: time 1.524e-06/0.4512, allocations: 0 / 468.4 MB, free: 6.559 MB / 394.7 MB Notification: Performance of Templates: time 0.006847/0.4581, allocations: 3.219 MB / 471.6 MB, free: 3.348 MB / 394.7 MB