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.8078/0.8078, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 183.4 kB / 187.3 MB, free: 11.91 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.548/1.548, allocations: 221.3 MB / 441.4 MB, free: 4.648 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.0009249/0.0009251, allocations: 91.94 kB / 0.5124 GB, free: 24.21 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001855/0.001855, allocations: 264.6 kB / 0.5939 GB, free: 7.98 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.953e-05/3.955e-05, allocations: 4 kB / 0.6834 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5231/0.5232, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.651/5.175, allocations: 1.914 GB / 2.678 GB, free: 92.54 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/5.175, allocations: 97.7 kB / 2.678 GB, free: 92.5 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.536/12.71, allocations: 2.001 GB / 4.68 GB, free: 424 kB / 0.7448 GB Notification: Performance of FrontEnd: time 2.054e-06/12.71, allocations: 4 kB / 4.68 GB, free: 420 kB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0003242/12.71, allocations: 71.8 kB / 4.68 GB, free: 348 kB / 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.6841/13.4, allocations: 2.538 MB / 4.682 GB, free: 78.3 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 6.163e-05/13.4, allocations: 9.781 kB / 4.682 GB, free: 78.3 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006764/13.4, allocations: 0.8006 MB / 4.683 GB, free: 78.16 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009239/13.41, allocations: 2.299 MB / 4.685 GB, free: 77.79 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/13.41, allocations: 121.8 kB / 4.685 GB, free: 77.79 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006273/13.41, allocations: 163.8 kB / 4.686 GB, free: 77.78 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003877/13.42, allocations: 1.682 MB / 4.687 GB, free: 77.58 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.083e-05/13.42, allocations: 1.031 kB / 4.687 GB, free: 77.58 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001659/13.42, allocations: 64.14 kB / 4.687 GB, free: 77.58 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.591e-05/13.42, allocations: 53.02 kB / 4.687 GB, free: 77.57 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002318/13.42, allocations: 1.331 MB / 4.689 GB, free: 77.56 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.01309/13.43, allocations: 8.099 MB / 4.697 GB, free: 73.76 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/13.43, allocations: 1.603 MB / 4.698 GB, free: 72.97 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008921/13.43, allocations: 0.5718 MB / 4.699 GB, free: 72.96 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004897/13.44, allocations: 214.6 kB / 4.699 GB, free: 72.77 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009593/13.44, allocations: 0.5779 MB / 4.699 GB, free: 72.71 MB / 0.7448 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001478/13.44, allocations: 122.3 kB / 4.7 GB, free: 72.69 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=104): time 4.117e-06/13.44, allocations: 0 / 4.7 GB, free: 72.69 MB / 0.7448 GB Notification: Performance of matching and sorting (n=107): time 0.006138/13.44, allocations: 2.706 MB / 4.702 GB, free: 72.01 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.957e-05/13.44, allocations: 114.2 kB / 4.702 GB, free: 71.88 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002185/13.45, allocations: 1.289 MB / 4.704 GB, free: 71.66 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001459/13.45, allocations: 53.61 kB / 4.704 GB, free: 71.63 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.001035/13.45, allocations: 0.9435 MB / 4.705 GB, free: 71.39 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003876/13.45, allocations: 377.8 kB / 4.705 GB, free: 71.2 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.655e-05/13.45, allocations: 29.41 kB / 4.705 GB, free: 71.2 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001141/13.45, allocations: 351.1 kB / 4.705 GB, free: 70.89 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000658/13.45, allocations: 422.7 kB / 4.706 GB, free: 70.89 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009125/13.45, allocations: 0.7758 MB / 4.706 GB, free: 70.5 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.008608/13.46, allocations: 2.134 MB / 4.709 GB, free: 70.32 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/13.46, allocations: 4.125 kB / 4.709 GB, free: 70.32 MB / 0.7448 GB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002913/13.46, allocations: 1.435 MB / 4.71 GB, free: 70.12 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007234/13.46, allocations: 2.948 MB / 4.713 GB, free: 67.07 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.829e-05/13.46, allocations: 6.281 kB / 4.713 GB, free: 67.07 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001918/13.46, allocations: 46.73 kB / 4.713 GB, free: 67.06 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/13.46, allocations: 284.9 kB / 4.713 GB, free: 67.06 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/13.46, allocations: 1.498 MB / 4.715 GB, free: 65.73 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002518/13.47, allocations: 160.5 kB / 4.715 GB, free: 65.73 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/13.47, allocations: 60.08 kB / 4.715 GB, free: 65.73 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/13.47, allocations: 6.344 kB / 4.715 GB, free: 65.73 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001976/13.47, allocations: 1.24 MB / 4.716 GB, free: 65.66 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/13.47, allocations: 6.531 kB / 4.716 GB, free: 65.66 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001309/13.47, allocations: 42.02 kB / 4.716 GB, free: 65.65 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/13.47, allocations: 285 kB / 4.716 GB, free: 65.65 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/13.47, allocations: 1.495 MB / 4.718 GB, free: 64.32 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00241/13.47, allocations: 158.1 kB / 4.718 GB, free: 64.31 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/13.47, allocations: 61.11 kB / 4.718 GB, free: 64.31 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.000411/13.47, allocations: 176.7 kB / 4.718 GB, free: 64.2 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003649/13.47, allocations: 193.6 kB / 4.718 GB, free: 64.11 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0025/13.48, allocations: 1.251 MB / 4.72 GB, free: 64.01 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.301e-05/13.48, allocations: 14.62 kB / 4.72 GB, free: 64.01 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/13.48, allocations: 6.922 kB / 4.72 GB, free: 64.01 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001465/13.48, allocations: 1.001 MB / 4.721 GB, free: 63.91 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.006456/13.49, allocations: 3.391 MB / 4.724 GB, free: 63.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/13.49, allocations: 0 / 4.724 GB, free: 63.23 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/13.49, allocations: 231.8 kB / 4.724 GB, free: 63.23 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002394/13.49, allocations: 78.55 kB / 4.724 GB, free: 63.22 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.351e-05/13.49, allocations: 29.45 kB / 4.724 GB, free: 63.22 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/13.49, allocations: 2.75 MB / 4.727 GB, free: 60.71 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/13.49, allocations: 3.625 kB / 4.727 GB, free: 60.71 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003169/13.49, allocations: 1.965 MB / 4.729 GB, free: 60.3 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/13.49, allocations: 371.6 kB / 4.729 GB, free: 60.11 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002349/13.49, allocations: 26.44 kB / 4.729 GB, free: 60.11 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/13.49, allocations: 153.6 kB / 4.729 GB, free: 60.1 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/13.49, allocations: 76.84 kB / 4.729 GB, free: 60.1 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/13.49, allocations: 37.72 kB / 4.729 GB, free: 60.1 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.001816/13.5, allocations: 1.001 MB / 4.73 GB, free: 59.94 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.51e-07/13.5, allocations: 0 / 4.73 GB, free: 59.94 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.005126/13.5, allocations: 1.252 MB / 4.732 GB, free: 59.94 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.006158/13.51, allocations: 3.438 MB / 4.735 GB, free: 58.63 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.004046/13.51, allocations: 2.143 MB / 4.737 GB, free: 58.26 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/13.51, allocations: 7.328 kB / 4.737 GB, free: 58.26 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.00112/13.51, allocations: 0.7609 MB / 4.738 GB, free: 58.04 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005764/13.52, allocations: 0.9523 MB / 4.739 GB, free: 58.01 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007692/13.53, allocations: 3.16 MB / 4.742 GB, free: 57.21 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/13.53, allocations: 1.623 MB / 4.743 GB, free: 56.47 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.003713/13.53, allocations: 0.6931 MB / 4.744 GB, free: 56.45 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004139/13.53, allocations: 120.5 kB / 4.744 GB, free: 56.45 MB / 0.7448 GB Notification: Performance of SimCode: time 2.064e-06/13.53, allocations: 0 / 4.744 GB, free: 56.45 MB / 0.7448 GB Notification: Performance of Templates: time 0.1402/13.67, allocations: 78.57 MB / 4.821 GB, free: 53.29 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)