Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.001329/0.001329, allocations: 106.5 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.001486/0.001486, allocations: 213.6 kB / 24.49 MB, free: 3.934 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.443/1.443, allocations: 230.6 MB / 258.3 MB, free: 7.773 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.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 47.94 kB / 379 MB, free: 2.426 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2137, allocations: 53.36 MB / 432.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.01977/0.2335, allocations: 16.24 MB / 448.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008583/0.2421, allocations: 5.51 MB / 454.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003803/0.2424, allocations: 31.75 kB / 454.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008007/0.2432, allocations: 318 kB / 454.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002239/0.2455, allocations: 1.077 MB / 455.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003548/0.249, allocations: 1.693 MB / 457.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002261/0.2513, allocations: 2.031 MB / 459.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005664/0.2519, allocations: 417.9 kB / 459.6 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001021/0.2529, allocations: 0.7709 MB / 460.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001046/0.2539, allocations: 0.7863 MB / 461.2 MB, free: 9.723 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001328/0.2541, allocations: 71.98 kB / 461.3 MB, free: 9.652 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.2557, allocations: 0.9713 MB / 462.2 MB, free: 8.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002939/0.256, allocations: 271.1 kB / 462.5 MB, free: 8.414 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004006/0.2564, allocations: 342.5 kB / 462.8 MB, free: 8.078 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002114/0.2585, allocations: 1.69 MB / 464.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.2585, allocations: 0 / 464.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2585, allocations: 0 / 464.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.2585, allocations: 0 / 464.5 MB, free: 6.383 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002328/0.2608, allocations: 1.13 MB / 465.7 MB, free: 5.215 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.2609, allocations: 8.031 kB / 465.7 MB, free: 5.207 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003137/0.2612, allocations: 92.41 kB / 465.8 MB, free: 5.117 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.2622, allocations: 0.518 MB / 466.3 MB, free: 4.574 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.551e-05/0.2622, allocations: 33 kB / 466.3 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.2624, allocations: 55.98 kB / 466.4 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.2638, allocations: 1.013 MB / 467.4 MB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.2638, allocations: 0 / 467.4 MB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.742e-05/0.2639, allocations: 19.98 kB / 467.4 MB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.581e-05/0.264, allocations: 44.97 kB / 467.4 MB, free: 3.316 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.2652, allocations: 0.6869 MB / 468.1 MB, free: 2.629 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004366/0.2696, allocations: 2.201 MB / 470.3 MB, free: 380 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008213/0.2704, allocations: 461.8 kB / 470.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004357/0.2709, allocations: 258 kB / 471 MB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001371/0.271, allocations: 32.42 kB / 471.1 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.271, allocations: 42.94 kB / 471.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 1.883e-06/0.271, allocations: 0 / 471.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.005562/0.2766, allocations: 2.149 MB / 473.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.276e-05/0.2767, allocations: 89.53 kB / 473.3 MB, free: 13.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006871/0.2773, allocations: 0.5457 MB / 473.9 MB, free: 12.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.685e-05/0.2774, allocations: 45.64 kB / 473.9 MB, free: 12.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002776/0.2777, allocations: 340.8 kB / 474.3 MB, free: 12.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.2779, allocations: 214.1 kB / 474.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002508/0.2781, allocations: 146.6 kB / 474.6 MB, free: 11.97 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.2783, allocations: 374.8 kB / 475 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005576/0.2789, allocations: 312.7 kB / 475.3 MB, free: 11.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007128/0.2796, allocations: 0.4913 MB / 475.8 MB, free: 10.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.2808, allocations: 0.7481 MB / 476.5 MB, free: 9.914 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.2808, allocations: 0 / 476.5 MB, free: 9.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001689/0.2825, allocations: 0.97 MB / 477.5 MB, free: 8.934 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.2825, allocations: 8 kB / 477.5 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.2825, allocations: 4 kB / 477.5 MB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002645/0.2851, allocations: 408.7 kB / 477.9 MB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006311/0.2858, allocations: 155.7 kB / 478.1 MB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/0.2868, allocations: 0.8256 MB / 478.9 MB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000469/0.2873, allocations: 31.98 kB / 478.9 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-05/0.2873, allocations: 31.98 kB / 478.9 MB, free: 7.453 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007468/0.2881, allocations: 481.8 kB / 479.4 MB, free: 6.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007055/0.2888, allocations: 0.492 MB / 479.9 MB, free: 6.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001244/0.29, allocations: 0.7216 MB / 480.6 MB, free: 5.621 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.936e-06/0.29, allocations: 0 / 480.6 MB, free: 5.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001621/0.2917, allocations: 0.9073 MB / 481.5 MB, free: 4.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.2917, allocations: 8 kB / 481.5 MB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.2917, allocations: 4.625 kB / 481.6 MB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002074/0.2937, allocations: 276.4 kB / 481.8 MB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008812/0.2946, allocations: 155.8 kB / 482 MB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007165/0.2953, allocations: 0.7162 MB / 482.7 MB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004826/0.2958, allocations: 31.97 kB / 482.7 MB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.897e-05/0.2959, allocations: 32.09 kB / 482.8 MB, free: 3.461 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002349/0.2961, allocations: 236 kB / 483 MB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.2963, allocations: 71.64 kB / 483.1 MB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001772/0.298, allocations: 0.8477 MB / 483.9 MB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.2981, allocations: 11.92 kB / 483.9 MB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2981, allocations: 0 / 483.9 MB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.2982, allocations: 71.45 kB / 484 MB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.2983, allocations: 12 kB / 484 MB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004358/0.2987, allocations: 27.92 kB / 484 MB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.2988, allocations: 52.55 kB / 484.1 MB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002063/0.3009, allocations: 0.9155 MB / 485 MB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001796/0.3027, allocations: 1.174 MB / 486.2 MB, free: 8 kB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005274/0.3032, allocations: 305 kB / 486.5 MB, free: 15.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005042/0.3037, allocations: 386.8 kB / 486.8 MB, free: 15.33 MB / 398.1 MB Notification: Performance of Backend: time 4.41e-07/0.3037, allocations: 0 / 486.8 MB, free: 15.33 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003226/0.307, allocations: 1.283 MB / 488.1 MB, free: 14.04 MB / 398.1 MB Notification: Performance of SimCode: time 0.003255/0.3102, allocations: 2.182 MB / 490.3 MB, free: 11.82 MB / 398.1 MB Notification: Performance of Templates: time 0.03675/0.347, allocations: 23.15 MB / 0.5014 GB, free: 4.949 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 4.969230510003399] Failed to read output from testmodel.py, exit status != 0: ['time', 'tank1.level', 'tank1.medium.T', 'tank2.level', 'tank2.medium.T', 'tank1.aboveLevel[1]', 'tank2.aboveLevel[1]'] 0.3550880969996797 0.369924466 0.10826202700000001 Calling exit ...