Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 109.7 kB / 18.4 MB, free: 4.656 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.001034/0.001034, allocations: 187 kB / 19.34 MB, free: 3.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.242/1.242, allocations: 205.1 MB / 225.2 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 51.94 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0715/0.07266, allocations: 46.61 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.1719/0.2446, allocations: 17.49 MB / 393.3 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008031/0.2527, allocations: 6.584 MB / 399.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007582/0.2535, allocations: 21.69 kB / 399.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.2545, allocations: 388.6 kB / 400.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002587/0.2572, allocations: 1.02 MB / 401.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004844/0.262, allocations: 1.902 MB / 403.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002469/0.2645, allocations: 1.957 MB / 405.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007951/0.2653, allocations: 0.5012 MB / 405.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001436/0.2668, allocations: 0.7874 MB / 406.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001228/0.268, allocations: 0.751 MB / 407.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001875/0.2682, allocations: 66 kB / 407.3 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00206/0.2703, allocations: 1.111 MB / 408.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003503/0.2706, allocations: 273.6 kB / 408.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006002/0.2713, allocations: 428.6 kB / 409.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00242/0.2737, allocations: 1.713 MB / 410.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2737, allocations: 0 / 410.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2737, allocations: 1.625 kB / 410.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.659e-05/0.2737, allocations: 0 / 410.8 MB, free: 9.172 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002538/0.2763, allocations: 1.241 MB / 412 MB, free: 8.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.2763, allocations: 8.938 kB / 412 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004157/0.2767, allocations: 100.6 kB / 412.1 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.2778, allocations: 0.6064 MB / 412.7 MB, free: 7.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.871e-05/0.2779, allocations: 99.64 kB / 412.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.971e-05/0.278, allocations: 47.05 kB / 412.9 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.2793, allocations: 0.7946 MB / 413.7 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.2793, allocations: 5.375 kB / 413.7 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-05/0.2794, allocations: 19.72 kB / 413.7 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.215e-05/0.2795, allocations: 40.78 kB / 413.7 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.2806, allocations: 0.6853 MB / 414.4 MB, free: 6.648 MB / 334.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.004864/0.2855, allocations: 3.431 MB / 417.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006838/0.2862, allocations: 421 kB / 418.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003536/0.2866, allocations: 244.7 kB / 418.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001788/0.2884, allocations: 1.338 MB / 419.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005427/0.2889, allocations: 353.2 kB / 420.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.064e-06/0.2889, allocations: 0 / 420.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.003771/0.2927, allocations: 1.775 MB / 422 MB, free: 0.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.2928, allocations: 267.8 kB / 422.2 MB, free: 360 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009822/0.2938, allocations: 0.7817 MB / 423 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.173e-05/0.2939, allocations: 37.7 kB / 423 MB, free: 15.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002941/0.2942, allocations: 406.9 kB / 423.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/0.2943, allocations: 138.1 kB / 423.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002332/0.2945, allocations: 146.2 kB / 423.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.2947, allocations: 386.8 kB / 424.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004364/0.2952, allocations: 263.7 kB / 424.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006281/0.2958, allocations: 0.5 MB / 424.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4351/0.7309, allocations: 67.59 MB / 492.4 MB, free: 10.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/0.731, allocations: 4 kB / 492.4 MB, free: 10.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001788/0.7328, allocations: 0.9683 MB / 493.4 MB, free: 9.156 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.3e-05/0.7328, allocations: 41.64 kB / 493.5 MB, free: 9.109 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.7329, allocations: 4 kB / 493.5 MB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005617/0.7334, allocations: 145 kB / 493.6 MB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005182/0.734, allocations: 139.8 kB / 493.7 MB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006124/0.7346, allocations: 0.6772 MB / 494.4 MB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006705/0.7353, allocations: 35.97 kB / 494.4 MB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.196e-05/0.7353, allocations: 32 kB / 494.5 MB, free: 8.055 MB / 414.1 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = 1.0 max = 1e4 start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007489/0.7361, allocations: 467.8 kB / 494.9 MB, free: 7.598 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005889/0.7367, allocations: 0.5044 MB / 495.4 MB, free: 6.984 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002545/0.7393, allocations: 1.256 MB / 496.7 MB, free: 5.609 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.538e-06/0.7393, allocations: 4 kB / 496.7 MB, free: 5.605 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization_lambda0): time 0.001602/0.7409, allocations: 0.943 MB / 497.6 MB, free: 4.645 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.7409, allocations: 37.7 kB / 497.7 MB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.7409, allocations: 12.03 kB / 497.7 MB, free: 4.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000389/0.7413, allocations: 120.8 kB / 497.8 MB, free: 4.469 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004935/0.7418, allocations: 137.4 kB / 497.9 MB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005279/0.7424, allocations: 0.6693 MB / 498.6 MB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006404/0.743, allocations: 43.86 kB / 498.7 MB, free: 3.598 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.87e-05/0.7431, allocations: 35.98 kB / 498.7 MB, free: 3.562 MB / 414.1 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = 1.0 max = 1e4 start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.tank.aboveLevel[1],timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,tank.aboveLevel[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000262/0.7434, allocations: 270.2 kB / 499 MB, free: 3.285 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.7435, allocations: 83 kB / 499 MB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/0.7448, allocations: 0.6947 MB / 499.7 MB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.7448, allocations: 7.984 kB / 499.7 MB, free: 2.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.7448, allocations: 0 / 499.7 MB, free: 2.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.745, allocations: 148.2 kB / 499.9 MB, free: 2.316 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.7451, allocations: 19.94 kB / 499.9 MB, free: 2.297 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000418/0.7455, allocations: 26.09 kB / 499.9 MB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.558e-05/0.7457, allocations: 27.95 kB / 500 MB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001375/0.747, allocations: 0.7834 MB / 0.489 GB, free: 1.434 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001327/0.7484, allocations: 1.024 MB / 0.49 GB, free: 396 kB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003448/0.7487, allocations: 247.9 kB / 0.4902 GB, free: 148 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006533/0.7494, allocations: 0.5381 MB / 0.4908 GB, free: 15.61 MB / 430.1 MB Notification: Performance of Backend: time 4.71e-07/0.7494, allocations: 3.938 kB / 0.4908 GB, free: 15.61 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003121/0.7525, allocations: 1.435 MB / 0.4922 GB, free: 14.14 MB / 430.1 MB Notification: Performance of SimCode: time 0.0029/0.7555, allocations: 2.135 MB / 0.4943 GB, free: 11.95 MB / 430.1 MB Notification: Performance of Templates: time 0.02974/0.7852, allocations: 21.17 MB / 0.5149 GB, free: 6.742 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)