Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithSuspendAndNoResume.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithSuspendAndNoResume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithSuspendAndNoResume") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithSuspendAndNoResume,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithSuspendAndNoResume") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01213/0.01213, allocations: 103.6 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002043/0.002043, allocations: 193.8 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.551/1.551, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2608/0.2608, allocations: 13.53 MB / 304.1 MB, free: 0.6016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 63.91 kB / 421.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3635, allocations: 52.69 MB / 474.5 MB, free: 28.83 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithSuspendAndNoResume): time 0.003694/0.3672, allocations: 2.715 MB / 477.2 MB, free: 26.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002865/0.3701, allocations: 1.473 MB / 478.6 MB, free: 25.49 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003464/0.3705, allocations: 34.81 kB / 478.7 MB, free: 25.47 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002402/0.3729, allocations: 1.701 MB / 480.4 MB, free: 24.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002003/0.3732, allocations: 80.56 kB / 480.5 MB, free: 24.11 MB / 366.1 MB [/home/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:15020:7-15026: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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:15020:7-15026:3:writable] Warning: The first argument 'parallel.local_entry.node' of Connections.uniqueRoot must have the form A.R, where A is a connector and R an over-determined type/record. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:15028:7-15035:4:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRootIndices. Functionality might be partially supported but is not guaranteed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:15028:7-15035:4:writable] Warning: The first argument 'parallel.local_entry.node' of Connections.uniqueRootIndices must have the form A.R, where A is a connector and R an over-determined type/record. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:15028:7-15035:4:writable] Warning: The second argument 'parallel.local_exit.node' of Connections.uniqueRootIndices must have the form A.R, where A is a connector and R an over-determined type/record. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:15046:9-15046:83:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. [/home/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 NFTyping.typeClassSections: time 0.001423/0.3746, allocations: 0.572 MB / 481 MB, free: 23.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.3758, allocations: 1.162 MB / 482.2 MB, free: 22.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001859/0.3776, allocations: 1.719 MB / 483.9 MB, free: 21.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004548/0.3781, allocations: 476.6 kB / 484.4 MB, free: 21.65 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003413/0.3785, allocations: 483.2 kB / 484.9 MB, free: 21.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001528/0.3786, allocations: 107.8 kB / 485 MB, free: 21.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000245/0.3789, allocations: 131.5 kB / 485.1 MB, free: 21.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000221/0.3791, allocations: 295.2 kB / 485.4 MB, free: 21.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003382/0.3794, allocations: 0.4887 MB / 485.9 MB, free: 20.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.3806, allocations: 1.334 MB / 487.2 MB, free: 19.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.3806, allocations: 1.156 kB / 487.2 MB, free: 19.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3806, allocations: 7.922 kB / 487.2 MB, free: 19.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.7e-05/0.3806, allocations: 0 / 487.2 MB, free: 19.68 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001523/0.3821, allocations: 1.273 MB / 488.5 MB, free: 18.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.3822, allocations: 10 kB / 488.5 MB, free: 18.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.3824, allocations: 118.4 kB / 488.6 MB, free: 18.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007903/0.3832, allocations: 0.6248 MB / 489.2 MB, free: 18.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.976e-05/0.3833, allocations: 96.03 kB / 489.3 MB, free: 18.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.3834, allocations: 117.8 kB / 489.4 MB, free: 18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/0.3852, allocations: 1.345 MB / 490.8 MB, free: 17.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.321e-05/0.3852, allocations: 5.219 kB / 490.8 MB, free: 17.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-05/0.3853, allocations: 51.64 kB / 490.8 MB, free: 17.06 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.552e-05/0.3853, allocations: 28.38 kB / 490.9 MB, free: 17.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.3867, allocations: 0.9506 MB / 491.8 MB, free: 16.59 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:14978:9-14978:46:writable] Error: Found equation without time-dependent variables: parallel.entry_restart[1] = true Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00358/0.3902, allocations: 4.25 MB / 496.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000708/0.391, allocations: 0.6956 MB / 496.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000286/0.3913, allocations: 256.3 kB / 497 MB, free: 12.33 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:2267:9-2270:35:writable] Error: Found equation without time-dependent variables: step5.outPort[1].checkOneDelayedTransitionPerLoop = true Notification: Performance of preOpt evalFunc (simulation): time 0.001085/0.3924, allocations: 1.176 MB / 498.2 MB, free: 11.27 MB / 366.1 MB Error: An independent subset of the model has imbalanced number of equations (66) and variables (64). variables: step6.outport_fire step6.inport_fire step6.oldActive step6.newActive step6.active step6.outPort[1].node.resume step6.outPort[1].node.suspend step6.outPort[1].available T6.t_start T6.enableFire T6.fire T5.t_start T5.enableFire T5.fire step5.outport_fire step5.inport_fire step5.oldActive step5.newActive T4.enableFire T4.condition T3.t_start T3.enableFire T3.fire step4.inport_fire step4.oldActive step4.newActive step4.active T2.t_start T2.enableFire T2.fire step3.inport_fire step3.oldActive step3.newActive step3.active step2.outport_fire step2.inport_fire step2.oldActive step2.newActive step2.active step2.outPort[1].available T1.t_start T1.enableFire T1.fire parallel.exit[2].fire parallel.entry[2].fire parallel.suspend[1].available parallel.oldActive parallel.entry_fire parallel.suspend_fire parallel.finished parallel.newActive parallel.active step1.outport_fire step1.inport_fire step1.oldActive step1.newActive $whenCondition1 $whenCondition2 $whenCondition3 $whenCondition4 $whenCondition5 $whenCondition6 $whenCondition7 $whenCondition8 equations: 1 : step6.inport_fire = true 2 : step6.inport_fire = true 3 : when false then step1.oldActive := T1.enableFire; end when; 4 : when {$whenCondition1, $whenCondition2} then parallel.finished := parallel.exit[2].fire; end when; 5 : when false then parallel.oldActive := parallel.active; end when; 6 : when $whenCondition3 then T1.t_start := time; end when; 7 : when $whenCondition4 then step2.oldActive := step2.active; end when; 8 : when $whenCondition4 then step3.oldActive := step3.active; end when; 9 : when $whenCondition5 then T2.t_start := time; end when; 10 : when $whenCondition4 then step4.oldActive := step4.active; end when; 11 : when $whenCondition6 then T3.t_start := time; end when; 12 : when false then step5.oldActive := T5.enableFire; end when; 13 : when $whenCondition7 then T5.t_start := time; end when; 14 : when $whenCondition8 then T6.t_start := time; end when; 15 : when $whenCondition4 then step6.oldActive := step6.active; end when; 16 : T4.condition = time >= 2.5 and time < 4.0 17 : step6.outPort[1].available = step6.active and not step6.outPort[1].node.suspend 18 : step6.active = pre(step6.newActive) 19 : step6.newActive = if step6.outPort[1].node.resume then step6.oldActive else step6.inport_fire or step6.active and not step6.outport_fire and not step6.outPort[1].node.suspend 20 : step6.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.exit[2].fire}) 21 : step6.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T6.fire}) 22 : T6.fire = T6.enableFire and time >= T6.t_start + T6.waitTime 23 : T5.fire = T5.enableFire and time >= T5.t_start + T5.waitTime 24 : T5.enableFire = pre(step5.newActive) 25 : step5.newActive = step5.inport_fire or T5.enableFire and not step5.outport_fire 26 : step5.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T5.fire}) 27 : step5.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T4.enableFire}) 28 : T4.enableFire = T4.condition and parallel.suspend[1].available 29 : T3.fire = T3.enableFire and time >= T3.t_start + T3.waitTime 30 : T6.enableFire = step4.active and not step6.outPort[1].node.suspend 31 : step4.active = pre(step4.newActive) 32 : step4.newActive = if step6.outPort[1].node.resume then step4.oldActive else step4.inport_fire or step4.active and not step6.inport_fire and not step6.outPort[1].node.suspend 33 : step4.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T2.fire}) 34 : T2.fire = T2.enableFire and time >= T2.t_start + T2.waitTime 35 : T2.enableFire = step3.active and not step6.outPort[1].node.suspend 36 : step3.active = pre(step3.newActive) 37 : step3.newActive = if step6.outPort[1].node.resume then step3.oldActive else step3.inport_fire or step3.active and not step4.inport_fire and not step6.outPort[1].node.suspend 38 : step3.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.entry[2].fire}) 39 : step2.outPort[1].available = step2.active and not step6.outPort[1].node.suspend 40 : step2.active = pre(step2.newActive) 41 : step2.newActive = if step6.outPort[1].node.resume then step2.oldActive else step2.inport_fire or step2.active and not step2.outport_fire and not step6.outPort[1].node.suspend 42 : step2.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.exit[2].fire}) 43 : step2.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.entry[2].fire}) 44 : T1.fire = T1.enableFire and time >= T1.t_start + T1.waitTime 45 : step6.outPort[1].node.resume = parallel.resume_fire and not parallel.entry_fire 46 : step6.outPort[1].node.suspend = parallel.active and parallel.suspend_fire or not parallel.active and pre(parallel.active) 47 : parallel.suspend[1].available = parallel.active and not pre(parallel.suspend_fire) 48 : T3.enableFire = parallel.active and Modelica_StateGraph2.Blocks.BooleanFunctions.allTrue({step2.outPort[1].available, step6.outPort[1].available}) 49 : parallel.newActive = if Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({false, false}) then parallel.oldActive else parallel.entry[2].fire or Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({}) or parallel.active and not parallel.exit[2].fire and not parallel.suspend_fire 50 : parallel.active = pre(parallel.newActive) 51 : parallel.entry_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.entry[2].fire, parallel.entry[2].fire}) 52 : parallel.suspend_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({false, false}) or Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({}) or Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T4.enableFire}) 53 : parallel.exit[2].fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T3.fire}) 54 : parallel.entry[2].fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T1.fire, T5.fire}) 55 : T1.enableFire = pre(step1.newActive) 56 : step1.newActive = step1.inport_fire or T1.enableFire and not step1.outport_fire 57 : step1.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T1.fire}) 58 : step1.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T3.fire}) 59 : $whenCondition1 = parallel.exit[2].fire 60 : $whenCondition2 = pre(parallel.entry_fire) 61 : $whenCondition3 = T1.enableFire 62 : $whenCondition4 = step6.outPort[1].node.suspend 63 : $whenCondition5 = T2.enableFire 64 : $whenCondition6 = T3.enableFire 65 : $whenCondition7 = T5.enableFire 66 : $whenCondition8 = T6.enableFire Notification: Performance of preOpt encapsulateWhenConditions (simulation) : time 0.0007514/0.3931, allocations: 0.7124 MB / 498.9 MB, free: 10.85 MB / 366.1 MB Error: pre-optimization module encapsulateWhenConditions (simulation) failed.