Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7792/0.7792, allocations: 140.1 MB / 156 MB, free: 5.152 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 178.8 kB / 188.5 MB, free: 15.82 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.701/1.701, allocations: 205.4 MB / 426.3 MB, free: 8.434 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009396/0.0009397, allocations: 86.36 kB / 0.4945 GB, free: 8.387 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001666/0.001666, allocations: 262.4 kB / 0.5728 GB, free: 66.21 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005431/0.0005432, allocations: 20 kB / 0.662 GB, free: 6.801 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.4252, allocations: 79.3 MB / 0.7395 GB, free: 46.35 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.418/1.843, allocations: 435.4 MB / 1.165 GB, free: 252.6 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/1.844, allocations: 97.72 kB / 1.165 GB, free: 252.6 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 45.1/46.94, allocations: 10.47 GB / 11.64 GB, free: 54.04 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.625e-06/46.94, allocations: 0 / 11.64 GB, free: 54.04 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.003873/46.95, allocations: 349.4 kB / 11.64 GB, free: 53.97 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1521 * Number of variables: 1521 Notification: Performance of Generate backend data structure: time 0.07171/47.02, allocations: 17.3 MB / 11.65 GB, free: 47.8 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.819e-05/47.02, allocations: 10.03 kB / 11.65 GB, free: 47.8 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0169/47.04, allocations: 2.071 MB / 11.66 GB, free: 47.02 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06259/47.1, allocations: 18.7 MB / 11.67 GB, free: 44.38 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001113/47.1, allocations: 0.5328 MB / 11.68 GB, free: 44.37 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004295/47.1, allocations: 0.707 MB / 11.68 GB, free: 44.37 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02922/47.13, allocations: 8.541 MB / 11.68 GB, free: 43.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006545/47.13, allocations: 23.41 kB / 11.68 GB, free: 43.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003416/47.14, allocations: 249.2 kB / 11.68 GB, free: 43.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002749/47.14, allocations: 152.5 kB / 11.68 GB, free: 43.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02145/47.16, allocations: 6.964 MB / 11.69 GB, free: 43.25 MB / 0.948 GB 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.1006/47.26, allocations: 50.55 MB / 11.74 GB, free: 15.47 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01115/47.27, allocations: 4.911 MB / 11.75 GB, free: 15.32 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007798/47.28, allocations: 3.751 MB / 11.75 GB, free: 15.26 MB / 0.948 GB 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 evalFunc (simulation): time 0.04511/47.32, allocations: 13.56 MB / 11.76 GB, free: 12.2 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009694/47.33, allocations: 3.382 MB / 11.77 GB, free: 12.1 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01568/47.35, allocations: 2.383 MB / 11.77 GB, free: 11.91 MB / 0.948 GB Notification: Performance of pre-optimization done (n=326): time 3.639e-05/47.35, allocations: 0 / 11.77 GB, free: 11.91 MB / 0.948 GB Notification: Performance of matching and sorting (n=514): time 0.1955/47.55, allocations: 53.19 MB / 11.82 GB, free: 18.86 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/47.55, allocations: 108.4 kB / 11.82 GB, free: 18.79 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03506/47.58, allocations: 13.53 MB / 11.83 GB, free: 17.99 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.002237/47.58, allocations: 176.7 kB / 11.83 GB, free: 17.96 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.009067/47.59, allocations: 6.229 MB / 11.84 GB, free: 16.5 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.002729/47.6, allocations: 1.729 MB / 11.84 GB, free: 15.39 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00163/47.6, allocations: 145.2 kB / 11.84 GB, free: 15.39 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0006171/47.6, allocations: 0.5984 MB / 11.84 GB, free: 15.07 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01029/47.61, allocations: 4.696 MB / 11.85 GB, free: 15.02 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01331/47.62, allocations: 7.658 MB / 11.85 GB, free: 11.55 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02335/47.64, allocations: 11.4 MB / 11.87 GB, free: 9.031 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-05/47.64, allocations: 20.72 kB / 11.87 GB, free: 9.027 MB / 0.9636 GB Notification: Performance of matching and sorting (n=957) (initialization): time 0.04648/47.69, allocations: 16.43 MB / 11.88 GB, free: 7.781 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.001985/47.69, allocations: 1.936 MB / 11.88 GB, free: 5.348 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001859/47.69, allocations: 65.62 kB / 11.88 GB, free: 5.344 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01642/47.71, allocations: 4.779 MB / 11.89 GB, free: 5.113 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0111/47.72, allocations: 1.969 MB / 11.89 GB, free: 5.086 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/47.74, allocations: 12.96 MB / 11.9 GB, free: 14.32 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02288/47.76, allocations: 1.206 MB / 11.9 GB, free: 14.2 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003416/47.76, allocations: 493.3 kB / 11.9 GB, free: 14.2 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/47.76, allocations: 7.562 kB / 11.9 GB, free: 14.2 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0418/47.81, allocations: 15 MB / 11.92 GB, free: 13.24 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002998/47.81, allocations: 60.28 kB / 11.92 GB, free: 13.24 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01386/47.82, allocations: 4.553 MB / 11.92 GB, free: 13.05 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009379/47.83, allocations: 1.943 MB / 11.93 GB, free: 12.94 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03042/47.86, allocations: 17.32 MB / 11.94 GB, free: 200 kB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.8303/48.69, allocations: 1.189 MB / 11.94 GB, free: 82.93 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002845/48.69, allocations: 450 kB / 11.94 GB, free: 82.93 MB / 0.9792 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 269 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 725 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {1 4,1 2,1 2,1 2,7 78,7 78} Notification: Performance of prepare postOptimizeDAE: time 0.0106/48.7, allocations: 3.129 MB / 11.95 GB, free: 82.73 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004142/48.71, allocations: 1.198 MB / 11.95 GB, free: 82.73 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04383/48.75, allocations: 14.57 MB / 11.96 GB, free: 82.24 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001601/48.75, allocations: 65.91 kB / 11.96 GB, free: 82.24 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.016e-05/48.75, allocations: 0.6875 kB / 11.96 GB, free: 82.24 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03578/48.79, allocations: 11.92 MB / 11.97 GB, free: 81.64 MB / 0.9792 GB 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 postOpt removeSimpleEquations (simulation): time 0.08788/48.88, allocations: 26.62 MB / 12 GB, free: 79.82 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001016/48.88, allocations: 8.688 kB / 12 GB, free: 79.82 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007451/48.88, allocations: 1.155 MB / 12 GB, free: 79.82 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01204/48.89, allocations: 3.474 MB / 12 GB, free: 79.72 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001577/48.9, allocations: 170 kB / 12 GB, free: 79.72 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01181/48.91, allocations: 11.65 MB / 12.02 GB, free: 73.12 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.285e-05/48.91, allocations: 10.09 kB / 12.02 GB, free: 73.12 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05423/48.96, allocations: 19.52 MB / 12.04 GB, free: 71.99 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01151/48.97, allocations: 2.543 MB / 12.04 GB, free: 71.89 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006912/48.98, allocations: 107.4 kB / 12.04 GB, free: 71.89 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01665/49, allocations: 0.9824 MB / 12.04 GB, free: 71.89 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002335/49, allocations: 399.5 kB / 12.04 GB, free: 71.88 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001829/49, allocations: 252.2 kB / 12.04 GB, free: 71.88 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.02692/49.03, allocations: 9.17 MB / 12.05 GB, free: 71.52 MB / 0.9792 GB Notification: Performance of sort global known variables: time 2.254e-06/49.03, allocations: 0 / 12.05 GB, free: 71.52 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.04788/49.08, allocations: 5.973 MB / 12.05 GB, free: 71.52 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 3 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,heater.outCon.T) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (440): * Single equations (assignments): 415 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {9 78,1 4,1 2,1 2,1 2,1 1,8 77} Notification: Performance of Backend phase and start with SimCode phase: time 0.01309/49.09, allocations: 4.937 MB / 12.06 GB, free: 69.63 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.05304/49.14, allocations: 18.74 MB / 12.08 GB, free: 69.08 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 2.349e-05/49.14, allocations: 9.516 kB / 12.08 GB, free: 69.08 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.01485/49.16, allocations: 5.436 MB / 12.08 GB, free: 68.99 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.06292/49.22, allocations: 5.974 MB / 12.09 GB, free: 68.82 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07934/49.3, allocations: 27.72 MB / 12.12 GB, free: 58.34 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0205/49.32, allocations: 6.821 MB / 12.12 GB, free: 57.23 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.03104/49.35, allocations: 3.876 MB / 12.13 GB, free: 56.6 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007373/49.36, allocations: 0.9434 MB / 12.13 GB, free: 56.59 MB / 0.9792 GB Notification: Performance of SimCode: time 1.092e-06/49.36, allocations: 0 / 12.13 GB, free: 56.59 MB / 0.9792 GB Notification: Performance of Templates: time 2.212/51.57, allocations: 281.4 MB / 12.4 GB, free: 109.3 MB / 1.011 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe 2>&1)