Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks2.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.Applications.ControlledTanks.ControlledTanks2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks2") translateModel(Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001924/0.001924, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002015/0.002015, allocations: 194 kB / 16.53 MB, free: 6.391 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.517/1.517, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.3567/0.3567, allocations: 13.54 MB / 303.9 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 59.91 kB / 367.8 MB, free: 6.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.175, allocations: 52.69 MB / 420.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks2): time 0.3307/0.5057, allocations: 30.35 MB / 450.8 MB, free: 42.51 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01522/0.521, allocations: 9.271 MB / 460.1 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003972/0.525, allocations: 117.4 kB / 460.2 MB, free: 38.15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008267/0.5333, allocations: 5.015 MB / 465.2 MB, free: 35.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006573/0.5399, allocations: 1.637 MB / 466.9 MB, free: 34.2 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 'tankController.makeProduct.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 'tankController.makeProduct.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 'tankController.makeProduct.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. [/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 'tankController.shutStep.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 'tankController.shutStep.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 'tankController.shutStep.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.009966/0.5499, allocations: 3.411 MB / 470.3 MB, free: 32.31 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01244/0.5624, allocations: 7.117 MB / 477.4 MB, free: 28.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01796/0.5804, allocations: 6.549 MB / 483.9 MB, free: 25.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00923/0.5897, allocations: 2.574 MB / 486.5 MB, free: 24.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006361/0.5961, allocations: 2.418 MB / 488.9 MB, free: 23.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003913/0.6, allocations: 0.5343 MB / 489.5 MB, free: 23.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007047/0.6071, allocations: 1.168 MB / 490.6 MB, free: 23.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00332/0.6105, allocations: 1.397 MB / 492 MB, free: 22.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006224/0.6167, allocations: 2.294 MB / 494.3 MB, free: 20.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01355/0.6303, allocations: 7.05 MB / 0.4896 GB, free: 15.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.6303, allocations: 0 / 0.4896 GB, free: 15.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6303, allocations: 0 / 0.4896 GB, free: 15.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000397/0.6307, allocations: 1.062 kB / 0.4896 GB, free: 15.22 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: 997 * Number of variables: 997 Notification: Performance of Generate backend data structure: time 0.02149/0.6522, allocations: 4.811 MB / 0.4943 GB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.6523, allocations: 9.562 kB / 0.4943 GB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00309/0.6554, allocations: 482.5 kB / 0.4948 GB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008004/0.6635, allocations: 2.487 MB / 0.4972 GB, free: 9.512 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000749/0.6642, allocations: 0.4885 MB / 0.4977 GB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00202/0.6663, allocations: 399.8 kB / 0.4981 GB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01499/0.6813, allocations: 4.966 MB / 0.5029 GB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001593/0.6815, allocations: 7.938 kB / 0.5029 GB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00134/0.6829, allocations: 168 kB / 0.5031 GB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001695/0.683, allocations: 162.8 kB / 0.5033 GB, free: 4.801 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008886/0.6919, allocations: 3.899 MB / 0.5071 GB, free: 0.8945 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: tankController.shutStep.entry_restart[1] = true Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03038/0.7223, allocations: 16.95 MB / 0.5236 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01976/0.7421, allocations: 8.5 MB / 0.5319 GB, free: 6.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0117/0.7539, allocations: 4.526 MB / 0.5363 GB, free: 2.207 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:4594:11-4598:37:writable] Error: Found equation without time-dependent variables: tankController.makeProduct.fillTank1.inPort[1].checkOneDelayedTransitionPerLoop = tankController.makeProduct.fillTank1.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: tankController.makeProduct.wait1.inPort[1].checkOneDelayedTransitionPerLoop = tankController.makeProduct.wait1.inPort[1].checkOneDelayedTransitionPerLoop [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12132:3-12134:72:writable] Error: Found equation without time-dependent variables: tankController.makeProduct.fillTank1.inPort[1].checkOneDelayedTransitionPerLoop = tankController.makeProduct.fillTank1.inPort[1].checkOneDelayedTransitionPerLoop [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Vessels.mo:268:9-269:69:writable] Error: Found equation without time-dependent variables: tank2.level = true Notification: Performance of preOpt evalFunc (simulation): time 0.01957/0.7735, allocations: 7.409 MB / 0.5436 GB, free: 10.26 MB / 414.1 MB Error: An independent subset of the model has imbalanced number of equations (51) and variables (48). variables: shut.pre_reset[2] shut.pre_reset[1] shut.table.realToBoolean.y shut.table.realToBoolean.u shut.table.combiTimeTable.timeScaled shut.table.combiTimeTable.nextTimeEventScaled shut.table.combiTimeTable.nextTimeEvent shut.table.combiTimeTable.y[1] shut.table.y shut.on shut.reset[2] shut.reset[1] stop.pre_reset[2] stop.pre_reset[1] stop.table.realToBoolean.y stop.table.realToBoolean.u stop.table.combiTimeTable.timeScaled stop.table.combiTimeTable.nextTimeEventScaled stop.table.combiTimeTable.nextTimeEvent stop.table.combiTimeTable.y[1] stop.table.y stop.on stop.reset[2] stop.reset[1] start.pre_reset[2] start.pre_reset[1] start.table.realToBoolean.y start.table.realToBoolean.u start.table.combiTimeTable.timeScaled start.table.combiTimeTable.nextTimeEventScaled start.table.combiTimeTable.nextTimeEvent start.table.combiTimeTable.y[1] start.table.y start.on start.reset[2] start.reset[1] $whenCondition9 $whenCondition7 $whenCondition8 $whenCondition6 $whenCondition4 $whenCondition5 $whenCondition3 $whenCondition1 $whenCondition2 $whenCondition30 $whenCondition31 $whenCondition32 equations: 1 : algorithm start.pre_reset := pre(start.reset); $whenCondition1 := start.pre_reset[1]; $whenCondition2 := start.pre_reset[2]; when {$whenCondition1, $whenCondition2} then start.on := false; end when; $whenCondition3 := start.table.y <> pre(start.table.y); when $whenCondition3 then start.on := true; end when; 2 : algorithm stop.pre_reset := pre(stop.reset); $whenCondition4 := stop.pre_reset[1]; $whenCondition5 := stop.pre_reset[2]; when {$whenCondition4, $whenCondition5} then stop.on := false; end when; $whenCondition6 := stop.table.y <> pre(stop.table.y); when $whenCondition6 then stop.on := true; end when; 3 : algorithm shut.pre_reset := pre(shut.reset); $whenCondition7 := shut.pre_reset[1]; $whenCondition8 := shut.pre_reset[2]; when {$whenCondition7, $whenCondition8} then shut.on := false; end when; $whenCondition9 := shut.table.y <> pre(shut.table.y); when $whenCondition9 then shut.on := true; end when; 4 : start.table.combiTimeTable.y[1] = start.table.realToBoolean.u 5 : start.table.realToBoolean.y = start.table.y 6 : stop.table.combiTimeTable.y[1] = stop.table.realToBoolean.u 7 : stop.table.realToBoolean.y = stop.table.y 8 : shut.table.combiTimeTable.y[1] = shut.table.realToBoolean.u 9 : shut.table.realToBoolean.y = shut.table.y 10 : true = shut.on 11 : true = stop.on 12 : true = start.on 13 : shut.reset[2] = start.reset[1] 14 : stop.reset[2] = start.reset[2] 15 : start.table.combiTimeTable.timeScaled = time 16 : start.table.combiTimeTable.y[1] = Modelica.Blocks.Tables.Internal.getTimeTableValueNoDer(start.table.combiTimeTable.tableID, 1, start.table.combiTimeTable.timeScaled, start.table.combiTimeTable.nextTimeEventScaled, pre(start.table.combiTimeTable.nextTimeEventScaled)) 17 : start.table.realToBoolean.y = start.table.realToBoolean.u >= start.table.realToBoolean.threshold 18 : shut.reset[1] = stop.reset[1] 19 : stop.reset[2] = shut.on 20 : stop.table.combiTimeTable.timeScaled = time 21 : stop.table.combiTimeTable.y[1] = Modelica.Blocks.Tables.Internal.getTimeTableValueNoDer(stop.table.combiTimeTable.tableID, 1, stop.table.combiTimeTable.timeScaled, stop.table.combiTimeTable.nextTimeEventScaled, pre(stop.table.combiTimeTable.nextTimeEventScaled)) 22 : stop.table.realToBoolean.y = stop.table.realToBoolean.u >= stop.table.realToBoolean.threshold 23 : shut.reset[1] = start.on 24 : shut.reset[2] = stop.on 25 : shut.table.combiTimeTable.timeScaled = time 26 : shut.table.combiTimeTable.y[1] = Modelica.Blocks.Tables.Internal.getTimeTableValueNoDer(shut.table.combiTimeTable.tableID, 1, shut.table.combiTimeTable.timeScaled, shut.table.combiTimeTable.nextTimeEventScaled, pre(shut.table.combiTimeTable.nextTimeEventScaled)) 27 : shut.table.realToBoolean.y = shut.table.realToBoolean.u >= shut.table.realToBoolean.threshold 28 : when {$whenCondition30, initial()} then shut.table.combiTimeTable.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(shut.table.combiTimeTable.tableID, shut.table.combiTimeTable.timeScaled); end when; 29 : when {$whenCondition30, initial()} then shut.table.combiTimeTable.nextTimeEvent := if shut.table.combiTimeTable.nextTimeEventScaled < 9.999999999999999e+59 then shut.table.combiTimeTable.nextTimeEventScaled else 9.999999999999999e+59; end when; 30 : when {$whenCondition31, initial()} then stop.table.combiTimeTable.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(stop.table.combiTimeTable.tableID, stop.table.combiTimeTable.timeScaled); end when; 31 : when {$whenCondition31, initial()} then stop.table.combiTimeTable.nextTimeEvent := if stop.table.combiTimeTable.nextTimeEventScaled < 9.999999999999999e+59 then stop.table.combiTimeTable.nextTimeEventScaled else 9.999999999999999e+59; end when; 32 : when {$whenCondition32, initial()} then start.table.combiTimeTable.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(start.table.combiTimeTable.tableID, start.table.combiTimeTable.timeScaled); end when; 33 : when {$whenCondition32, initial()} then start.table.combiTimeTable.nextTimeEvent := if start.table.combiTimeTable.nextTimeEventScaled < 9.999999999999999e+59 then start.table.combiTimeTable.nextTimeEventScaled else 9.999999999999999e+59; end when; 34 : $whenCondition30 = time >= pre(shut.table.combiTimeTable.nextTimeEvent) 35 : $whenCondition31 = time >= pre(stop.table.combiTimeTable.nextTimeEvent) 36 : $whenCondition32 = time >= pre(start.table.combiTimeTable.nextTimeEvent) Notification: Performance of preOpt encapsulateWhenConditions (simulation) : time 0.008313/0.7818, allocations: 3.705 MB / 0.5472 GB, free: 6.484 MB / 414.1 MB Error: pre-optimization module encapsulateWhenConditions (simulation) failed.