Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithActions.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.001679/0.001679, allocations: 108.3 kB / 17.54 MB, free: 4.781 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.001425/0.001425, allocations: 190.6 kB / 20.71 MB, free: 1.625 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.461/1.461, allocations: 225.6 MB / 249.3 MB, free: 3.332 MB / 190.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.103/0.103, allocations: 13.78 MB / 318.2 MB, free: 14.89 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.ParallelWithActions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithActions") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithActions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithActions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 63.89 kB / 444.5 MB, free: 1.629 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4062/0.4079, allocations: 55.62 MB / 0.4884 GB, free: 22.94 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelWithActions): time 0.004333/0.4123, allocations: 2.877 MB / 0.4912 GB, free: 20.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003122/0.4154, allocations: 1.564 MB / 0.4927 GB, free: 19.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005444/0.4159, allocations: 37.06 kB / 0.4927 GB, free: 19.4 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002615/0.4186, allocations: 1.75 MB / 0.4945 GB, free: 18.08 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003242/0.4189, allocations: 94.03 kB / 0.4945 GB, free: 18 MB / 366.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.001914/0.4208, allocations: 0.6273 MB / 0.4952 GB, free: 17.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001787/0.4226, allocations: 1.238 MB / 0.4964 GB, free: 16.74 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001927/0.4245, allocations: 1.235 MB / 0.4976 GB, free: 15.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005353/0.425, allocations: 482.1 kB / 0.498 GB, free: 15.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000451/0.4255, allocations: 491.6 kB / 0.4985 GB, free: 15.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001629/0.4257, allocations: 113.1 kB / 0.4986 GB, free: 15.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002873/0.4259, allocations: 156.5 kB / 0.4988 GB, free: 15.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000241/0.4262, allocations: 296.5 kB / 0.499 GB, free: 14.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000393/0.4266, allocations: 0.5041 MB / 0.4995 GB, free: 14.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001405/0.428, allocations: 1.353 MB / 0.5009 GB, free: 13.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.428, allocations: 0 / 0.5009 GB, free: 13.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.428, allocations: 0.8438 kB / 0.5009 GB, free: 13.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.428, allocations: 0 / 0.5009 GB, free: 13.57 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: 295 * Number of variables: 295 Notification: Performance of Generate backend data structure: time 0.001842/0.4298, allocations: 1.32 MB / 0.5021 GB, free: 12.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.4299, allocations: 16.73 kB / 0.5022 GB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002254/0.4301, allocations: 124 kB / 0.5023 GB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009381/0.4311, allocations: 0.6447 MB / 0.5029 GB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.922e-05/0.4311, allocations: 92.17 kB / 0.503 GB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.4313, allocations: 122.7 kB / 0.5031 GB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.4329, allocations: 1.357 MB / 0.5044 GB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.4329, allocations: 4 kB / 0.5044 GB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.033e-05/0.433, allocations: 48 kB / 0.5045 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.806e-05/0.433, allocations: 38 kB / 0.5045 GB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.4343, allocations: 0.9601 MB / 0.5055 GB, free: 9.363 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.003577/0.4378, allocations: 4.404 MB / 0.5098 GB, free: 4.719 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007318/0.4386, allocations: 0.8797 MB / 0.5106 GB, free: 3.746 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.4389, allocations: 263.1 kB / 0.5109 GB, free: 3.48 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:3112:7-3115:33:writable] Error: Found equation without time-dependent variables: step4.outPort[1].checkOneDelayedTransitionPerLoop = true Notification: Performance of preOpt evalFunc (simulation): time 0.001282/0.4402, allocations: 1.424 MB / 0.5123 GB, free: 1.918 MB / 366.1 MB Error: An independent subset of the model has imbalanced number of equations (66) and variables (64). variables: T6.enableFire step7.outport_fire step7.inport_fire step7.oldActive step7.newActive T5.enableFire 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 T4.t_start T4.enableFire T4.fire step5.inport_fire step5.oldActive step5.newActive step5.active T3.t_start T3.enableFire T3.fire step4.inport_fire step4.oldActive step4.newActive step3.outport_fire step3.inport_fire step3.oldActive step3.newActive step3.active step3.outPort[1].available T2.t_start T2.enableFire T2.fire step2.inport_fire step2.oldActive step2.newActive T1.t_start T1.enableFire T1.fire set1.firstActiveIndex set1.y set1.u[2] set1.u[1] step1.inport_fire step1.oldActive step1.newActive step1.active parallel.exit[2].fire parallel.entry[2].fire parallel.oldActive parallel.entry_fire parallel.finished parallel.newActive parallel.active $whenCondition1 $whenCondition2 $whenCondition3 $whenCondition4 $whenCondition5 $whenCondition6 $whenCondition7 equations: 1 : step6.inport_fire = true 2 : step6.inport_fire = true 3 : when {$whenCondition1, $whenCondition2} then parallel.finished := parallel.exit[2].fire; end when; 4 : when false then parallel.oldActive := parallel.active; end when; 5 : when $whenCondition3 then step1.oldActive := step1.active; end when; 6 : when $whenCondition4 then T1.t_start := time; end when; 7 : when $whenCondition3 then step2.oldActive := set1.u[2]; end when; 8 : when $whenCondition5 then T2.t_start := time; end when; 9 : when $whenCondition3 then step3.oldActive := step3.active; end when; 10 : when $whenCondition3 then step4.oldActive := set1.u[1]; end when; 11 : when $whenCondition6 then T3.t_start := time; end when; 12 : when $whenCondition3 then step5.oldActive := step5.active; end when; 13 : when $whenCondition7 then T4.t_start := time; end when; 14 : when $whenCondition3 then step6.oldActive := step6.active; end when; 15 : when false then step7.oldActive := T6.enableFire; end when; 16 : T6.enableFire = pre(step7.newActive) 17 : step7.newActive = step7.inport_fire or T6.enableFire and not step7.outport_fire 18 : step7.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T6.enableFire}) 19 : step7.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T5.enableFire}) 20 : step6.outPort[1].available = step6.active and not step6.outPort[1].node.suspend 21 : step6.active = pre(step6.newActive) 22 : 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 23 : step6.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.exit[2].fire}) 24 : step6.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T4.fire}) 25 : T4.fire = T4.enableFire and time >= T4.t_start + T4.waitTime 26 : T4.enableFire = step5.active and not step6.outPort[1].node.suspend 27 : step5.active = pre(step5.newActive) 28 : step5.newActive = if step6.outPort[1].node.resume then step5.oldActive else step5.inport_fire or step5.active and not step6.inport_fire and not step6.outPort[1].node.suspend 29 : step5.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T3.fire}) 30 : T3.fire = T3.enableFire and time >= T3.t_start + T3.waitTime 31 : T3.enableFire = set1.u[1] and not step6.outPort[1].node.suspend 32 : set1.u[1] = pre(step4.newActive) 33 : step4.newActive = if step6.outPort[1].node.resume then step4.oldActive else step4.inport_fire or set1.u[1] and not step5.inport_fire and not step6.outPort[1].node.suspend 34 : step4.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.entry[2].fire}) 35 : step3.outPort[1].available = 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 step3.outport_fire and not step6.outPort[1].node.suspend 38 : step3.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.exit[2].fire}) 39 : step3.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T2.fire}) 40 : T2.fire = T2.enableFire and time >= T2.t_start + T2.waitTime 41 : T2.enableFire = set1.u[2] and not step6.outPort[1].node.suspend 42 : set1.u[2] = pre(step2.newActive) 43 : step2.newActive = if step6.outPort[1].node.resume then step2.oldActive else step2.inport_fire or set1.u[2] and not step3.inport_fire and not step6.outPort[1].node.suspend 44 : step2.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T1.fire}) 45 : T1.fire = T1.enableFire and time >= T1.t_start + T1.waitTime 46 : set1.y = if set1.firstActiveIndex > 0 then set1.expr[set1.firstActiveIndex] else if set1.use_pre_as_default then pre(set1.y) else set1.y_default 47 : set1.firstActiveIndex = Modelica_StateGraph2.Blocks.BooleanFunctions.firstTrueIndex(set1.u) 48 : T1.enableFire = step1.active and not step6.outPort[1].node.suspend 49 : step1.active = pre(step1.newActive) 50 : step1.newActive = if step6.outPort[1].node.resume then step1.oldActive else step1.inport_fire or step1.active and not step2.inport_fire and not step6.outPort[1].node.suspend 51 : step1.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.entry[2].fire}) 52 : step6.outPort[1].node.resume = parallel.resume_fire and not parallel.entry_fire 53 : step6.outPort[1].node.suspend = parallel.active and parallel.suspend_fire or not parallel.active and pre(parallel.active) 54 : T5.enableFire = parallel.active and Modelica_StateGraph2.Blocks.BooleanFunctions.allTrue({step3.outPort[1].available, step6.outPort[1].available}) 55 : 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 56 : parallel.active = pre(parallel.newActive) 57 : parallel.entry_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.entry[2].fire, parallel.entry[2].fire}) 58 : parallel.exit[2].fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T5.enableFire}) 59 : parallel.entry[2].fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T6.enableFire}) 60 : $whenCondition1 = parallel.exit[2].fire 61 : $whenCondition2 = pre(parallel.entry_fire) 62 : $whenCondition3 = step6.outPort[1].node.suspend 63 : $whenCondition4 = T1.enableFire 64 : $whenCondition5 = T2.enableFire 65 : $whenCondition6 = T3.enableFire 66 : $whenCondition7 = T4.enableFire Notification: Performance of preOpt encapsulateWhenConditions (simulation) : time 0.0007481/0.4409, allocations: 0.7383 MB / 0.513 GB, free: 1.16 MB / 366.1 MB Error: pre-optimization module encapsulateWhenConditions (simulation) failed. " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.9431595792993903]