Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.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_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002693/0.002693, allocations: 357.2 kB / 15.94 MB, free: 6.207 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.534/4.534, allocations: 446.5 MB / 463.2 MB, free: 4.676 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.002013/0.002012, allocations: 195.9 kB / 0.5024 GB, free: 1.355 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2107/0.2107, allocations: 27.15 MB / 0.5788 GB, free: 209.8 MB / 458.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00048/0.0004801, allocations: 12 kB / 0.6415 GB, free: 147.6 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1042, allocations: 53.7 MB / 0.6939 GB, free: 93.88 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1133/0.2175, allocations: 77.45 MB / 0.7695 GB, free: 16.33 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001707/0.2178, allocations: 58.81 kB / 0.7696 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.02572/0.2435, allocations: 6.874 MB / 0.7763 GB, free: 9.375 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.2436, allocations: 0 / 0.7763 GB, free: 9.375 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.219e-05/0.2436, allocations: 19.98 kB / 0.7763 GB, free: 9.355 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001087/0.2447, allocations: 0.6372 MB / 0.777 GB, free: 8.668 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.2448, allocations: 12.02 kB / 0.777 GB, free: 8.656 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.2449, allocations: 71.2 kB / 0.777 GB, free: 8.586 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006896/0.2456, allocations: 368.5 kB / 0.7774 GB, free: 8.188 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.199e-05/0.2457, allocations: 49.25 kB / 0.7774 GB, free: 8.137 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.164e-05/0.2458, allocations: 60 kB / 0.7775 GB, free: 8.078 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.2472, allocations: 0.6529 MB / 0.7781 GB, free: 7.363 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.2472, allocations: 7.891 kB / 0.7781 GB, free: 7.355 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.154e-05/0.2473, allocations: 28 kB / 0.7782 GB, free: 7.328 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/0.2474, allocations: 16 kB / 0.7782 GB, free: 7.312 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009715/0.2484, allocations: 395.7 kB / 0.7786 GB, free: 6.926 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003228/0.2516, allocations: 2.533 MB / 0.781 GB, free: 4.227 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005386/0.2522, allocations: 472.1 kB / 0.7815 GB, free: 3.695 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001901/0.2524, allocations: 97.67 kB / 0.7816 GB, free: 3.594 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009517/0.2534, allocations: 0.8351 MB / 0.7824 GB, free: 2.672 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.2537, allocations: 139.5 kB / 0.7825 GB, free: 2.523 MB / 458.7 MB Notification: Performance of pre-optimization done (n=29): time 3.346e-06/0.2537, allocations: 0 / 0.7825 GB, free: 2.523 MB / 458.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006252/0.2543, allocations: 269.2 kB / 0.7828 GB, free: 2.258 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.2544, allocations: 59.41 kB / 0.7828 GB, free: 2.188 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003899/0.2548, allocations: 314.1 kB / 0.7831 GB, free: 1.875 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/0.2548, allocations: 37.7 kB / 0.7832 GB, free: 1.832 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.255, allocations: 252.5 kB / 0.7834 GB, free: 1.578 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.226e-05/0.2551, allocations: 63.31 kB / 0.7835 GB, free: 1.516 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.191e-05/0.2551, allocations: 12 kB / 0.7835 GB, free: 1.504 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.585e-05/0.2552, allocations: 350.8 kB / 0.7838 GB, free: 1.152 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002394/0.2555, allocations: 85.08 kB / 0.7839 GB, free: 1.07 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000304/0.2558, allocations: 273.4 kB / 0.7842 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002693/0.2561, allocations: 115.9 kB / 0.7843 GB, free: 0.6094 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.2561, allocations: 4 kB / 0.7843 GB, free: 0.6055 MB / 458.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008126/0.2569, allocations: 393.2 kB / 0.7846 GB, free: 220 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.2569, allocations: 8 kB / 0.7847 GB, free: 212 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.257, allocations: 4.812 kB / 0.7847 GB, free: 208 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.056e-05/0.257, allocations: 12 kB / 0.7847 GB, free: 196 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001994/0.2572, allocations: 43.84 kB / 0.7847 GB, free: 152 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/0.2573, allocations: 15.94 kB / 0.7847 GB, free: 136 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/0.2575, allocations: 16 kB / 0.7847 GB, free: 120 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.499e-05/0.2576, allocations: 24 kB / 0.7848 GB, free: 96 kB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,$PRE.step4.oldActive,step4.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.activePort,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.activePort,T3.enableFire,$PRE.timer1.entryTime,timer1.entryTime,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,$PRE.timer2.entryTime,timer2.entryTime,step3.outPort[1].checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,step4.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T4.condition,T2.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.3083/0.5659, allocations: 222.4 kB / 0.785 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.049e-05/0.566, allocations: 38.66 kB / 0.785 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000613/0.5666, allocations: 225.9 kB / 0.7852 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.5666, allocations: 2.25 kB / 0.7852 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.5667, allocations: 1.031 kB / 0.7852 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.5667, allocations: 1.172 kB / 0.7852 GB, free: 126.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.5681, allocations: 0.7214 MB / 0.7859 GB, free: 126.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.5681, allocations: 1.359 kB / 0.7859 GB, free: 126.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.06e-05/0.5682, allocations: 13.81 kB / 0.786 GB, free: 126.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.5682, allocations: 3 kB / 0.786 GB, free: 126.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.5682, allocations: 6.359 kB / 0.786 GB, free: 126.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.5683, allocations: 1.656 kB / 0.786 GB, free: 126.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5683, allocations: 2.75 kB / 0.786 GB, free: 126.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005046/0.5688, allocations: 312.4 kB / 0.7863 GB, free: 126 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.5689, allocations: 117.5 kB / 0.7864 GB, free: 125.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.248e-05/0.569, allocations: 12.34 kB / 0.7864 GB, free: 125.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.5692, allocations: 8.859 kB / 0.7864 GB, free: 125.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.5693, allocations: 28.92 kB / 0.7864 GB, free: 125.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.993e-05/0.5693, allocations: 15.05 kB / 0.7864 GB, free: 125.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0002267/0.5696, allocations: 169.6 kB / 0.7866 GB, free: 125.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5696, allocations: 0 / 0.7866 GB, free: 125.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0006056/0.5702, allocations: 69.23 kB / 0.7867 GB, free: 125.8 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: 27 (initialStep.inport_fire,step3.activePort,step2.activePort,$whenCondition2,$whenCondition1,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,T3.enableFire,timer1.entryTime,step4.newActive,step4.oldActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,timer2.entryTime) * Number of discrete states: 4 (initialStep.newActive,step2.newActive,step3.newActive,step4.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.000199/0.5704, allocations: 122.2 kB / 0.7868 GB, free: 125.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0006307/0.571, allocations: 253.6 kB / 0.787 GB, free: 125.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5711, allocations: 2.219 kB / 0.787 GB, free: 125.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.5713, allocations: 91.72 kB / 0.7871 GB, free: 125.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.5718, allocations: 29.16 kB / 0.7871 GB, free: 125.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.5734, allocations: 0.7636 MB / 0.7879 GB, free: 125.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004183/0.5738, allocations: 0.8496 MB / 0.7887 GB, free: 124.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0002437/0.5741, allocations: 48.28 kB / 0.7888 GB, free: 124.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.5742, allocations: 34.38 kB / 0.7888 GB, free: 124.6 MB / 458.7 MB Notification: Performance of SimCode: time 2.204e-06/0.5742, allocations: 0.9688 kB / 0.7888 GB, free: 124.6 MB / 458.7 MB Notification: Performance of Templates: time 0.01042/0.5846, allocations: 2.185 MB / 0.7909 GB, free: 124.5 MB / 458.7 MB