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.000777/0.0007772, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006186/0.006186, allocations: 169 kB / 16.26 MB, free: 6.652 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.489/1.489, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2624/0.2624, allocations: 13.57 MB / 305 MB, free: 1.414 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003375/0.0003376, allocations: 8 kB / 369.5 MB, free: 6.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1402, allocations: 53.71 MB / 423.2 MB, free: 492 kB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.Applications.ControlledTanks.ControlledTanks2): time 0.3256/0.4659, allocations: 30.13 MB / 453.3 MB, free: 24.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01792/0.4838, allocations: 9.365 MB / 462.7 MB, free: 18.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005426/0.4893, allocations: 118.2 kB / 462.8 MB, free: 18.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004822/0.4942, allocations: 1.199 MB / 464 MB, free: 17.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008601/0.5028, allocations: 1.463 MB / 465.5 MB, free: 16.8 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 '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.01231/0.5151, allocations: 3.132 MB / 468.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01972/0.5349, allocations: 7.892 MB / 476.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0199/0.5548, allocations: 7.01 MB / 483.5 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006821/0.5617, allocations: 1.934 MB / 485.4 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005878/0.5677, allocations: 2.006 MB / 487.4 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002296/0.57, allocations: 163.8 kB / 487.6 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006175/0.5762, allocations: 0.8155 MB / 488.4 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003115/0.5794, allocations: 0.9734 MB / 489.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006106/0.5855, allocations: 1.849 MB / 491.2 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01301/0.5986, allocations: 6.343 MB / 497.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.5986, allocations: 0 / 497.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.921e-06/0.5986, allocations: 0 / 497.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004024/0.5991, allocations: 3.938 kB / 497.6 MB, free: 14.49 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.01257/0.6116, allocations: 3.779 MB / 0.4896 GB, free: 10.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.594e-05/0.6117, allocations: 16.03 kB / 0.4896 GB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003356/0.6151, allocations: 483.5 kB / 0.4901 GB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006342/0.6215, allocations: 2.483 MB / 0.4925 GB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006346/0.6221, allocations: 0.4946 MB / 0.493 GB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001337/0.6235, allocations: 388 kB / 0.4934 GB, free: 6.641 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/0.6358, allocations: 4.974 MB / 0.4982 GB, free: 1.477 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.649e-05/0.6359, allocations: 11.84 kB / 0.4982 GB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005156/0.6365, allocations: 168 kB / 0.4984 GB, free: 1.301 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001906/0.6367, allocations: 166.8 kB / 0.4985 GB, free: 1.137 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01051/0.6472, allocations: 3.906 MB / 0.5024 GB, free: 13.22 MB / 382.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.03948/0.6867, allocations: 16.93 MB / 0.5189 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0234/0.7102, allocations: 8.521 MB / 0.5272 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01228/0.7225, allocations: 4.534 MB / 0.5316 GB, free: 14.52 MB / 414.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.02051/0.7431, allocations: 7.409 MB / 0.5389 GB, free: 6.574 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.01015/0.7533, allocations: 3.699 MB / 0.5425 GB, free: 2.812 MB / 414.1 MB Error: pre-optimization module encapsulateWhenConditions (simulation) failed.