Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.conf.json Using package Modelica_StateGraph2 with version 2.1.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004398/0.004404, allocations: 353.5 kB / 15.94 MB, free: 6.211 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 4.617/4.617, allocations: 446.5 MB / 463.2 MB, free: 2.93 MB / 362.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001904/0.001904, allocations: 180.2 kB / 0.5024 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2165/0.2165, allocations: 27.15 MB / 0.5788 GB, free: 210.1 MB / 458.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004657/0.0004661, allocations: 16 kB / 0.6415 GB, free: 147.3 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1256, allocations: 53.7 MB / 0.6939 GB, free: 93.57 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.112/0.2376, allocations: 77.13 MB / 0.7692 GB, free: 16.33 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001742/0.2378, allocations: 54.81 kB / 0.7693 GB, free: 16.28 MB / 458.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12183:5-12189:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. Notification: Performance of FrontEnd - DAE generated: time 0.0189/0.2567, allocations: 5.278 MB / 0.7744 GB, free: 10.97 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2568, allocations: 4 kB / 0.7744 GB, free: 10.97 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.164e-05/0.2568, allocations: 15.92 kB / 0.7745 GB, free: 10.95 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0009338/0.2578, allocations: 0.5778 MB / 0.775 GB, free: 10.32 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2578, allocations: 12.03 kB / 0.775 GB, free: 10.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.258, allocations: 47.39 kB / 0.7751 GB, free: 10.26 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005824/0.2586, allocations: 322.4 kB / 0.7754 GB, free: 9.902 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-05/0.2587, allocations: 66.7 kB / 0.7755 GB, free: 9.832 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.635e-05/0.2588, allocations: 40 kB / 0.7755 GB, free: 9.793 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.2598, allocations: 490.8 kB / 0.776 GB, free: 9.27 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.2598, allocations: 3.938 kB / 0.776 GB, free: 9.266 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.983e-05/0.2599, allocations: 23.98 kB / 0.776 GB, free: 9.242 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.2599, allocations: 8 kB / 0.776 GB, free: 9.234 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007442/0.2607, allocations: 294.4 kB / 0.7763 GB, free: 8.945 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002514/0.2632, allocations: 1.892 MB / 0.7781 GB, free: 6.902 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004792/0.2637, allocations: 409.2 kB / 0.7785 GB, free: 6.43 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.2639, allocations: 81.88 kB / 0.7786 GB, free: 6.344 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008664/0.2648, allocations: 0.7133 MB / 0.7793 GB, free: 5.566 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/0.2651, allocations: 177.8 kB / 0.7795 GB, free: 5.371 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 3.036e-06/0.2651, allocations: 4 kB / 0.7795 GB, free: 5.367 MB / 458.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005972/0.2657, allocations: 262 kB / 0.7797 GB, free: 5.102 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.424e-05/0.2658, allocations: 166.4 kB / 0.7799 GB, free: 4.902 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003095/0.2661, allocations: 254.7 kB / 0.7801 GB, free: 4.645 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.494e-05/0.2662, allocations: 41.62 kB / 0.7802 GB, free: 4.598 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.2663, allocations: 200.2 kB / 0.7803 GB, free: 4.395 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.354e-05/0.2664, allocations: 55.41 kB / 0.7804 GB, free: 4.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.035e-05/0.2664, allocations: 12 kB / 0.7804 GB, free: 4.328 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.592e-05/0.2665, allocations: 330.8 kB / 0.7807 GB, free: 3.996 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.2667, allocations: 72.84 kB / 0.7808 GB, free: 3.926 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002552/0.267, allocations: 219.8 kB / 0.781 GB, free: 3.648 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.2672, allocations: 120.5 kB / 0.7811 GB, free: 3.527 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.2672, allocations: 0 / 0.7811 GB, free: 3.527 MB / 458.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007039/0.2679, allocations: 354.5 kB / 0.7815 GB, free: 3.168 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.089e-05/0.268, allocations: 37.69 kB / 0.7815 GB, free: 3.125 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.268, allocations: 4.625 kB / 0.7815 GB, free: 3.121 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.268, allocations: 15.94 kB / 0.7815 GB, free: 3.105 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.2682, allocations: 27.92 kB / 0.7815 GB, free: 3.078 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.2682, allocations: 11.94 kB / 0.7816 GB, free: 3.066 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002457/0.2685, allocations: 19.89 kB / 0.7816 GB, free: 3.047 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-05/0.2685, allocations: 20 kB / 0.7816 GB, free: 3.027 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.onDelay.u,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,onDelay.u,$PRE.onDelay.delaySignal,onDelay.delaySignal,$PRE.onDelay.t_next,onDelay.t_next,step3.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,step3.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T2.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 1 * 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.0003149/0.2689, allocations: 231 kB / 0.7818 GB, free: 2.789 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.724e-05/0.2689, allocations: 23.77 kB / 0.7818 GB, free: 2.766 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005047/0.2694, allocations: 248.9 kB / 0.7821 GB, free: 2.512 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.2694, allocations: 0 / 0.7821 GB, free: 2.512 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.2695, allocations: 4 kB / 0.7821 GB, free: 2.508 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2695, allocations: 0 / 0.7821 GB, free: 2.508 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.2705, allocations: 0.6619 MB / 0.7827 GB, free: 1.785 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.2706, allocations: 4 kB / 0.7827 GB, free: 1.781 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.028e-05/0.2706, allocations: 7.984 kB / 0.7827 GB, free: 1.773 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.2706, allocations: 0 / 0.7827 GB, free: 1.773 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.2706, allocations: 15.92 kB / 0.7827 GB, free: 1.758 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.2707, allocations: 7.953 kB / 0.7828 GB, free: 1.75 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2707, allocations: 0 / 0.7828 GB, free: 1.75 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004647/0.2711, allocations: 328.7 kB / 0.7831 GB, free: 1.406 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.2713, allocations: 108.8 kB / 0.7832 GB, free: 1.281 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.225e-05/0.2713, allocations: 8 kB / 0.7832 GB, free: 1.273 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.2716, allocations: 15.98 kB / 0.7832 GB, free: 1.258 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.2717, allocations: 19.97 kB / 0.7832 GB, free: 1.238 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.2717, allocations: 12 kB / 0.7832 GB, free: 1.227 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001509/0.2719, allocations: 140.6 kB / 0.7834 GB, free: 1.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2719, allocations: 0 / 0.7834 GB, free: 1.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0005278/0.2724, allocations: 63.98 kB / 0.7834 GB, free: 1.027 MB / 458.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: 23 (T3.enableFire,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,T2.conditionPort,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start,onDelay.u,onDelay.delaySignal,onDelay.t_next) * Number of discrete states: 7 (initialStep.newActive,step2.newActive,step3.newActive,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0002012/0.2726, allocations: 115.6 kB / 0.7835 GB, free: 0.9102 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0005657/0.2732, allocations: 260.4 kB / 0.7838 GB, free: 0.6484 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2732, allocations: 1.25 kB / 0.7838 GB, free: 0.6484 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002041/0.2735, allocations: 155.2 kB / 0.7839 GB, free: 496 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000414/0.2739, allocations: 32.66 kB / 0.784 GB, free: 460 kB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3018/0.5757, allocations: 0.5848 MB / 0.7845 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.5761, allocations: 0.7982 MB / 0.7853 GB, free: 126.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0002463/0.5764, allocations: 39.98 kB / 0.7853 GB, free: 126.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.931e-05/0.5765, allocations: 27.02 kB / 0.7854 GB, free: 126.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.162e-06/0.5765, allocations: 3.062 kB / 0.7854 GB, free: 126.6 MB / 458.7 MB Notification: Performance of Templates: time 0.009844/0.5863, allocations: 1.914 MB / 0.7872 GB, free: 126.6 MB / 458.7 MB