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.0109/0.0109, allocations: 98.53 kB / 15.73 MB, free: 6.004 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.002534/0.002534, allocations: 192.9 kB / 16.67 MB, free: 5.93 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2507/0.2507, allocations: 13.53 MB / 304.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 59.91 kB / 421.8 MB, free: 0.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2879, allocations: 52.69 MB / 474.4 MB, free: 28.76 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithSuspendAndNoResume): time 0.003118/0.291, allocations: 2.723 MB / 477.2 MB, free: 26.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.2934, allocations: 1.47 MB / 478.6 MB, free: 25.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002782/0.2937, allocations: 32.44 kB / 478.7 MB, free: 25.4 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002292/0.296, allocations: 1.701 MB / 480.4 MB, free: 24.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.2962, allocations: 80.03 kB / 480.5 MB, free: 24.04 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.001314/0.2975, allocations: 0.5806 MB / 481 MB, free: 23.58 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001019/0.2985, allocations: 1.159 MB / 482.2 MB, free: 22.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002133/0.3007, allocations: 1.726 MB / 483.9 MB, free: 21.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004963/0.3012, allocations: 467.5 kB / 484.4 MB, free: 21.58 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003755/0.3016, allocations: 475.6 kB / 484.8 MB, free: 21.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001698/0.3017, allocations: 108 kB / 484.9 MB, free: 21.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002493/0.302, allocations: 128.3 kB / 485.1 MB, free: 21.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002067/0.3022, allocations: 302.6 kB / 485.4 MB, free: 20.97 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003161/0.3025, allocations: 499.7 kB / 485.9 MB, free: 20.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001017/0.3036, allocations: 1.341 MB / 487.2 MB, free: 19.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3036, allocations: 0 / 487.2 MB, free: 19.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3036, allocations: 0 / 487.2 MB, free: 19.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.3036, allocations: 0 / 487.2 MB, free: 19.61 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.001465/0.3051, allocations: 1.3 MB / 488.5 MB, free: 18.56 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.3051, allocations: 8.719 kB / 488.5 MB, free: 18.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/0.3053, allocations: 127.1 kB / 488.6 MB, free: 18.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007977/0.3061, allocations: 0.6262 MB / 489.3 MB, free: 17.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.242e-05/0.3062, allocations: 91.09 kB / 489.3 MB, free: 17.94 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.3063, allocations: 113.2 kB / 489.5 MB, free: 17.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001845/0.3082, allocations: 1.359 MB / 490.8 MB, free: 17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.3082, allocations: 1.75 kB / 490.8 MB, free: 17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-05/0.3083, allocations: 47.12 kB / 490.9 MB, free: 16.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.493e-05/0.3084, allocations: 28.38 kB / 490.9 MB, free: 16.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.3097, allocations: 0.9508 MB / 491.8 MB, free: 16.49 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.003561/0.3133, allocations: 4.262 MB / 496.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008064/0.3141, allocations: 0.7007 MB / 496.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003222/0.3145, allocations: 259.4 kB / 497.1 MB, free: 12.21 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.001094/0.3156, allocations: 1.178 MB / 498.2 MB, free: 11.15 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.0008605/0.3164, allocations: 0.7066 MB / 498.9 MB, free: 10.73 MB / 366.1 MB Error: pre-optimization module encapsulateWhenConditions (simulation) failed.