Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.ControlledTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 99.59 kB / 21.2 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002689/0.002689, allocations: 221.1 kB / 24.5 MB, free: 3.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.525/1.525, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5035,variableFilter="time|tank1.level|tank2.level|shut.on|shut.reset.1.|shut.reset.2.|start.on|start.reset.1.|start.reset.2.|stop.on|stop.reset.1.|stop.reset.2.|tankController.T1.enableFire|tankController.T2.enableFire|tankController.T3.enableFire|tankController.T4.enableFire|tankController.T5.enableFire|tankController.T6.enableFire|tankController.makeProduct.T1.enableFire|tankController.makeProduct.T2.enableFire|tankController.makeProduct.T3.enableFire|tankController.makeProduct.T4.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.ControlledTanks") translateModel(Modelica.StateGraph.Examples.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5035,variableFilter="time|tank1.level|tank2.level|shut.on|shut.reset.1.|shut.reset.2.|start.on|start.reset.1.|start.reset.2.|stop.on|stop.reset.1.|stop.reset.2.|tankController.T1.enableFire|tankController.T2.enableFire|tankController.T3.enableFire|tankController.T4.enableFire|tankController.T5.enableFire|tankController.T6.enableFire|tankController.makeProduct.T1.enableFire|tankController.makeProduct.T2.enableFire|tankController.makeProduct.T3.enableFire|tankController.makeProduct.T4.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.ControlledTanks") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.261e-05/2.261e-05, allocations: 2.281 kB / 378.9 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ControlledTanks): time 0.1711/0.1711, allocations: 3.594 MB / 382.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004149/0.1753, allocations: 2.671 MB / 385.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005123/0.1758, allocations: 35.88 kB / 385.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001415/0.1772, allocations: 0.5786 MB / 385.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001196/0.1784, allocations: 0.5037 MB / 386.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002238/0.1806, allocations: 1.036 MB / 387.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002654/0.1833, allocations: 2.56 MB / 389.9 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001566/0.1849, allocations: 1.138 MB / 391 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009624/0.1858, allocations: 0.9759 MB / 392 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007588/0.1866, allocations: 0.8353 MB / 392.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000244/0.1868, allocations: 216.8 kB / 393.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005049/0.1873, allocations: 313 kB / 393.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001498/0.1888, allocations: 2.892 MB / 396.2 MB, free: 5.953 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0007253/0.1896, allocations: 1.692 MB / 397.9 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.1898, allocations: 87.94 kB / 398 MB, free: 4.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0002689/0.19, allocations: 178.1 kB / 398.2 MB, free: 4.652 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 319 (308) * Number of variables: 319 (309) Notification: Performance of [SIM] Bindings: time 0.005138/0.1952, allocations: 6.29 MB / 404.5 MB, free: 380 kB / 302.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.001067/0.1962, allocations: 1.046 MB / 405.5 MB, free: 15.49 MB / 318.1 MB Notification: Performance of [SIM] Early Inline: time 0.00508/0.2013, allocations: 4.207 MB / 409.7 MB, free: 12.16 MB / 318.1 MB Notification: Performance of [SIM] Simplify 1: time 0.00152/0.2028, allocations: 0.6783 MB / 410.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of [SIM] Alias: time 0.008822/0.2117, allocations: 5.838 MB / 416.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of [SIM] Simplify 2: time 0.0008686/0.2125, allocations: 499.2 kB / 416.7 MB, free: 6.352 MB / 318.1 MB Notification: Performance of [SIM] Remove Stream: time 0.0007066/0.2132, allocations: 381.4 kB / 417.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of [SIM] Detect States: time 0.002435/0.2157, allocations: 1.274 MB / 418.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of [SIM] Events: time 0.001137/0.2168, allocations: 0.5163 MB / 418.9 MB, free: 4.031 MB / 318.1 MB Notification: Performance of [SIM] Partitioning: time 0.002653/0.2195, allocations: 1.39 MB / 420.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of [SIM] Causalize: time 0.008478/0.2279, allocations: 3.795 MB / 424.1 MB, free: 14.76 MB / 334.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.004682/0.2326, allocations: 3.006 MB / 427.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of [INI] Simplify: time 0.01031/0.2429, allocations: 2.156 MB / 429.3 MB, free: 9.527 MB / 334.1 MB Notification: Performance of [INI] Inline: time 0.006712/0.2497, allocations: 4.311 MB / 433.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of [INI] Partitioning: time 0.0004131/0.2501, allocations: 106.7 kB / 433.7 MB, free: 5.066 MB / 334.1 MB Notification: Performance of [INI] Cleanup: time 0.001106/0.2512, allocations: 0.7612 MB / 434.4 MB, free: 4.305 MB / 334.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) $PRE.shut.table.y = $START.shut.table.y ($RES_SRT_480); [SCAL] (1) $PRE.stop.table.y = $START.stop.table.y ($RES_SRT_478); [SCAL] (1) $PRE.start.table.y = $START.start.table.y ($RES_SRT_476); Notification: Performance of [INI] Causalize: time 0.01841/0.2696, allocations: 10.25 MB / 444.7 MB, free: 9.805 MB / 350.1 MB Notification: Performance of [INI] Tearing: time 0.001754/0.2713, allocations: 1.309 MB / 446 MB, free: 8.434 MB / 350.1 MB Notification: Performance of [SIM] Initialization: time 1.483e-06/0.2713, allocations: 0 / 446 MB, free: 8.434 MB / 350.1 MB Notification: Performance of [SIM] Remove Dummies: time 4.059e-05/0.2714, allocations: 2 kB / 446 MB, free: 8.43 MB / 350.1 MB Notification: Performance of [SIM] Tearing: time 0.001347/0.2727, allocations: 0.9177 MB / 446.9 MB, free: 7.477 MB / 350.1 MB Notification: Performance of [SIM] Categorize: time 2.112e-05/0.2727, allocations: 11.98 kB / 446.9 MB, free: 7.465 MB / 350.1 MB Error: Internal error NFExpression.makeOne failed for: Boolean Error: Internal error NBSolve.solveStrongComponent failed with status = Solve.UNSOLVABLE while trying to solve following strong component: BLOCK: Resizable Component (status = Solve.UNPROCESSED, size = 2) ------------------------------------------------------------------- ### Variable: $SEV_2[$i1] ### Equation: [FOR-] (2) ($RES_SIM_225) [----] for $i1 in 1:2 loop [----] [SCAL] (1) tankController.s1.inPort[$i1].occupied = if $SEV_1[$i1] then tankController.s1.localActive else $SEV_2[$i1] ($RES_SIM_226) [----] end for; Error: Internal error NBSolve.solveStrongComponent failed with status = Solve.UNSOLVABLE while trying to solve following strong component: BLOCK: Algebraic Loop (Linear = false, Mixed = true, Homotopy = false, size = 7) ---------------------------------------------------------------------------------- Strict Tearing Set ******************** ### Iteration Variables: [DISC] (1) Boolean tankController.T2.outPort.occupied; ### Residual Equations: ### Inner Equations: BLOCK: Sliced Component (status = Solve.UNPROCESSED, size = 1) ---------------------------------------------------------------- ### Variable: tankController.s1.inPort[1].occupied ### Equation: [SCAL] (1) tankController.T2.outPort.occupied = tankController.s1.inPort[1].occupied ($RES_SIM_259) BLOCK: Single Strong Component (status = Solve.UNPROCESSED, size = 1) ----------------------------------------------------------------------- ### Variable: Boolean $SEV_16 ### Equation: [SCAL] (1) $SEV_16 = (tankController.T2.localCondition and tankController.makeProduct.outPort.available) and not tankController.T2.outPort.occupied ($RES_EVT_445) BLOCK: Single Strong Component (status = Solve.UNPROCESSED, size = 1) ----------------------------------------------------------------------- ### Variable: Boolean tankController.T2.enableFire ### Equation: [SCAL] (1) tankController.T2.enableFire = $SEV_16 ($RES_SIM_140) BLOCK: Single Strong Component (status = Solve.UNPROCESSED, size = 1) ----------------------------------------------------------------------- ### Variable: Boolean tankController.T2.fire ### Equation: [SCAL] (1) tankController.T2.enableFire = tankController.T2.fire ($RES_SIM_413) BLOCK: Sliced Component (status = Solve.UNPROCESSED, size = 1) ---------------------------------------------------------------- ### Variable: tankController.s1.inPort[1].set ### Equation: [SCAL] (1) tankController.T2.fire = tankController.s1.inPort[1].set ($RES_SIM_258) BLOCK: Resizable Component (status = Solve.UNPROCESSED, size = 2) ------------------------------------------------------------------- ### Variable: $SEV_2[$i1] ### Equation: [FOR-] (2) ($RES_SIM_225) [----] for $i1 in 1:2 loop [----] [SCAL] (1) tankController.s1.inPort[$i1].occupied = if $SEV_1[$i1] then tankController.s1.localActive else $SEV_2[$i1] ($RES_SIM_226) [----] end for; " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.699870124924928] Failed to read output from testmodel.py, exit status != 0: ['time', 'tank1.level', 'tank2.level', 'shut.on', 'shut.reset[1]', 'shut.reset[2]', 'start.on', 'start.reset[1]', 'start.reset[2]', 'stop.on', 'stop.reset[1]', 'stop.reset[2]', 'tankController.T1.enableFire', 'tankController.T2.enableFire', 'tankController.T3.enableFire', 'tankController.T4.enableFire', 'tankController.T5.enableFire', 'tankController.T6.enableFire', 'tankController.makeProduct.T1.enableFire', 'tankController.makeProduct.T2.enableFire', 'tankController.makeProduct.T3.enableFire', 'tankController.makeProduct.T4.enableFire'] 0.2805045931600034 0.2953331 0.102314075 Calling exit ...