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 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.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.7604/0.7604, allocations: 140.1 MB / 156 MB, free: 5.172 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.0009882/0.0009881, allocations: 174.4 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.53/1.53, allocations: 205.4 MB / 426.3 MB, free: 8.461 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.0008943/0.0008943, allocations: 74.39 kB / 0.4945 GB, free: 8.41 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001678/0.001678, allocations: 274 kB / 0.5728 GB, free: 66.22 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007075/0.0007076, allocations: 23.98 kB / 0.662 GB, free: 6.805 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4521/0.4529, allocations: 79.29 MB / 0.7395 GB, free: 46.36 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.527/4.98, allocations: 2.092 GB / 2.831 GB, free: 237.1 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/4.981, allocations: 95.06 kB / 2.831 GB, free: 237 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 6.536/11.52, allocations: 1.958 GB / 4.789 GB, free: 70.91 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.645e-06/11.52, allocations: 0 / 4.789 GB, free: 70.91 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.0004793/11.52, allocations: 64.88 kB / 4.79 GB, free: 70.89 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 0.01001/11.53, allocations: 3.118 MB / 4.793 GB, free: 69.55 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/11.53, allocations: 8.719 kB / 4.793 GB, free: 69.55 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005138/11.53, allocations: 0.798 MB / 4.793 GB, free: 69.41 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005821/11.54, allocations: 2.403 MB / 4.796 GB, free: 68.84 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/11.54, allocations: 123.4 kB / 4.796 GB, free: 68.84 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004704/11.54, allocations: 163.2 kB / 4.796 GB, free: 68.84 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003851/11.54, allocations: 1.811 MB / 4.798 GB, free: 68.6 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.295e-05/11.54, allocations: 10.22 kB / 4.798 GB, free: 68.6 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001905/11.54, allocations: 61.72 kB / 4.798 GB, free: 68.6 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.723e-05/11.54, allocations: 53.16 kB / 4.798 GB, free: 68.59 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00288/11.55, allocations: 1.461 MB / 4.799 GB, free: 68.58 MB / 0.7292 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.01041/11.56, allocations: 8.084 MB / 4.807 GB, free: 64.68 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001968/11.56, allocations: 1.748 MB / 4.809 GB, free: 63.89 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009697/11.56, allocations: 0.6093 MB / 4.809 GB, free: 63.89 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003916/11.56, allocations: 213.2 kB / 4.81 GB, free: 63.7 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001043/11.56, allocations: 0.6383 MB / 4.81 GB, free: 63.64 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001017/11.56, allocations: 120 kB / 4.81 GB, free: 63.6 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=102): time 5.721e-06/11.56, allocations: 0 / 4.81 GB, free: 63.6 MB / 0.7292 GB Notification: Performance of matching and sorting (n=105): time 0.00728/11.57, allocations: 3.463 MB / 4.814 GB, free: 62.77 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/11.57, allocations: 174.8 kB / 4.814 GB, free: 62.59 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002185/11.57, allocations: 1.534 MB / 4.815 GB, free: 62.37 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0001404/11.57, allocations: 66.28 kB / 4.816 GB, free: 62.34 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007337/11.57, allocations: 0.9665 MB / 4.816 GB, free: 62 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002636/11.57, allocations: 365.8 kB / 4.817 GB, free: 61.77 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.854e-05/11.57, allocations: 26.56 kB / 4.817 GB, free: 61.77 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.294e-05/11.57, allocations: 353.5 kB / 4.817 GB, free: 61.46 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008859/11.57, allocations: 499.7 kB / 4.818 GB, free: 61.46 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/11.57, allocations: 0.8721 MB / 4.819 GB, free: 61.04 MB / 0.7292 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.009979/11.58, allocations: 3.528 MB / 4.822 GB, free: 60.54 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.146e-06/11.58, allocations: 6.469 kB / 4.822 GB, free: 60.54 MB / 0.7292 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.002796/11.59, allocations: 1.593 MB / 4.824 GB, free: 60.35 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001563/11.59, allocations: 344.5 kB / 4.824 GB, free: 59.96 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/11.59, allocations: 14.92 kB / 4.824 GB, free: 59.95 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001539/11.59, allocations: 44.56 kB / 4.824 GB, free: 59.95 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/11.59, allocations: 284.9 kB / 4.824 GB, free: 59.95 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009119/11.59, allocations: 1.501 MB / 4.826 GB, free: 58.61 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001881/11.59, allocations: 158.9 kB / 4.826 GB, free: 58.6 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/11.59, allocations: 63.78 kB / 4.826 GB, free: 58.6 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 7.504e-06/11.59, allocations: 7.656 kB / 4.826 GB, free: 58.6 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002361/11.59, allocations: 1.393 MB / 4.827 GB, free: 58.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.43e-05/11.59, allocations: 16.14 kB / 4.827 GB, free: 58.54 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001051/11.59, allocations: 46.92 kB / 4.827 GB, free: 58.53 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/11.6, allocations: 279.6 kB / 4.828 GB, free: 58.53 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008782/11.6, allocations: 1.497 MB / 4.829 GB, free: 57.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001854/11.6, allocations: 164.6 kB / 4.829 GB, free: 57.19 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/11.6, allocations: 59.25 kB / 4.829 GB, free: 57.19 MB / 0.7292 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: 34 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.TSet.T_start,$PRE.TSet.count,$whenCondition1,TSet.T_start,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 144 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.001222/11.6, allocations: 0.5959 MB / 4.83 GB, free: 56.99 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003497/11.6, allocations: 197.1 kB / 4.83 GB, free: 56.89 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002726/11.6, allocations: 1.353 MB / 4.831 GB, free: 56.8 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.437e-06/11.6, allocations: 10.72 kB / 4.831 GB, free: 56.8 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/11.6, allocations: 3.938 kB / 4.831 GB, free: 56.79 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001946/11.6, allocations: 1.1 MB / 4.832 GB, free: 56.69 MB / 0.7292 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.006101/11.61, allocations: 3.476 MB / 4.836 GB, free: 56 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/11.61, allocations: 3.656 kB / 4.836 GB, free: 56 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/11.61, allocations: 229.1 kB / 4.836 GB, free: 56 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002066/11.61, allocations: 74.56 kB / 4.836 GB, free: 55.98 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.364e-05/11.61, allocations: 35.44 kB / 4.836 GB, free: 55.98 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00149/11.61, allocations: 2.747 MB / 4.839 GB, free: 53.48 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/11.61, allocations: 3.094 kB / 4.839 GB, free: 53.48 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003213/11.62, allocations: 2.069 MB / 4.841 GB, free: 53.15 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008016/11.62, allocations: 375.5 kB / 4.841 GB, free: 52.96 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003306/11.62, allocations: 29.88 kB / 4.841 GB, free: 52.96 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001469/11.62, allocations: 161.9 kB / 4.841 GB, free: 52.95 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/11.62, allocations: 71.28 kB / 4.841 GB, free: 52.95 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.537e-05/11.62, allocations: 42.38 kB / 4.841 GB, free: 52.95 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.001551/11.62, allocations: 1.036 MB / 4.842 GB, free: 52.8 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.11e-07/11.62, allocations: 3.844 kB / 4.842 GB, free: 52.8 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.004231/11.63, allocations: 1.291 MB / 4.844 GB, free: 52.74 MB / 0.7292 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.x[1],mov.filter.x[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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 99 * 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.00484/11.63, allocations: 3.484 MB / 4.847 GB, free: 51.31 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.003915/11.63, allocations: 2.347 MB / 4.849 GB, free: 50.88 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/11.63, allocations: 3.844 kB / 4.849 GB, free: 50.88 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001168/11.64, allocations: 0.811 MB / 4.85 GB, free: 50.65 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004583/11.64, allocations: 0.9758 MB / 4.851 GB, free: 50.61 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008098/11.65, allocations: 4.826 MB / 4.856 GB, free: 48.62 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001524/11.65, allocations: 1.587 MB / 4.857 GB, free: 47.89 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.002434/11.65, allocations: 0.5167 MB / 4.858 GB, free: 47.87 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004334/11.65, allocations: 152.5 kB / 4.858 GB, free: 47.87 MB / 0.7292 GB Notification: Performance of SimCode: time 3.91e-07/11.65, allocations: 0 / 4.858 GB, free: 47.87 MB / 0.7292 GB Notification: Performance of Templates: time 0.09597/11.75, allocations: 69.51 MB / 4.926 GB, free: 7.137 MB / 0.7292 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)