Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.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.Actions2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003621/0.003626, allocations: 353.2 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.11/4.11, allocations: 446.5 MB / 463.2 MB, free: 27.87 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002175/0.002175, allocations: 201 kB / 0.5024 GB, free: 5.91 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.5276/0.5276, allocations: 27.14 MB / 0.5788 GB, free: 31.29 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006705/0.0006708, allocations: 8 kB / 0.6415 GB, free: 3.578 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4889/0.4896, allocations: 53.68 MB / 0.6939 GB, free: 44.63 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.142/0.6316, allocations: 77.25 MB / 0.7693 GB, free: 5.723 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001523/0.6318, allocations: 51.97 kB / 0.7694 GB, free: 5.672 MB / 362.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.03136/0.6632, allocations: 8.381 MB / 0.7776 GB, free: 13.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.6633, allocations: 0 / 0.7776 GB, free: 13.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.58e-05/0.6633, allocations: 24 kB / 0.7776 GB, free: 13.32 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.001779/0.6651, allocations: 0.7616 MB / 0.7783 GB, free: 12.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.6652, allocations: 12.03 kB / 0.7783 GB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002591/0.6655, allocations: 75.11 kB / 0.7784 GB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.6667, allocations: 438 kB / 0.7788 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.6668, allocations: 58 kB / 0.7789 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001828/0.667, allocations: 68 kB / 0.7789 GB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002112/0.6691, allocations: 0.8076 MB / 0.7797 GB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.185e-05/0.6692, allocations: 3.953 kB / 0.7797 GB, free: 10.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.6693, allocations: 35.98 kB / 0.7798 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.278e-05/0.6694, allocations: 25.31 kB / 0.7798 GB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/0.6711, allocations: 0.5086 MB / 0.7803 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005503/0.6766, allocations: 3.134 MB / 0.7834 GB, free: 7.016 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.6777, allocations: 0.6781 MB / 0.784 GB, free: 6.238 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.6781, allocations: 126.5 kB / 0.7841 GB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001438/0.6783, allocations: 89.09 kB / 0.7842 GB, free: 6.008 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004863/0.6788, allocations: 198.2 kB / 0.7844 GB, free: 5.801 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 3.797e-06/0.6788, allocations: 0 / 0.7844 GB, free: 5.801 MB / 378.7 MB Notification: Performance of matching and sorting (n=46): time 0.00119/0.68, allocations: 421.3 kB / 0.7848 GB, free: 5.383 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/0.6802, allocations: 195.7 kB / 0.785 GB, free: 5.148 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000663/0.6808, allocations: 383.8 kB / 0.7854 GB, free: 4.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.681, allocations: 45.7 kB / 0.7854 GB, free: 4.719 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003094/0.6813, allocations: 280.2 kB / 0.7857 GB, free: 4.438 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.6815, allocations: 106.9 kB / 0.7858 GB, free: 4.332 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-05/0.6815, allocations: 20 kB / 0.7858 GB, free: 4.312 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.6817, allocations: 350.8 kB / 0.7861 GB, free: 3.961 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004249/0.6821, allocations: 141.9 kB / 0.7863 GB, free: 3.824 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006902/0.6829, allocations: 422.8 kB / 0.7867 GB, free: 3.297 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005236/0.6834, allocations: 194 kB / 0.7869 GB, free: 3.109 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.6834, allocations: 0 / 0.7869 GB, free: 3.109 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001478/0.6849, allocations: 0.5856 MB / 0.7874 GB, free: 2.516 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.685, allocations: 8 kB / 0.7874 GB, free: 2.508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.685, allocations: 4 kB / 0.7874 GB, free: 2.504 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.527e-05/0.685, allocations: 19.95 kB / 0.7875 GB, free: 2.484 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.6853, allocations: 47.78 kB / 0.7875 GB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.75e-05/0.6853, allocations: 15.94 kB / 0.7875 GB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00055/0.6859, allocations: 48.16 kB / 0.7876 GB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.97e-05/0.686, allocations: 35.94 kB / 0.7876 GB, free: 2.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 93 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,$PRE.T5.enableFire,$PRE.initialStep.oldActive,initialStep.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step4.oldActive,step4.oldActive,$PRE.step1.oldActive,step1.oldActive,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,initialStep.outport_fire,T1.fire,T1.enableFire,$PRE.T1.t_start,T1.t_start,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.outport_fire,T2.fire,T2.enableFire,$PRE.T2.t_start,T2.t_start,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.fire,T4.enableFire,$PRE.T4.t_start,T4.t_start,T5.fire,T5.enableFire,$PRE.T5.t_start,T5.t_start,$PRE.step1.newActive,step1.newActive,step1.inport_fire,step1.outport_fire,$PRE.risingEdge.u,risingEdge.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.fallingEdge.not_u,fallingEdge.not_u,set1.expr[1],set1.expr[2],T5.condition,T4.condition,T3.condition,T2.condition,T1.condition,T5.outPort.checkOneDelayedTransitionPerLoop,step1.outPort[1].checkOneDelayedTransitionPerLoop,step1.inPort[1].checkUnaryConnection,T4.outPort.checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,step4.inPort[1].checkUnaryConnection,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,T1.outPort.checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * 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.0005672/0.6866, allocations: 270.8 kB / 0.7879 GB, free: 2.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.6867, allocations: 43.53 kB / 0.7879 GB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009986/0.6877, allocations: 363 kB / 0.7882 GB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.757e-06/0.6877, allocations: 4 kB / 0.7882 GB, free: 1.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.6878, allocations: 7.938 kB / 0.7883 GB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.6878, allocations: 64 / 0.7883 GB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00244/0.6902, allocations: 1.005 MB / 0.7892 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.6903, allocations: 0 / 0.7892 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-05/0.6904, allocations: 15.92 kB / 0.7893 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/0.6904, allocations: 0 / 0.7893 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.714e-05/0.6904, allocations: 15.98 kB / 0.7893 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/0.6904, allocations: 0 / 0.7893 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.6905, allocations: 7.938 kB / 0.7893 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008772/0.6913, allocations: 434.7 kB / 0.7897 GB, free: 108 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002747/0.6916, allocations: 132.8 kB / 0.7898 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.729e-05/0.6917, allocations: 12 kB / 0.7898 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000393/0.6922, allocations: 31.97 kB / 0.7899 GB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.6923, allocations: 47.92 kB / 0.7899 GB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.934e-05/0.6924, allocations: 12 kB / 0.7899 GB, free: 15.85 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003187/0.6927, allocations: 207 kB / 0.7901 GB, free: 15.65 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6928, allocations: 0 / 0.7901 GB, free: 15.65 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007767/0.6935, allocations: 104 kB / 0.7902 GB, free: 15.55 MB / 394.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: 46 (initialStep.inport_fire,initialStep.outport_fire,T1.enableFire,step2.outport_fire,T2.enableFire,step3.outport_fire,T4.enableFire,step4.outport_fire,T5.enableFire,T3.enableFire,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,T1.fire,T1.t_start,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,T3.fire,T3.t_start,step4.newActive,step4.oldActive,step4.inport_fire,T4.fire,T4.t_start,T5.fire,T5.t_start,step1.newActive,step1.oldActive,step1.inport_fire,step1.outport_fire,risingEdge.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,fallingEdge.not_u) * Number of discrete states: 8 (step1.newActive,step4.newActive,step3.newActive,fallingEdge.not_u,step2.newActive,initialStep.newActive,risingEdge.u,set1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0003087/0.6939, allocations: 144 kB / 0.7904 GB, free: 15.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.695, allocations: 396.5 kB / 0.7907 GB, free: 15.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.695, allocations: 8 kB / 0.7907 GB, free: 15.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003942/0.6954, allocations: 151.8 kB / 0.7909 GB, free: 14.87 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000596/0.6961, allocations: 53.55 kB / 0.7909 GB, free: 14.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002383/0.6985, allocations: 0.9872 MB / 0.7919 GB, free: 13.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007065/0.6992, allocations: 0.8993 MB / 0.7928 GB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004401/0.6997, allocations: 80.36 kB / 0.7929 GB, free: 12.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.6999, allocations: 39.42 kB / 0.7929 GB, free: 12.76 MB / 394.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6999, allocations: 4 kB / 0.7929 GB, free: 12.76 MB / 394.7 MB Notification: Performance of Templates: time 0.01612/0.716, allocations: 4.024 MB / 0.7968 GB, free: 8.785 MB / 394.7 MB