Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelBranches.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.002044/0.002045, allocations: 102.7 kB / 16.4 MB, free: 6.492 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.002349/0.002349, allocations: 194.8 kB / 19.36 MB, free: 3.75 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.597/1.597, allocations: 222.9 MB / 245 MB, free: 15 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.1042/0.1042, allocations: 13.54 MB / 310.8 MB, free: 15.05 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.ParallelBranches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelBranches") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelBranches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelBranches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 63.89 kB / 430.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1245, allocations: 52.69 MB / 483 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelBranches): time 0.003962/0.1285, allocations: 2.261 MB / 485.3 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002708/0.1313, allocations: 1.184 MB / 486.4 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002822/0.1316, allocations: 19.88 kB / 486.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00231/0.1339, allocations: 1.146 MB / 487.6 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001838/0.1341, allocations: 51.41 kB / 487.7 MB, free: 3.664 MB / 350.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.001366/0.1355, allocations: 418 kB / 488.1 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001027/0.1365, allocations: 0.7923 MB / 488.9 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001655/0.1382, allocations: 1.195 MB / 490.1 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003841/0.1386, allocations: 311 kB / 490.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003684/0.139, allocations: 322.5 kB / 490.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.1391, allocations: 72 kB / 490.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000231/0.1393, allocations: 95.98 kB / 490.8 MB, free: 484 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002648/0.1396, allocations: 207.5 kB / 491 MB, free: 276 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004186/0.14, allocations: 330.3 kB / 491.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001366/0.1414, allocations: 0.8988 MB / 492.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.161e-05/0.1414, allocations: 4 kB / 492.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.978e-06/0.1414, allocations: 3.938 kB / 492.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.1415, allocations: 0 / 492.3 MB, free: 15.04 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.001801/0.1433, allocations: 0.9485 MB / 493.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.349e-05/0.1434, allocations: 19.89 kB / 493.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001823/0.1435, allocations: 76.47 kB / 493.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009826/0.1445, allocations: 474.3 kB / 493.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/0.1447, allocations: 62.38 kB / 493.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.1448, allocations: 76.38 kB / 493.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00164/0.1464, allocations: 0.9354 MB / 494.8 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.1465, allocations: 0 / 494.8 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.199e-05/0.1465, allocations: 32 kB / 494.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.327e-05/0.1466, allocations: 20 kB / 494.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.1477, allocations: 0.653 MB / 495.5 MB, free: 11.61 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.003658/0.1514, allocations: 2.899 MB / 498.4 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006701/0.1521, allocations: 460.5 kB / 498.9 MB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.1524, allocations: 194.2 kB / 499.1 MB, free: 7.867 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:2140:9-2143:35:writable] Error: Found equation without time-dependent variables: step3.outPort[1].checkOneDelayedTransitionPerLoop = true Notification: Performance of preOpt evalFunc (simulation): time 0.001139/0.1535, allocations: 0.924 MB / 0.4883 GB, free: 6.859 MB / 366.1 MB Error: An independent subset of the model has imbalanced number of equations (46) and variables (44). variables: T3.t_start T3.enableFire T3.fire step4.outport_fire step4.inport_fire step4.oldActive step4.newActive step4.active step4.outPort[1].node.resume step4.outPort[1].node.suspend step4.outPort[1].available 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.oldActive parallel.entry_fire parallel.finished parallel.newActive parallel.active step1.outport_fire step1.inport_fire step1.oldActive step1.newActive $whenCondition1 $whenCondition2 $whenCondition3 $whenCondition4 $whenCondition5 $whenCondition6 equations: 1 : step4.inport_fire = true 2 : step4.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 : T3.fire = T3.enableFire and time >= T3.t_start + T3.waitTime 13 : step4.outPort[1].available = step4.active and not step4.outPort[1].node.suspend 14 : step4.active = pre(step4.newActive) 15 : step4.newActive = if step4.outPort[1].node.resume then step4.oldActive else step4.inport_fire or step4.active and not step4.outport_fire and not step4.outPort[1].node.suspend 16 : step4.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.exit[2].fire}) 17 : step4.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T2.fire}) 18 : T2.fire = T2.enableFire and time >= T2.t_start + T2.waitTime 19 : T2.enableFire = step3.active and not step4.outPort[1].node.suspend 20 : step3.active = pre(step3.newActive) 21 : step3.newActive = if step4.outPort[1].node.resume then step3.oldActive else step3.inport_fire or step3.active and not step4.inport_fire and not step4.outPort[1].node.suspend 22 : step3.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.entry[2].fire}) 23 : step2.outPort[1].available = step2.active and not step4.outPort[1].node.suspend 24 : step2.active = pre(step2.newActive) 25 : step2.newActive = if step4.outPort[1].node.resume then step2.oldActive else step2.inport_fire or step2.active and not step2.outport_fire and not step4.outPort[1].node.suspend 26 : step2.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.exit[2].fire}) 27 : step2.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.entry[2].fire}) 28 : T1.fire = T1.enableFire and time >= T1.t_start + T1.waitTime 29 : step4.outPort[1].node.resume = parallel.resume_fire and not parallel.entry_fire 30 : step4.outPort[1].node.suspend = parallel.active and parallel.suspend_fire or not parallel.active and pre(parallel.active) 31 : T3.enableFire = parallel.active and Modelica_StateGraph2.Blocks.BooleanFunctions.allTrue({step2.outPort[1].available, step4.outPort[1].available}) 32 : parallel.newActive = if Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({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 33 : parallel.active = pre(parallel.newActive) 34 : parallel.entry_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.entry[2].fire, parallel.entry[2].fire}) 35 : parallel.exit[2].fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T3.fire}) 36 : parallel.entry[2].fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T1.fire}) 37 : T1.enableFire = pre(step1.newActive) 38 : step1.newActive = step1.inport_fire or T1.enableFire and not step1.outport_fire 39 : step1.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T1.fire}) 40 : step1.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T3.fire}) 41 : $whenCondition1 = parallel.exit[2].fire 42 : $whenCondition2 = pre(parallel.entry_fire) 43 : $whenCondition3 = T1.enableFire 44 : $whenCondition4 = step4.outPort[1].node.suspend 45 : $whenCondition5 = T2.enableFire 46 : $whenCondition6 = T3.enableFire Notification: Performance of preOpt encapsulateWhenConditions (simulation) : time 0.0007168/0.1543, allocations: 0.5102 MB / 0.4888 GB, free: 6.332 MB / 366.1 MB Error: pre-optimization module encapsulateWhenConditions (simulation) failed. " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.8437632312998176]