Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.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.Actions3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003853/0.003859, allocations: 357.3 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.845/4.845, allocations: 446.5 MB / 463.2 MB, free: 2.828 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.001966/0.001966, allocations: 192 kB / 0.5024 GB, free: 15.48 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.2414/0.2414, allocations: 27.15 MB / 0.5788 GB, free: 210.2 MB / 458.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004622/0.0004625, allocations: 16 kB / 0.6415 GB, free: 147.3 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09546/0.09594, allocations: 53.7 MB / 0.6939 GB, free: 93.55 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.113/0.209, allocations: 77.34 MB / 0.7694 GB, free: 16.11 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001499/0.2092, allocations: 62.8 kB / 0.7695 GB, free: 16.05 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.03123/0.2404, allocations: 8.467 MB / 0.7778 GB, free: 7.562 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.2405, allocations: 0 / 0.7778 GB, free: 7.562 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.87e-05/0.2406, allocations: 20 kB / 0.7778 GB, free: 7.543 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.002526/0.2432, allocations: 0.7713 MB / 0.7785 GB, free: 6.711 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.975e-05/0.2433, allocations: 12.03 kB / 0.7785 GB, free: 6.699 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005325/0.2438, allocations: 75.06 kB / 0.7786 GB, free: 6.625 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00187/0.2457, allocations: 445.9 kB / 0.779 GB, free: 6.152 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.2459, allocations: 61.98 kB / 0.7791 GB, free: 6.09 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003069/0.2462, allocations: 72 kB / 0.7792 GB, free: 6.02 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003216/0.2495, allocations: 0.827 MB / 0.78 GB, free: 5.129 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.363e-05/0.2496, allocations: 0 / 0.78 GB, free: 5.129 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001331/0.2497, allocations: 28 kB / 0.78 GB, free: 5.102 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.148e-05/0.2498, allocations: 25.31 kB / 0.78 GB, free: 5.074 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002454/0.2523, allocations: 0.5164 MB / 0.7805 GB, free: 4.559 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006801/0.2591, allocations: 3.232 MB / 0.7837 GB, free: 1.059 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.2604, allocations: 0.6676 MB / 0.7843 GB, free: 300 kB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004084/0.2608, allocations: 126.4 kB / 0.7845 GB, free: 172 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001447/0.261, allocations: 85.11 kB / 0.7845 GB, free: 68 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3317/0.5927, allocations: 198.8 kB / 0.7847 GB, free: 124.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 4.609e-06/0.5928, allocations: 0 / 0.7847 GB, free: 124.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.001104/0.5939, allocations: 415.4 kB / 0.7851 GB, free: 124.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.502e-05/0.594, allocations: 198.3 kB / 0.7853 GB, free: 124.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000548/0.5946, allocations: 387.4 kB / 0.7857 GB, free: 124.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.411e-05/0.5946, allocations: 47.06 kB / 0.7857 GB, free: 124.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002389/0.5949, allocations: 292.8 kB / 0.786 GB, free: 124.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.595, allocations: 102.5 kB / 0.7861 GB, free: 124.3 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/0.595, allocations: 14.56 kB / 0.7861 GB, free: 124.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.5952, allocations: 357.1 kB / 0.7865 GB, free: 124 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003712/0.5955, allocations: 136.9 kB / 0.7866 GB, free: 124 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006053/0.5962, allocations: 414.8 kB / 0.787 GB, free: 123.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004698/0.5967, allocations: 187.1 kB / 0.7872 GB, free: 123.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.946e-06/0.5967, allocations: 3.031 kB / 0.7872 GB, free: 123.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001312/0.598, allocations: 0.5653 MB / 0.7877 GB, free: 123.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.598, allocations: 9.406 kB / 0.7877 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.5981, allocations: 6.406 kB / 0.7877 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.502e-05/0.5981, allocations: 15.25 kB / 0.7878 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.5984, allocations: 64.2 kB / 0.7878 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.333e-05/0.5984, allocations: 14.17 kB / 0.7878 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000513/0.5989, allocations: 51.53 kB / 0.7879 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.476e-05/0.599, allocations: 31.88 kB / 0.7879 GB, free: 123.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 91 ($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,$PRE.add1.y,add1.y,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,$whenCondition7,$whenCondition6,$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.enableFire,$PRE.T2.t_start,T2.t_start,T2.firePort,$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.enableFire,$PRE.T5.t_start,T5.t_start,T5.firePort,$PRE.step1.newActive,step1.newActive,step1.inport_fire,step1.outport_fire,$PRE.set1.y,set1.y,set1.firstActiveIndex,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 (91): * Single equations (assignments): 91 * 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.0004996/0.5995, allocations: 279.8 kB / 0.7882 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.37e-05/0.5996, allocations: 42.34 kB / 0.7882 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008829/0.6005, allocations: 356.6 kB / 0.7886 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.6005, allocations: 6.156 kB / 0.7886 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.6006, allocations: 0 / 0.7886 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.6006, allocations: 2.781 kB / 0.7886 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.6028, allocations: 1.023 MB / 0.7896 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.6029, allocations: 3.375 kB / 0.7896 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.92e-05/0.6029, allocations: 17.64 kB / 0.7896 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.603, allocations: 3.016 kB / 0.7896 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/0.603, allocations: 10.31 kB / 0.7896 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.603, allocations: 1.375 kB / 0.7896 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.603, allocations: 4.656 kB / 0.7896 GB, free: 123 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007597/0.6038, allocations: 427.9 kB / 0.79 GB, free: 122.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.604, allocations: 133.2 kB / 0.7901 GB, free: 122.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.665e-05/0.6041, allocations: 11.81 kB / 0.7901 GB, free: 122.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/0.6045, allocations: 33.2 kB / 0.7902 GB, free: 122.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.6047, allocations: 55.98 kB / 0.7902 GB, free: 122.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.601e-05/0.6047, allocations: 13.88 kB / 0.7902 GB, free: 122.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003059/0.605, allocations: 209.8 kB / 0.7904 GB, free: 122.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.483e-06/0.6051, allocations: 0 / 0.7904 GB, free: 122.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000816/0.6059, allocations: 109.6 kB / 0.7906 GB, free: 122.7 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: 45 (initialStep.inport_fire,initialStep.outport_fire,T1.enableFire,step2.outport_fire,T2.firePort,T2.enableFire,step3.outport_fire,T4.enableFire,step4.outport_fire,T5.firePort,T5.enableFire,T3.enableFire,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,T1.fire,T1.t_start,step2.newActive,step2.oldActive,step2.inport_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.t_start,step1.newActive,step1.oldActive,step1.inport_fire,step1.outport_fire,add1.y,set1.y,set1.firstActiveIndex) * Number of discrete states: 7 (step1.newActive,step4.newActive,step3.newActive,step2.newActive,initialStep.newActive,set1.y,add1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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.0002266/0.6061, allocations: 136.5 kB / 0.7907 GB, free: 122.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0009778/0.6071, allocations: 382.3 kB / 0.791 GB, free: 122.6 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.6071, allocations: 1.625 kB / 0.791 GB, free: 122.6 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.6075, allocations: 144.8 kB / 0.7912 GB, free: 122.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005407/0.6081, allocations: 51.08 kB / 0.7912 GB, free: 122.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.61, allocations: 0.9858 MB / 0.7922 GB, free: 122 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004761/0.6105, allocations: 0.9122 MB / 0.7931 GB, free: 121.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003916/0.6109, allocations: 81.45 kB / 0.7932 GB, free: 121.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.6111, allocations: 44.47 kB / 0.7932 GB, free: 121.3 MB / 458.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6111, allocations: 0 / 0.7932 GB, free: 121.3 MB / 458.7 MB Notification: Performance of Templates: time 0.01558/0.6267, allocations: 4.018 MB / 0.7971 GB, free: 121.3 MB / 458.7 MB