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.001199/0.001199, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001982/0.001982, allocations: 193.8 kB / 16.13 MB, free: 6.66 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.467/1.467, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2364/0.2364, allocations: 13.54 MB / 303.5 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 59.91 kB / 367.1 MB, free: 6.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.133, allocations: 52.68 MB / 419.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithSuspendAndNoResume): time 0.004161/0.1372, allocations: 2.711 MB / 422.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002854/0.1401, allocations: 1.464 MB / 424 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003205/0.1405, allocations: 31.81 kB / 424 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002461/0.1429, allocations: 1.54 MB / 425.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002131/0.1432, allocations: 47.56 kB / 425.6 MB, free: 12.39 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.001468/0.1447, allocations: 0.52 MB / 426.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009973/0.1457, allocations: 1.085 MB / 427.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002165/0.1479, allocations: 1.633 MB / 428.8 MB, free: 9.129 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004436/0.1483, allocations: 438.3 kB / 429.3 MB, free: 8.699 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004475/0.1488, allocations: 469.7 kB / 429.7 MB, free: 8.238 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.1489, allocations: 80 kB / 429.8 MB, free: 8.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002105/0.1491, allocations: 99.98 kB / 429.9 MB, free: 8.062 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002448/0.1494, allocations: 275.1 kB / 430.2 MB, free: 7.793 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003698/0.1498, allocations: 473.3 kB / 430.6 MB, free: 7.328 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000929/0.1507, allocations: 1.09 MB / 431.7 MB, free: 6.234 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1507, allocations: 0 / 431.7 MB, free: 6.234 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.1507, allocations: 0 / 431.7 MB, free: 6.234 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.1507, allocations: 0 / 431.7 MB, free: 6.234 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.001572/0.1523, allocations: 1.262 MB / 433 MB, free: 4.922 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1524, allocations: 12.02 kB / 433 MB, free: 4.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002019/0.1526, allocations: 119.5 kB / 433.1 MB, free: 4.793 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007808/0.1534, allocations: 0.5965 MB / 433.7 MB, free: 4.152 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.21e-05/0.1534, allocations: 86.66 kB / 433.8 MB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.1536, allocations: 116.4 kB / 433.9 MB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002074/0.1557, allocations: 1.353 MB / 435.3 MB, free: 2.508 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.742e-05/0.1557, allocations: 11.94 kB / 435.3 MB, free: 2.496 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.18e-05/0.1558, allocations: 44 kB / 435.3 MB, free: 2.453 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.33e-05/0.1558, allocations: 32 kB / 435.3 MB, free: 2.422 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.1573, allocations: 0.9445 MB / 436.3 MB, free: 1.473 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.2474/0.4048, allocations: 4.257 MB / 440.5 MB, free: 50.56 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000743/0.4056, allocations: 0.6628 MB / 441.2 MB, free: 50.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003262/0.4059, allocations: 249.7 kB / 441.5 MB, free: 50.31 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.001246/0.4072, allocations: 1.148 MB / 442.6 MB, free: 49.64 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.suspend[1].available parallel.oldActive parallel.entry_fire parallel.suspend_fire parallel.outport_fire parallel.inport_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.outport_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.outport_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.inport_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.outport_fire}) 43 : step2.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.inport_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.inport_fire or Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({}) or parallel.active and not parallel.outport_fire and not parallel.suspend_fire 50 : parallel.active = pre(parallel.newActive) 51 : parallel.entry_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.inport_fire, parallel.inport_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.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T3.fire}) 54 : parallel.inport_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.outport_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.0007388/0.4079, allocations: 0.6593 MB / 443.3 MB, free: 49.58 MB / 366.1 MB Error: pre-optimization module encapsulateWhenConditions (simulation) failed.