Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 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.HeatExchangers.Examples.AirHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8748/0.8748, allocations: 141.8 MB / 149.3 MB, free: 9.203 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 175.8 kB / 182.2 MB, free: 9.465 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 221.5 MB / 436.4 MB, free: 13.27 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008516/0.0008516, allocations: 88.09 kB / 0.5074 GB, free: 10.11 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001796/0.001796, allocations: 275.8 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.297e-05/2.299e-05, allocations: 0 / 0.6765 GB, free: 12.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.446/0.446, allocations: 82.78 MB / 0.7574 GB, free: 32.01 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.952/5.398, allocations: 1.913 GB / 2.671 GB, free: 104.9 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/5.398, allocations: 102.5 kB / 2.671 GB, free: 104.8 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.728/13.13, allocations: 1.981 GB / 4.651 GB, free: 42.96 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.164e-06/13.13, allocations: 3.938 kB / 4.651 GB, free: 42.95 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0004916/13.13, allocations: 55.98 kB / 4.652 GB, free: 42.9 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 377 * Number of variables: 377 Notification: Performance of Generate backend data structure: time 0.009259/13.14, allocations: 2.547 MB / 4.654 GB, free: 40.28 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/13.14, allocations: 12.03 kB / 4.654 GB, free: 40.27 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006115/13.14, allocations: 0.7892 MB / 4.655 GB, free: 39.48 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007504/13.15, allocations: 2.306 MB / 4.657 GB, free: 37.12 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/13.15, allocations: 52 kB / 4.657 GB, free: 37.07 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006475/13.15, allocations: 96 kB / 4.657 GB, free: 36.98 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003313/13.15, allocations: 1.267 MB / 4.658 GB, free: 35.71 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00372/13.16, allocations: 1.466 MB / 4.66 GB, free: 34.18 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.018e-05/13.16, allocations: 3.938 kB / 4.66 GB, free: 34.17 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002388/13.16, allocations: 0 / 4.66 GB, free: 34.17 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.025e-05/13.16, allocations: 58.88 kB / 4.66 GB, free: 34.11 MB / 0.7448 GB 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.01332/13.17, allocations: 7.846 MB / 4.668 GB, free: 25.7 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001492/13.17, allocations: 1.592 MB / 4.669 GB, free: 23.96 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007839/13.17, allocations: 0.5508 MB / 4.67 GB, free: 23.41 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004736/13.17, allocations: 211.5 kB / 4.67 GB, free: 23.17 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008553/13.18, allocations: 0.5535 MB / 4.67 GB, free: 22.61 MB / 0.7448 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001267/13.18, allocations: 91.22 kB / 4.67 GB, free: 22.52 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=104): time 4.969e-06/13.18, allocations: 0 / 4.67 GB, free: 22.52 MB / 0.7448 GB Notification: Performance of matching and sorting (n=107): time 0.0074/13.18, allocations: 2.772 MB / 4.673 GB, free: 19.68 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/13.18, allocations: 120.1 kB / 4.673 GB, free: 19.54 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002643/13.19, allocations: 1.178 MB / 4.674 GB, free: 18.37 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001459/13.19, allocations: 29.7 kB / 4.674 GB, free: 18.33 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.001039/13.19, allocations: 0.9363 MB / 4.675 GB, free: 17.38 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003317/13.19, allocations: 362.6 kB / 4.676 GB, free: 17.02 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.672e-05/13.19, allocations: 3.938 kB / 4.676 GB, free: 17.02 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.00011/13.19, allocations: 353.9 kB / 4.676 GB, free: 16.67 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006005/13.19, allocations: 410.5 kB / 4.676 GB, free: 16.27 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008947/13.19, allocations: 0.7486 MB / 4.677 GB, free: 15.37 MB / 0.7448 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (hea.vol.dynBal.p_start = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.005379/13.2, allocations: 1.757 MB / 4.679 GB, free: 13.6 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/13.2, allocations: 4 kB / 4.679 GB, free: 13.6 MB / 0.7448 GB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003043/13.2, allocations: 1.374 MB / 4.68 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.00132/13.2, allocations: 2.937 MB / 4.683 GB, free: 9.039 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.068e-05/13.2, allocations: 8 kB / 4.683 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001905/13.2, allocations: 44.78 kB / 4.683 GB, free: 8.984 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/13.2, allocations: 287.6 kB / 4.683 GB, free: 8.703 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/13.2, allocations: 1.447 MB / 4.685 GB, free: 7.137 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002299/13.2, allocations: 127.8 kB / 4.685 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001636/13.2, allocations: 51.98 kB / 4.685 GB, free: 6.961 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/13.21, allocations: 8.875 kB / 4.685 GB, free: 6.953 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002284/13.21, allocations: 1.144 MB / 4.686 GB, free: 5.805 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/13.21, allocations: 8 kB / 4.686 GB, free: 5.797 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001228/13.21, allocations: 48.84 kB / 4.686 GB, free: 5.746 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/13.21, allocations: 284.1 kB / 4.687 GB, free: 5.469 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001238/13.21, allocations: 1.443 MB / 4.688 GB, free: 3.91 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002256/13.21, allocations: 135.7 kB / 4.688 GB, free: 3.777 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/13.21, allocations: 51.98 kB / 4.688 GB, free: 3.727 MB / 0.7448 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: vol.dynBal.medium.p = vol.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 144 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003747/13.21, allocations: 137.5 kB / 4.688 GB, free: 3.586 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005523/13.21, allocations: 193.8 kB / 4.688 GB, free: 3.395 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002946/13.22, allocations: 1.217 MB / 4.69 GB, free: 2.164 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/13.22, allocations: 12 kB / 4.69 GB, free: 2.152 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/13.22, allocations: 4 kB / 4.69 GB, free: 2.148 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001787/13.22, allocations: 0.9883 MB / 4.691 GB, free: 1.141 MB / 0.7448 GB 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 postOpt removeSimpleEquations (simulation): time 0.7089/13.93, allocations: 3.194 MB / 4.694 GB, free: 84.32 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/13.93, allocations: 0.9375 kB / 4.694 GB, free: 84.32 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/13.93, allocations: 236.7 kB / 4.694 GB, free: 84.32 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003128/13.93, allocations: 72.94 kB / 4.694 GB, free: 84.31 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.064e-05/13.93, allocations: 16.28 kB / 4.694 GB, free: 84.31 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002176/13.93, allocations: 2.658 MB / 4.697 GB, free: 81.95 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/13.93, allocations: 5.281 kB / 4.697 GB, free: 81.95 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004101/13.94, allocations: 1.948 MB / 4.699 GB, free: 81.64 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/13.94, allocations: 375.1 kB / 4.699 GB, free: 81.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002302/13.94, allocations: 8.234 kB / 4.699 GB, free: 81.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/13.94, allocations: 140 kB / 4.699 GB, free: 81.55 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002184/13.94, allocations: 76.75 kB / 4.699 GB, free: 81.54 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-05/13.94, allocations: 38.3 kB / 4.699 GB, free: 81.54 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.001718/13.94, allocations: 0.8921 MB / 4.7 GB, free: 81.43 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.282e-06/13.94, allocations: 0 / 4.7 GB, free: 81.43 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.004586/13.94, allocations: 1.12 MB / 4.701 GB, free: 81.43 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (vol.dynBal.U,vol.dynBal.mXi[1],mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U,hea.vol.dynBal.m,hea.vol.dynBal.mXi[1]) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005811/13.95, allocations: 3.607 MB / 4.705 GB, free: 80.17 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.003338/13.95, allocations: 2.04 MB / 4.707 GB, free: 79.81 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/13.95, allocations: 3 kB / 4.707 GB, free: 79.81 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0009927/13.95, allocations: 0.7215 MB / 4.707 GB, free: 79.61 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005289/13.96, allocations: 0.9178 MB / 4.708 GB, free: 79.59 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007252/13.97, allocations: 3.101 MB / 4.711 GB, free: 78.81 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001356/13.97, allocations: 1.621 MB / 4.713 GB, free: 78.07 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.003683/13.97, allocations: 0.6828 MB / 4.713 GB, free: 78.05 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004665/13.97, allocations: 113.9 kB / 4.714 GB, free: 78.05 MB / 0.7448 GB Notification: Performance of SimCode: time 9.22e-07/13.97, allocations: 0 / 4.714 GB, free: 78.05 MB / 0.7448 GB Notification: Performance of Templates: time 0.08627/14.06, allocations: 52.31 MB / 4.765 GB, free: 75.93 MB / 0.7448 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1)