Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelAutonomous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 109.2 kB / 16.41 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001857/0.001857, allocations: 198.7 kB / 19.35 MB, free: 3.73 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 222.9 MB / 245.1 MB, free: 14.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.0928/0.0928, allocations: 13.55 MB / 310.8 MB, free: 15.02 MB / 254.1 MB " [Timeout remaining time 180] 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.ParallelAutonomous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelAutonomous") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelAutonomous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelAutonomous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001914, allocations: 71.88 kB / 430.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1101, allocations: 52.69 MB / 483 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelAutonomous): time 0.003665/0.1138, allocations: 2.363 MB / 485.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002283/0.1161, allocations: 1.219 MB / 486.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.1163, allocations: 23.88 kB / 486.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002077/0.1185, allocations: 1.123 MB / 487.7 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.1186, allocations: 47.39 kB / 487.8 MB, free: 3.512 MB / 350.1 MB [/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.001165/0.1198, allocations: 450.6 kB / 488.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009372/0.1207, allocations: 0.8312 MB / 489 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00126/0.122, allocations: 0.9423 MB / 490 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003375/0.1223, allocations: 307 kB / 490.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003356/0.1227, allocations: 302.5 kB / 490.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.869e-05/0.1228, allocations: 64 kB / 490.6 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.123, allocations: 80 kB / 490.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.1232, allocations: 191.4 kB / 490.9 MB, free: 380 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002727/0.1234, allocations: 310.3 kB / 491.2 MB, free: 68 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008884/0.1243, allocations: 0.8055 MB / 492 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.1244, allocations: 4 kB / 492 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1244, allocations: 3.938 kB / 492 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.1244, allocations: 0 / 492 MB, free: 15.25 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: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.001286/0.1257, allocations: 0.9199 MB / 492.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.1257, allocations: 11.89 kB / 493 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.1259, allocations: 76.47 kB / 493 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00071/0.1266, allocations: 470.2 kB / 493.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001142/0.1267, allocations: 92.25 kB / 493.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.212e-05/0.1268, allocations: 68.38 kB / 493.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.1281, allocations: 0.8213 MB / 494.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/0.1282, allocations: 3.938 kB / 494.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.786e-05/0.1282, allocations: 31.98 kB / 494.5 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.985e-05/0.1283, allocations: 23.94 kB / 494.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.1293, allocations: 0.5632 MB / 495.1 MB, free: 12.04 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:14981:9-14981:76:writable] Error: Found equation without time-dependent variables: parallel.entry_restart[1] = true Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003062/0.1324, allocations: 2.598 MB / 497.7 MB, free: 9.293 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.1339, allocations: 1.033 MB / 498.7 MB, free: 8.207 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008187/0.1348, allocations: 0.532 MB / 499.2 MB, free: 7.668 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12207:5-12207:40:writable] Error: Found equation without time-dependent variables: step4.inPort[1].checkOneDelayedTransitionPerLoop = step4.inPort[1].checkOneDelayedTransitionPerLoop [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12417:5-12417:31:writable] Error: Found equation without time-dependent variables: step4.inPort[1].checkOneDelayedTransitionPerLoop = step1.inPort[1].checkOneDelayedTransitionPerLoop [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12417:5-12417:31:writable] Error: Found equation without time-dependent variables: step1.inPort[1].checkOneDelayedTransitionPerLoop = step1.inPort[1].checkOneDelayedTransitionPerLoop [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:2575:7-2578:33:writable] Error: Found equation without time-dependent variables: step4.inPort[1].checkOneDelayedTransitionPerLoop = true Notification: Performance of preOpt evalFunc (simulation): time 0.001907/0.1367, allocations: 1.44 MB / 0.489 GB, free: 6.086 MB / 366.1 MB Error: An independent subset of the model has imbalanced number of equations (82) and variables (80). variables: T4.t_start T4.enableFire T4.fire T4.outPort.fire T4.inPort.fire T4.inPort.available T3.t_start T3.enableFire T3.fire T3.outPort.node.resume T3.outPort.fire T3.inPort.node.resume T3.inPort.fire T3.inPort.available step1.outport_fire step1.inport_fire step1.connectorNode.node.resume step1.oldActive step1.newActive step1.active step1.outPort[1].node.resume step1.outPort[1].fire step1.outPort[1].available step1.inPort[1].node.resume step1.inPort[1].fire T1.enableFire T1.fire T1.outPort.node.resume T1.outPort.fire T1.inPort.node.resume T1.inPort.fire T1.inPort.available step4.outport_fire step4.outPort[1].fire step4.outPort[1].available step3.inport_fire step3.inPort[2].fire step3.inPort[1].fire step2.outport_fire step2.inport_fire step2.connectorNode.node.resume step2.oldActive step2.newActive step2.active step2.outPort[1].node.resume step2.outPort[1].fire step2.outPort[1].available step2.inPort[2].node.resume step2.inPort[2].fire step2.inPort[1].node.resume step2.inPort[1].fire parallel.entry[2].node.resume parallel.entry[2].fire parallel.entry[1].node.resume parallel.entry[1].fire parallel.oldActive parallel.local_entry[2].node.resume parallel.local_entry[2].fire parallel.local_entry[1].node.resume parallel.local_entry[1].fire parallel.entry_restart[2] parallel.entry_restart[1] parallel.entryIndices[2] parallel.entryIndices[1] parallel.firstActive parallel.startTransition parallel.entry_fire parallel.resume_fire parallel.suspend_fire parallel.outport_fire parallel.inport_fire parallel.finished parallel.newActive parallel.connectorNode.node.suspend parallel.active $whenCondition1 $whenCondition2 $whenCondition4 $whenCondition5 $whenCondition6 equations: 1 : parallel.entry[1].fire = parallel.local_entry[1].fire 2 : parallel.entry[1].node.resume = parallel.local_entry[1].node.resume 3 : parallel.entry[2].fire = parallel.local_entry[2].fire 4 : parallel.entry[2].node.resume = parallel.local_entry[2].node.resume 5 : step2.outPort[1].available = T1.inPort.available 6 : step2.outPort[1].fire = T1.inPort.fire 7 : T1.outPort.fire = step1.inPort[1].fire 8 : T1.outPort.node.resume = step1.inPort[1].node.resume 9 : step1.outPort[1].available = T3.inPort.available 10 : step1.outPort[1].fire = T3.inPort.fire 11 : step1.outPort[1].node.resume = T3.inPort.node.resume 12 : T3.outPort.fire = step2.inPort[1].fire 13 : T3.outPort.node.resume = step2.inPort[1].node.resume 14 : parallel.local_entry[1].fire = step2.inPort[2].fire 15 : parallel.entry[1].node.resume = step2.inPort[2].node.resume 16 : parallel.local_entry[2].fire = step3.inPort[1].fire 17 : parallel.entry[2].node.resume = false 18 : step4.outPort[1].available = T4.inPort.available 19 : step4.outPort[1].fire = T4.inPort.fire 20 : T4.outPort.fire = step3.inPort[2].fire 21 : parallel.startTransition = pre(parallel.startTransition) and not pre(parallel.inport_fire) 22 : parallel.inport_fire = pre(parallel.startTransition) or Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({}) 23 : parallel.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({}) 24 : parallel.suspend_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({}) 25 : parallel.resume_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({}) 26 : parallel.entry_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.local_entry[1].fire, parallel.local_entry[2].fire}) 27 : parallel.active = pre(parallel.newActive) 28 : parallel.newActive = if Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({}) 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 29 : parallel.entry_restart[parallel.entryIndices[1]] = true 30 : parallel.entry_restart[parallel.entryIndices[2]] = true 31 : parallel.firstActive = if parallel.active and not parallel.suspend_fire and pre(parallel.firstActive) <= 1 then pre(parallel.firstActive) + 1 else if parallel.resume_fire and parallel.finished then 0 else pre(parallel.firstActive) 32 : parallel.local_entry[1].fire = if parallel.firstActive == 1 then parallel.entry_restart[1] else parallel.inport_fire 33 : parallel.local_entry[2].fire = if parallel.firstActive == 1 then parallel.entry_restart[2] else parallel.inport_fire 34 : parallel.entryIndices[1] = 1 35 : parallel.entryIndices[2] = 1 36 : true = parallel.active and parallel.suspend_fire or not parallel.active and pre(parallel.active) 37 : parallel.local_entry[1].node.resume = parallel.resume_fire and not parallel.entry_fire 38 : parallel.local_entry[2].node.resume = parallel.local_entry[1].node.resume 39 : parallel.connectorNode.node.suspend = false 40 : step2.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({step2.inPort[1].fire, step2.inPort[2].fire}) 41 : step2.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({step2.outPort[1].fire}) 42 : step2.newActive = if step2.connectorNode.node.resume then step2.oldActive else step2.inport_fire 43 : step2.active = pre(step2.newActive) 44 : step2.outPort[1].available = false 45 : step2.inPort[1].node.resume = step2.connectorNode.node.resume 46 : step2.inPort[2].node.resume = step2.connectorNode.node.resume 47 : step2.outPort[1].node.resume = step2.connectorNode.node.resume 48 : step3.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({step3.inPort[1].fire, step3.inPort[2].fire}) 49 : step4.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({step4.outPort[1].fire}) 50 : step4.outPort[1].available = false 51 : T1.enableFire = step1.inPort[1].checkOneDelayedTransitionPerLoop and T1.inPort.available 52 : T1.fire = T1.enableFire 53 : T1.inPort.fire = T1.fire 54 : T1.outPort.fire = T1.fire 55 : T1.outPort.node.resume = T1.inPort.node.resume 56 : step1.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({step1.inPort[1].fire}) 57 : step1.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({step1.outPort[1].fire}) 58 : step1.newActive = if step1.connectorNode.node.resume then step1.oldActive else step1.inport_fire 59 : step1.active = pre(step1.newActive) 60 : step1.outPort[1].available = false 61 : step1.inPort[1].node.resume = step1.connectorNode.node.resume 62 : step1.outPort[1].node.resume = step1.connectorNode.node.resume 63 : T3.enableFire = T3.inPort.available 64 : T3.fire = T3.enableFire and time >= T3.t_start + T3.waitTime 65 : T3.inPort.fire = T3.fire 66 : T3.outPort.fire = T3.fire 67 : T3.outPort.node.resume = T3.inPort.node.resume 68 : T4.enableFire = T4.inPort.available 69 : T4.fire = T4.enableFire and time >= T4.t_start + T4.waitTime 70 : T4.inPort.fire = T4.fire 71 : T4.outPort.fire = T4.fire 72 : when $whenCondition1 then T4.t_start := time; end when; 73 : when $whenCondition2 then T3.t_start := time; end when; 74 : when true then step1.oldActive := step1.active; end when; 75 : when true then step2.oldActive := step2.active; end when; 76 : when $whenCondition4 then parallel.oldActive := parallel.active; end when; 77 : when {$whenCondition5, $whenCondition6} then parallel.finished := parallel.outport_fire; end when; 78 : $whenCondition1 = T4.enableFire 79 : $whenCondition2 = T3.enableFire 80 : $whenCondition4 = parallel.connectorNode.node.suspend 81 : $whenCondition5 = parallel.outport_fire 82 : $whenCondition6 = pre(parallel.entry_fire) Notification: Performance of preOpt encapsulateWhenConditions (simulation) : time 0.00122/0.1379, allocations: 0.8516 MB / 0.4898 GB, free: 5.219 MB / 366.1 MB Error: pre-optimization module encapsulateWhenConditions (simulation) failed. " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.675605700351298]