Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7973/0.7973, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.0019/0.0019, allocations: 155.4 kB / 144 MB, free: 4.797 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.816e-05/1.817e-05, allocations: 4 kB / 173.9 MB, free: 22.79 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05902/0.05906, allocations: 25.18 MB / 199 MB, free: 13.69 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.142/3.201, allocations: 1.427 GB / 1.621 GB, free: 27.45 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/3.201, allocations: 67.97 kB / 1.621 GB, free: 27.38 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.213/5.415, allocations: 0.5408 GB / 2.162 GB, free: 12.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/5.415, allocations: 0 / 2.162 GB, free: 12.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.375e-05/5.415, allocations: 31.44 kB / 2.162 GB, free: 12.89 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01139/5.426, allocations: 2.516 MB / 2.164 GB, free: 11.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/5.426, allocations: 11.25 kB / 2.164 GB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005672/5.427, allocations: 160.5 kB / 2.165 GB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001735/5.429, allocations: 0.9518 MB / 2.166 GB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/5.429, allocations: 240.6 kB / 2.166 GB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/5.429, allocations: 66.72 kB / 2.166 GB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002447/5.432, allocations: 1.755 MB / 2.168 GB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002457/5.434, allocations: 1.791 MB / 2.169 GB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/5.434, allocations: 0 / 2.169 GB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/5.434, allocations: 2.312 kB / 2.169 GB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001157/5.434, allocations: 103.9 kB / 2.169 GB, free: 10.84 MB / 266.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01125/5.446, allocations: 8.42 MB / 2.178 GB, free: 7.145 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002015/5.448, allocations: 1.411 MB / 2.179 GB, free: 7.113 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/5.449, allocations: 0.8794 MB / 2.18 GB, free: 7.102 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0627/5.511, allocations: 36.13 MB / 2.215 GB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.67e-05/5.511, allocations: 52.72 kB / 2.215 GB, free: 14.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=114): time 3.426e-06/5.512, allocations: 0 / 2.215 GB, free: 14.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=124): time 0.02412/5.536, allocations: 7.492 MB / 2.223 GB, free: 14.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.093e-05/5.536, allocations: 150.1 kB / 2.223 GB, free: 14.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000911/5.537, allocations: 0.604 MB / 2.223 GB, free: 13.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001935/5.537, allocations: 29.27 kB / 2.223 GB, free: 13.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004168/5.537, allocations: 0.5317 MB / 2.224 GB, free: 13.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003886/5.538, allocations: 422.9 kB / 2.224 GB, free: 13.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.634e-05/5.538, allocations: 0.8438 kB / 2.224 GB, free: 13.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/5.538, allocations: 359.4 kB / 2.225 GB, free: 13.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/5.539, allocations: 0.8182 MB / 2.225 GB, free: 13.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001206/5.54, allocations: 1.044 MB / 2.226 GB, free: 12.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006021/5.546, allocations: 1.654 MB / 2.228 GB, free: 12.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-05/5.546, allocations: 0 / 2.228 GB, free: 12.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.01069/5.557, allocations: 3.375 MB / 2.231 GB, free: 12.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.084e-05/5.557, allocations: 7.812 kB / 2.231 GB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-05/5.557, allocations: 10.81 kB / 2.231 GB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002759/5.56, allocations: 1.237 MB / 2.233 GB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/5.561, allocations: 201.1 kB / 2.233 GB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009679/5.571, allocations: 6.388 MB / 2.239 GB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001885/5.573, allocations: 124.8 kB / 2.239 GB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004038/5.573, allocations: 61.8 kB / 2.239 GB, free: 8.832 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.lowerTank.V:DUMMY_DER(fixed = false ) "Actual tank volume" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.upperTank.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "density" type: Real [1] $DER.upperTank.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 9 (overflow.flowModel.states[2].phase,overflow.flowModel.states[1].phase,pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {2 4,3 3,2 4,4 13,4 13,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007025/5.574, allocations: 151.7 kB / 2.239 GB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004313/5.574, allocations: 108.6 kB / 2.239 GB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/5.586, allocations: 5.355 MB / 2.245 GB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-05/5.586, allocations: 31.36 kB / 2.245 GB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/5.586, allocations: 2.656 kB / 2.245 GB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.122e-05/5.586, allocations: 6.891 kB / 2.245 GB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01546/5.601, allocations: 7.393 MB / 2.252 GB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/5.602, allocations: 0 / 2.252 GB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000873/5.602, allocations: 164.2 kB / 2.252 GB, free: 5.477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004549/5.607, allocations: 2.69 MB / 2.255 GB, free: 4.035 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002373/5.607, allocations: 25.19 kB / 2.255 GB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2665/5.874, allocations: 7.141 MB / 2.262 GB, free: 41.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.386e-06/5.874, allocations: 4.5 kB / 2.262 GB, free: 41.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01703/5.891, allocations: 7.085 MB / 2.269 GB, free: 41.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008104/5.892, allocations: 239.7 kB / 2.269 GB, free: 41.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000268/5.892, allocations: 10.77 kB / 2.269 GB, free: 41.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/5.893, allocations: 115 kB / 2.269 GB, free: 41.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000379/5.894, allocations: 180 kB / 2.269 GB, free: 41.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001714/5.894, allocations: 60.12 kB / 2.269 GB, free: 41.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000675/5.895, allocations: 469.7 kB / 2.27 GB, free: 41.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.62e-07/5.895, allocations: 0.8438 kB / 2.27 GB, free: 41.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.008852/5.903, allocations: 1.801 MB / 2.271 GB, free: 41.44 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.h,upperTank.level,lowerTank.medium.h,lowerTank.level) * Number of discrete variables: 21 ($cse3.phase,$cse3.region,$cse7.phase,$cse8.phase,$cse9.phase,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse21.phase,$cse21.region,$cse24.phase,$cse25.phase,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 4,3 6,2 4,4 20,4 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01347/5.917, allocations: 2.563 MB / 2.274 GB, free: 41.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005877/5.923, allocations: 2.556 MB / 2.276 GB, free: 41.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/5.923, allocations: 0 / 2.276 GB, free: 41.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003504/5.926, allocations: 1.722 MB / 2.278 GB, free: 41.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003498/5.93, allocations: 0.5376 MB / 2.279 GB, free: 41.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009237/5.939, allocations: 3.321 MB / 2.282 GB, free: 40.63 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009688/5.94, allocations: 1.415 MB / 2.283 GB, free: 39.91 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001613/5.942, allocations: 331.7 kB / 2.284 GB, free: 39.9 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002905/5.942, allocations: 100.7 kB / 2.284 GB, free: 39.89 MB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/5.942, allocations: 0 / 2.284 GB, free: 39.89 MB / 298.7 MB Notification: Performance of Templates: time 0.09081/6.033, allocations: 62.49 MB / 2.345 GB, free: 27.23 MB / 298.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)