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) 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.ParallelBranches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelBranches") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelBranches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelBranches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.001406/0.001406, allocations: 191.5 kB / 16.25 MB, free: 6.586 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.402/1.402, allocations: 222.9 MB / 239.9 MB, free: 4.477 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2673/0.2673, allocations: 13.54 MB / 303.6 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001204, allocations: 59.91 kB / 367.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1107, allocations: 52.69 MB / 420 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.ParallelBranches): time 0.003281/0.114, allocations: 2.282 MB / 422.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.1161, allocations: 1.161 MB / 423.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002/0.1163, allocations: 23.81 kB / 423.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.1181, allocations: 1.058 MB / 424.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.1182, allocations: 31.72 kB / 424.6 MB, free: 13.46 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.000929/0.1192, allocations: 361.4 kB / 424.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007006/0.1199, allocations: 0.7885 MB / 425.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001379/0.1213, allocations: 1.312 MB / 427 MB, free: 11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002619/0.1215, allocations: 318.9 kB / 427.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002403/0.1218, allocations: 326.5 kB / 427.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.18e-05/0.1219, allocations: 72 kB / 427.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.122, allocations: 95.98 kB / 427.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.1222, allocations: 207.4 kB / 428 MB, free: 10 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002272/0.1224, allocations: 334.3 kB / 428.3 MB, free: 9.676 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006676/0.1231, allocations: 0.8334 MB / 429.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1231, allocations: 0 / 429.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1231, allocations: 0 / 429.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.1231, allocations: 0 / 429.2 MB, free: 8.84 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.001091/0.1242, allocations: 0.9338 MB / 430.1 MB, free: 7.852 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.1243, allocations: 19.89 kB / 430.1 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.1244, allocations: 76 kB / 430.2 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005229/0.1249, allocations: 462.1 kB / 430.7 MB, free: 7.266 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.368e-05/0.125, allocations: 62.38 kB / 430.7 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.41e-05/0.1251, allocations: 72.38 kB / 430.8 MB, free: 7.137 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/0.1264, allocations: 0.9354 MB / 431.7 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.1264, allocations: 0 / 431.7 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.236e-05/0.1265, allocations: 28 kB / 431.8 MB, free: 6.125 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.1265, allocations: 16 kB / 431.8 MB, free: 6.109 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009344/0.1274, allocations: 0.6452 MB / 432.4 MB, free: 5.465 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.002956/0.1304, allocations: 2.898 MB / 435.3 MB, free: 2.402 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005594/0.131, allocations: 431.7 kB / 435.7 MB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.1312, allocations: 178.2 kB / 435.9 MB, free: 1.766 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.0009738/0.1322, allocations: 0.9004 MB / 436.8 MB, free: 0.7812 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.oldActive parallel.entry_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 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.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 : 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.outport_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.inport_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.outport_fire}) 27 : step2.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.inport_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.inport_fire or Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({}) or parallel.active and not parallel.outport_fire and not parallel.suspend_fire 33 : parallel.active = pre(parallel.newActive) 34 : parallel.entry_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({parallel.inport_fire, parallel.inport_fire}) 35 : parallel.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue({T3.fire}) 36 : parallel.inport_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.outport_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.0006159/0.1328, allocations: 493.1 kB / 437.3 MB, free: 292 kB / 366.1 MB Error: pre-optimization module encapsulateWhenConditions (simulation) failed.