Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.794/1.794, allocations: 171.2 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004033/0.0004035, allocations: 8 kB / 233.8 MB, free: 3.086 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08646/0.08689, allocations: 38.77 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3668/0.4537, allocations: 66.19 MB / 338.7 MB, free: 7.73 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.454, allocations: 67.41 kB / 338.8 MB, free: 7.699 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01234/0.4664, allocations: 2.961 MB / 341.8 MB, free: 5.117 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.4665, allocations: 0 / 341.8 MB, free: 5.117 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.01e-05/0.4665, allocations: 8.875 kB / 341.8 MB, free: 5.109 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0007349/0.4673, allocations: 448.9 kB / 342.2 MB, free: 4.645 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.4673, allocations: 8.031 kB / 342.2 MB, free: 4.637 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.4674, allocations: 23.72 kB / 342.2 MB, free: 4.613 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003271/0.4678, allocations: 227 kB / 342.5 MB, free: 4.367 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.68e-05/0.4678, allocations: 21.88 kB / 342.5 MB, free: 4.355 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.592e-05/0.4679, allocations: 30.39 kB / 342.5 MB, free: 4.332 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006361/0.4685, allocations: 271.6 kB / 342.8 MB, free: 4.109 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.4686, allocations: 0 / 342.8 MB, free: 4.109 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.521e-05/0.4686, allocations: 12.62 kB / 342.8 MB, free: 4.105 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.4686, allocations: 4 kB / 342.8 MB, free: 4.102 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004817/0.4691, allocations: 165.2 kB / 342.9 MB, free: 3.992 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.4708, allocations: 0.9536 MB / 343.9 MB, free: 3.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004136/0.4713, allocations: 152.1 kB / 344 MB, free: 2.977 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.4713, allocations: 4.188 kB / 344.1 MB, free: 2.973 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002829/0.4716, allocations: 124.9 kB / 344.2 MB, free: 2.867 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.915e-06/0.4716, allocations: 0 / 344.2 MB, free: 2.867 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006551/0.4723, allocations: 208.3 kB / 344.4 MB, free: 2.703 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.4723, allocations: 55.41 kB / 344.4 MB, free: 2.637 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.4725, allocations: 155.2 kB / 344.6 MB, free: 2.496 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.435e-05/0.4726, allocations: 40.14 kB / 344.6 MB, free: 2.457 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.4727, allocations: 209.8 kB / 344.8 MB, free: 2.258 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.172e-05/0.4728, allocations: 58.75 kB / 344.9 MB, free: 2.207 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.665e-05/0.4729, allocations: 10.88 kB / 344.9 MB, free: 2.203 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.473, allocations: 324.6 kB / 345.2 MB, free: 1.883 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.4732, allocations: 61.38 kB / 345.3 MB, free: 1.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002646/0.4735, allocations: 141.3 kB / 345.4 MB, free: 1.699 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/0.4737, allocations: 73.55 kB / 345.5 MB, free: 1.652 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4737, allocations: 0 / 345.5 MB, free: 1.652 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006231/0.4744, allocations: 251.3 kB / 345.7 MB, free: 1.457 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.4744, allocations: 5.094 kB / 345.7 MB, free: 1.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.4744, allocations: 4 kB / 345.7 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.469e-05/0.4745, allocations: 7.953 kB / 345.7 MB, free: 1.441 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.4747, allocations: 30.05 kB / 345.8 MB, free: 1.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/0.4747, allocations: 7.938 kB / 345.8 MB, free: 1.406 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.4749, allocations: 17.86 kB / 345.8 MB, free: 1.395 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-05/0.475, allocations: 12.28 kB / 345.8 MB, free: 1.383 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0002232/0.4752, allocations: 160.7 kB / 346 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.892e-05/0.4752, allocations: 15.81 kB / 346 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000513/0.4758, allocations: 185.6 kB / 346.2 MB, free: 1.086 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.4758, allocations: 3.938 kB / 346.2 MB, free: 1.082 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.4758, allocations: 7.953 kB / 346.2 MB, free: 1.074 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.4758, allocations: 3.984 kB / 346.2 MB, free: 1.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.477, allocations: 0.5833 MB / 346.8 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.477, allocations: 0 / 346.8 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001362/0.4771, allocations: 23.88 kB / 346.8 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.4772, allocations: 0 / 346.8 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.313e-05/0.4772, allocations: 7.5 kB / 346.8 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.4772, allocations: 0 / 346.8 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4772, allocations: 0 / 346.8 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004735/0.4777, allocations: 274.2 kB / 347.1 MB, free: 252 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.255e-05/0.4778, allocations: 96.8 kB / 347.2 MB, free: 136 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/0.4778, allocations: 15.25 kB / 347.2 MB, free: 124 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.478, allocations: 4 kB / 347.2 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.421e-05/0.4781, allocations: 18.91 kB / 347.2 MB, free: 104 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.85e-05/0.4781, allocations: 15.75 kB / 347.2 MB, free: 92 kB / 266.7 MB Notification: Performance of sorting global known variables: time 8.705e-05/0.4782, allocations: 95.39 kB / 347.3 MB, free: 0 / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4782, allocations: 0 / 347.3 MB, free: 0 / 266.7 MB Notification: Performance of remove unused functions: time 0.000475/0.4787, allocations: 51.09 kB / 347.4 MB, free: 15.96 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000189/0.4789, allocations: 110.2 kB / 347.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004935/0.4794, allocations: 182.1 kB / 347.6 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4795, allocations: 0 / 347.6 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001989/0.4797, allocations: 80.09 kB / 347.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.4799, allocations: 19.67 kB / 347.7 MB, free: 15.63 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008935/0.4809, allocations: 409.9 kB / 348.1 MB, free: 15.23 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.4812, allocations: 0.7441 MB / 348.9 MB, free: 14.47 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.4814, allocations: 23.44 kB / 348.9 MB, free: 14.45 MB / 282.7 MB Notification: Performance of SimCode: time 1.453e-06/0.4814, allocations: 0 / 348.9 MB, free: 14.45 MB / 282.7 MB Notification: Performance of Templates: time 0.006577/0.488, allocations: 2.319 MB / 351.2 MB, free: 12.15 MB / 282.7 MB