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.001512/0.001513, allocations: 104.4 kB / 18.4 MB, free: 4.676 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.001652/0.001652, allocations: 190.1 kB / 19.34 MB, free: 3.754 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.264/1.264, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001168/0.001168, allocations: 48.41 kB / 329.2 MB, free: 3.348 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0774/0.07858, allocations: 46.62 MB / 375.8 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.1699/0.2485, allocations: 17.48 MB / 393.3 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008086/0.2566, allocations: 6.588 MB / 399.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007273/0.2574, allocations: 25.09 kB / 399.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009534/0.2584, allocations: 388.6 kB / 400.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002138/0.2605, allocations: 0.9974 MB / 401.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004619/0.2651, allocations: 1.906 MB / 403.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00218/0.2673, allocations: 1.951 MB / 405.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005997/0.268, allocations: 0.5052 MB / 405.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001009/0.269, allocations: 0.7914 MB / 406.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009279/0.2699, allocations: 0.7402 MB / 407.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.27, allocations: 65.03 kB / 407.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001855/0.2719, allocations: 1.117 MB / 408.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002883/0.2722, allocations: 269 kB / 408.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004416/0.2727, allocations: 429.5 kB / 409 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002022/0.2747, allocations: 1.716 MB / 410.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2747, allocations: 0 / 410.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2747, allocations: 0 / 410.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.2747, allocations: 1.188 kB / 410.8 MB, free: 9.039 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.002164/0.2769, allocations: 1.245 MB / 412 MB, free: 8.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.2769, allocations: 8.719 kB / 412 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003575/0.2773, allocations: 99.27 kB / 412.1 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008751/0.2782, allocations: 0.6036 MB / 412.7 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.634e-05/0.2783, allocations: 95.83 kB / 412.8 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.389e-05/0.2784, allocations: 53.45 kB / 412.9 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.2796, allocations: 0.7949 MB / 413.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.2796, allocations: 1.062 kB / 413.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.787e-05/0.2797, allocations: 23.42 kB / 413.7 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.01e-05/0.2798, allocations: 44.88 kB / 413.7 MB, free: 6.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.2808, allocations: 0.677 MB / 414.4 MB, free: 6.52 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.004459/0.2853, allocations: 3.424 MB / 417.8 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006333/0.286, allocations: 416.9 kB / 418.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003626/0.2863, allocations: 256.7 kB / 418.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001575/0.2879, allocations: 1.333 MB / 419.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004862/0.2884, allocations: 355 kB / 420.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 1.593e-06/0.2884, allocations: 0 / 420.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.003643/0.2921, allocations: 1.782 MB / 421.9 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.2922, allocations: 263.9 kB / 422.2 MB, free: 224 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008941/0.2931, allocations: 0.7749 MB / 423 MB, free: 15.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.457e-05/0.2932, allocations: 42.58 kB / 423 MB, free: 15.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003605/0.2935, allocations: 401.4 kB / 423.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.2937, allocations: 137.7 kB / 423.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/0.2939, allocations: 154.2 kB / 423.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.294, allocations: 390.7 kB / 424.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003947/0.2944, allocations: 263.7 kB / 424.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005579/0.295, allocations: 0.5 MB / 424.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4594/0.7544, allocations: 67.59 MB / 492.4 MB, free: 10.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.7544, allocations: 4 kB / 492.4 MB, free: 10.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002029/0.7565, allocations: 0.9646 MB / 493.4 MB, free: 9.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.202e-05/0.7565, allocations: 37.69 kB / 493.4 MB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.7566, allocations: 8 kB / 493.4 MB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005883/0.7572, allocations: 144.8 kB / 493.6 MB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005577/0.7577, allocations: 131.8 kB / 493.7 MB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006322/0.7584, allocations: 0.6772 MB / 494.4 MB, free: 8.062 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000818/0.7592, allocations: 35.98 kB / 494.4 MB, free: 8.027 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.779e-05/0.7593, allocations: 36.8 kB / 494.5 MB, free: 7.992 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.0007776/0.7601, allocations: 469.2 kB / 494.9 MB, free: 7.531 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006007/0.7607, allocations: 0.5044 MB / 495.4 MB, free: 6.918 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002595/0.7633, allocations: 1.256 MB / 496.7 MB, free: 5.543 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.164e-06/0.7633, allocations: 4 kB / 496.7 MB, free: 5.539 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization_lambda0): time 0.00175/0.7651, allocations: 0.9384 MB / 497.6 MB, free: 4.582 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.985e-05/0.7651, allocations: 41.69 kB / 497.7 MB, free: 4.535 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.7652, allocations: 8.781 kB / 497.7 MB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004322/0.7656, allocations: 124.7 kB / 497.8 MB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005168/0.7661, allocations: 139.8 kB / 497.9 MB, free: 4.266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005455/0.7667, allocations: 0.6676 MB / 498.6 MB, free: 3.574 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007697/0.7675, allocations: 39.97 kB / 498.6 MB, free: 3.535 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.828e-05/0.7675, allocations: 32 kB / 498.7 MB, free: 3.504 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.0003103/0.7679, allocations: 285.3 kB / 498.9 MB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000176/0.768, allocations: 83 kB / 499 MB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001348/0.7694, allocations: 0.6947 MB / 499.7 MB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.7694, allocations: 3.984 kB / 499.7 MB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.7694, allocations: 4 kB / 499.7 MB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.7697, allocations: 148.2 kB / 499.9 MB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001606/0.7698, allocations: 15.88 kB / 499.9 MB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004492/0.7703, allocations: 27.98 kB / 499.9 MB, free: 2.203 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.7704, allocations: 31.94 kB / 499.9 MB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001397/0.7718, allocations: 0.7757 MB / 0.489 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001319/0.7731, allocations: 1.032 MB / 0.49 GB, free: 320 kB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003575/0.7735, allocations: 243.9 kB / 0.4902 GB, free: 76 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007481/0.7743, allocations: 0.5381 MB / 0.4907 GB, free: 15.54 MB / 430.1 MB Notification: Performance of Backend: time 7.22e-07/0.7743, allocations: 0 / 0.4907 GB, free: 15.54 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003564/0.7778, allocations: 1.437 MB / 0.4921 GB, free: 14.07 MB / 430.1 MB Notification: Performance of SimCode: time 0.003148/0.781, allocations: 2.138 MB / 0.4942 GB, free: 11.88 MB / 430.1 MB Notification: Performance of Templates: time 0.0333/0.8143, allocations: 21.58 MB / 0.5153 GB, free: 6.262 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)