Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 2.572/2.572, allocations: 194.8 MB / 211.7 MB, free: 2.875 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003688/0.0003691, allocations: 8 kB / 264.5 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09848/0.09889, allocations: 44.5 MB / 309 MB, free: 360 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4582/0.5572, allocations: 71.51 MB / 380.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003383/0.5576, allocations: 70.14 kB / 380.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01707/0.5747, allocations: 2.963 MB / 383.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.267e-06/0.5747, allocations: 0 / 383.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.42e-05/0.5748, allocations: 4.125 kB / 383.6 MB, free: 15.07 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0009007/0.5757, allocations: 451.5 kB / 384 MB, free: 14.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.5758, allocations: 9.625 kB / 384 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.5759, allocations: 30.23 kB / 384 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003878/0.5763, allocations: 221.3 kB / 384.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.5764, allocations: 19.06 kB / 384.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.969e-05/0.5765, allocations: 30.11 kB / 384.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.5779, allocations: 268.9 kB / 384.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.578, allocations: 0.9062 kB / 384.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.896e-05/0.578, allocations: 10.09 kB / 384.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.5781, allocations: 5.75 kB / 384.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001311/0.5794, allocations: 169.5 kB / 384.8 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.5809, allocations: 0.9443 MB / 385.7 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003811/0.5813, allocations: 160.5 kB / 385.9 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.062e-05/0.5814, allocations: 5.703 kB / 385.9 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002572/0.5817, allocations: 108 kB / 386 MB, free: 13.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 4.008e-06/0.5817, allocations: 4 kB / 386 MB, free: 13.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005892/0.5823, allocations: 212.8 kB / 386.2 MB, free: 13.58 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.5823, allocations: 55.53 kB / 386.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.5825, allocations: 170.6 kB / 386.4 MB, free: 13.4 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.5825, allocations: 33.52 kB / 386.4 MB, free: 13.37 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.597e-05/0.5826, allocations: 142.5 kB / 386.6 MB, free: 13.26 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.631e-05/0.5827, allocations: 55.23 kB / 386.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.819e-05/0.5827, allocations: 8.812 kB / 386.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.5828, allocations: 330.2 kB / 387 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.583, allocations: 60.05 kB / 387 MB, free: 12.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.5832, allocations: 138.2 kB / 387.2 MB, free: 12.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.5834, allocations: 66.31 kB / 387.2 MB, free: 12.83 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.5834, allocations: 1.625 kB / 387.2 MB, free: 12.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005537/0.584, allocations: 257 kB / 387.5 MB, free: 12.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.584, allocations: 9.531 kB / 387.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.5841, allocations: 2.375 kB / 387.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.5841, allocations: 4.5 kB / 387.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.5843, allocations: 35.08 kB / 387.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.5844, allocations: 3.938 kB / 387.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001837/0.5846, allocations: 21.3 kB / 387.5 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.5846, allocations: 10.78 kB / 387.6 MB, free: 12.75 MB / 314.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.0001895/0.5848, allocations: 160 kB / 387.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.5849, allocations: 19.25 kB / 387.7 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004882/0.5854, allocations: 189.3 kB / 387.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.5854, allocations: 6.562 kB / 387.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.5854, allocations: 1.156 kB / 387.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.5854, allocations: 2.203 kB / 387.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009979/0.5864, allocations: 0.5846 MB / 388.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.5864, allocations: 3.828 kB / 388.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.5866, allocations: 19.28 kB / 388.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.5866, allocations: 5.344 kB / 388.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.855e-05/0.5866, allocations: 2.625 kB / 388.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.5866, allocations: 0 / 388.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.5867, allocations: 2.688 kB / 388.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004141/0.5871, allocations: 279.8 kB / 388.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.517e-05/0.5871, allocations: 103.9 kB / 388.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.988e-05/0.5872, allocations: 4.109 kB / 388.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.5873, allocations: 7.938 kB / 388.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.64e-05/0.5874, allocations: 23.83 kB / 389 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.5875, allocations: 8.125 kB / 389 MB, free: 11.93 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.208e-05/0.5876, allocations: 98.77 kB / 389.1 MB, free: 11.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5876, allocations: 0 / 389.1 MB, free: 11.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004596/0.588, allocations: 39.25 kB / 389.1 MB, free: 11.86 MB / 314.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.0001719/0.5882, allocations: 122.7 kB / 389.2 MB, free: 11.76 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004878/0.5887, allocations: 168.3 kB / 389.4 MB, free: 11.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5887, allocations: 0 / 389.4 MB, free: 11.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.5889, allocations: 87.06 kB / 389.5 MB, free: 11.74 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.5892, allocations: 17.64 kB / 389.5 MB, free: 11.74 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000831/0.5901, allocations: 389.1 kB / 389.9 MB, free: 11.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/0.5903, allocations: 0.7386 MB / 390.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001454/0.5905, allocations: 26.11 kB / 390.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.431e-05/0.5906, allocations: 19.97 kB / 390.6 MB, free: 10.79 MB / 314.7 MB Notification: Performance of SimCode: time 1.563e-06/0.5906, allocations: 0 / 390.6 MB, free: 10.79 MB / 314.7 MB Notification: Performance of Templates: time 0.006848/0.5974, allocations: 1.653 MB / 392.3 MB, free: 10.65 MB / 314.7 MB