Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003695, allocations: 7.984 kB / 233.8 MB, free: 2.402 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08999/0.09038, allocations: 38.77 MB / 272.6 MB, free: 11.56 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3746/0.4651, allocations: 66.2 MB / 338.8 MB, free: 7.156 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.4654, allocations: 69.75 kB / 338.9 MB, free: 7.121 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01176/0.4772, allocations: 2.953 MB / 341.8 MB, free: 4.551 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4772, allocations: 3.938 kB / 341.8 MB, free: 4.547 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.759e-05/0.4772, allocations: 8.875 kB / 341.8 MB, free: 4.539 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.0007381/0.478, allocations: 452.5 kB / 342.3 MB, free: 4.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.478, allocations: 12.03 kB / 342.3 MB, free: 4.059 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.086e-05/0.4781, allocations: 23.72 kB / 342.3 MB, free: 4.035 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/0.4785, allocations: 213 kB / 342.5 MB, free: 3.801 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.07e-05/0.4785, allocations: 19.19 kB / 342.6 MB, free: 3.793 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.02e-05/0.4786, allocations: 31.39 kB / 342.6 MB, free: 3.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006132/0.4792, allocations: 266.9 kB / 342.8 MB, free: 3.551 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.4793, allocations: 4 kB / 342.8 MB, free: 3.547 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.42e-05/0.4793, allocations: 11.11 kB / 342.9 MB, free: 3.543 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/0.4793, allocations: 8 kB / 342.9 MB, free: 3.535 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004663/0.4798, allocations: 164.5 kB / 343 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.4814, allocations: 0.9542 MB / 344 MB, free: 2.523 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/0.4818, allocations: 150.1 kB / 344.1 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.4818, allocations: 192 / 344.1 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/0.4821, allocations: 117.6 kB / 344.2 MB, free: 2.309 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 4.439e-06/0.4821, allocations: 3.984 kB / 344.2 MB, free: 2.305 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005997/0.4827, allocations: 218 kB / 344.5 MB, free: 2.137 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.184e-05/0.4828, allocations: 55.41 kB / 344.5 MB, free: 2.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.483, allocations: 153.5 kB / 344.7 MB, free: 1.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.968e-05/0.483, allocations: 45 kB / 344.7 MB, free: 1.887 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.4831, allocations: 135.2 kB / 344.8 MB, free: 1.758 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.937e-05/0.4832, allocations: 61.61 kB / 344.9 MB, free: 1.707 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.62e-05/0.4833, allocations: 11.31 kB / 344.9 MB, free: 1.699 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.4834, allocations: 328.9 kB / 345.2 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.4836, allocations: 61.81 kB / 345.3 MB, free: 1.332 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002779/0.4839, allocations: 141.6 kB / 345.4 MB, free: 1.191 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001939/0.4841, allocations: 71.48 kB / 345.5 MB, free: 1.148 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.4841, allocations: 0 / 345.5 MB, free: 1.148 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005749/0.4847, allocations: 247.8 kB / 345.7 MB, free: 0.957 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.4847, allocations: 4 kB / 345.7 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.4848, allocations: 7.984 kB / 345.8 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.4848, allocations: 7.953 kB / 345.8 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002257/0.485, allocations: 31.86 kB / 345.8 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.4851, allocations: 4 kB / 345.8 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00015/0.4852, allocations: 19.53 kB / 345.8 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.394e-05/0.4853, allocations: 12.28 kB / 345.8 MB, free: 0.8789 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.0002045/0.4855, allocations: 158.3 kB / 346 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.52e-05/0.4855, allocations: 11.91 kB / 346 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005057/0.4861, allocations: 199.5 kB / 346.2 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.4861, allocations: 3.938 kB / 346.2 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.649e-06/0.4861, allocations: 7.953 kB / 346.2 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.4861, allocations: 0 / 346.2 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.4872, allocations: 0.5793 MB / 346.8 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.4872, allocations: 0 / 346.8 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.4874, allocations: 12.19 kB / 346.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.4874, allocations: 0.5 kB / 346.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.504e-05/0.4874, allocations: 13.05 kB / 346.8 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.4875, allocations: 3.953 kB / 346.8 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.4875, allocations: 3.938 kB / 346.8 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004951/0.488, allocations: 272.7 kB / 347.1 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.108e-05/0.4881, allocations: 92.94 kB / 347.2 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/0.4881, allocations: 7.375 kB / 347.2 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.4883, allocations: 7.312 kB / 347.2 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.826e-05/0.4884, allocations: 19.92 kB / 347.2 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.837e-05/0.4884, allocations: 15.8 kB / 347.2 MB, free: 15.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.663e-05/0.4885, allocations: 97.33 kB / 347.3 MB, free: 15.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4885, allocations: 0 / 347.3 MB, free: 15.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000429/0.489, allocations: 43.19 kB / 347.4 MB, free: 15.46 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.0001992/0.4892, allocations: 118.5 kB / 347.5 MB, free: 15.34 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004682/0.4896, allocations: 182.5 kB / 347.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4897, allocations: 3.938 kB / 347.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002052/0.4899, allocations: 76.86 kB / 347.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.4902, allocations: 24.16 kB / 347.8 MB, free: 15.13 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009162/0.4911, allocations: 389 kB / 348.1 MB, free: 14.77 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.4915, allocations: 0.7444 MB / 348.9 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001438/0.4917, allocations: 25.94 kB / 348.9 MB, free: 13.97 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.736e-05/0.4918, allocations: 19.44 kB / 348.9 MB, free: 13.95 MB / 282.7 MB Notification: Performance of SimCode: time 9.72e-07/0.4918, allocations: 0 / 348.9 MB, free: 13.95 MB / 282.7 MB Notification: Performance of Templates: time 0.007216/0.499, allocations: 1.658 MB / 350.6 MB, free: 12.31 MB / 282.7 MB