Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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) 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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.426/2.426, allocations: 284.9 MB / 292.4 MB, free: 10.56 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001512/0.001512, allocations: 180.8 kB / 360.6 MB, free: 7.301 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.062/2.062, allocations: 205.3 MB / 0.6191 GB, free: 12.19 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001152/0.001152, allocations: 95.05 kB / 0.7321 GB, free: 44.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.749e-05/2.746e-05, allocations: 4 kB / 0.8509 GB, free: 3.332 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.826/0.826, allocations: 115.3 MB / 0.9634 GB, free: 78.68 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.517/7.343, allocations: 2.121 GB / 3.084 GB, free: 258.6 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002996/7.343, allocations: 96.11 kB / 3.084 GB, free: 258.6 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 10.34/17.68, allocations: 1.962 GB / 5.046 GB, free: 121.2 MB / 0.9792 GB Notification: Performance of FrontEnd: time 2.215e-06/17.68, allocations: 0 / 5.046 GB, free: 121.2 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.0004022/17.68, allocations: 66.72 kB / 5.046 GB, free: 121.2 MB / 0.9792 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.00924/17.69, allocations: 2.614 MB / 5.049 GB, free: 119.9 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/17.69, allocations: 7.594 kB / 5.049 GB, free: 119.9 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008273/17.7, allocations: 0.7959 MB / 5.05 GB, free: 119.7 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00942/17.71, allocations: 2.344 MB / 5.052 GB, free: 119.2 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.782e-05/17.71, allocations: 53.41 kB / 5.052 GB, free: 119.2 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004917/17.71, allocations: 100 kB / 5.052 GB, free: 119.2 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00366/17.71, allocations: 1.261 MB / 5.053 GB, free: 119.2 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003882/17.72, allocations: 1.5 MB / 5.055 GB, free: 118.9 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.295e-05/17.72, allocations: 8.125 kB / 5.055 GB, free: 118.9 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002132/17.72, allocations: 0 / 5.055 GB, free: 118.9 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.307e-05/17.72, allocations: 52.16 kB / 5.055 GB, free: 118.9 MB / 0.9792 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.01649/17.73, allocations: 7.789 MB / 5.063 GB, free: 114.9 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002314/17.74, allocations: 1.616 MB / 5.064 GB, free: 113.7 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/17.74, allocations: 0.5338 MB / 5.065 GB, free: 113.5 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000651/17.74, allocations: 218.8 kB / 5.065 GB, free: 113.3 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/17.74, allocations: 0.5483 MB / 5.065 GB, free: 113 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001428/17.74, allocations: 89.52 kB / 5.065 GB, free: 113 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=102): time 6.613e-06/17.74, allocations: 0 / 5.065 GB, free: 113 MB / 0.9792 GB Notification: Performance of matching and sorting (n=105): time 0.009987/17.75, allocations: 2.779 MB / 5.068 GB, free: 111.6 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/17.75, allocations: 166.8 kB / 5.068 GB, free: 111.4 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002415/17.75, allocations: 1.197 MB / 5.069 GB, free: 110.9 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0003748/17.75, allocations: 33.33 kB / 5.07 GB, free: 110.9 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.00106/17.75, allocations: 0.9594 MB / 5.07 GB, free: 110.1 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005335/17.75, allocations: 353.1 kB / 5.071 GB, free: 109.9 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.095e-05/17.75, allocations: 0 / 5.071 GB, free: 109.9 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001103/17.75, allocations: 351.2 kB / 5.071 GB, free: 109.5 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009666/17.76, allocations: 428.1 kB / 5.072 GB, free: 109.4 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001212/17.76, allocations: 0.7716 MB / 5.072 GB, free: 108.7 MB / 0.9792 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.008333/17.77, allocations: 1.8 MB / 5.074 GB, free: 108.1 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/17.77, allocations: 3.969 kB / 5.074 GB, free: 108.1 MB / 0.9792 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004022/17.77, allocations: 1.408 MB / 5.075 GB, free: 107.6 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006724/17.77, allocations: 3.039 MB / 5.078 GB, free: 104.3 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.7e-05/17.77, allocations: 10.84 kB / 5.078 GB, free: 104.3 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002508/17.77, allocations: 47.67 kB / 5.078 GB, free: 104.3 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002344/17.77, allocations: 279.1 kB / 5.079 GB, free: 104.3 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/17.77, allocations: 1.437 MB / 5.08 GB, free: 102.9 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003391/17.78, allocations: 130.8 kB / 5.08 GB, free: 102.9 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002508/17.78, allocations: 60.73 kB / 5.08 GB, free: 102.9 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/17.78, allocations: 12.33 kB / 5.08 GB, free: 102.9 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003374/17.78, allocations: 1.168 MB / 5.081 GB, free: 102.5 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.03e-05/17.78, allocations: 10.19 kB / 5.081 GB, free: 102.5 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000174/17.78, allocations: 45.16 kB / 5.081 GB, free: 102.5 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002155/17.78, allocations: 278.2 kB / 5.082 GB, free: 102.4 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/17.78, allocations: 1.444 MB / 5.083 GB, free: 101 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00333/17.79, allocations: 139.4 kB / 5.083 GB, free: 101 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002407/17.79, allocations: 63.83 kB / 5.083 GB, free: 101 MB / 0.9792 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: 33 * 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 (148): * Single equations (assignments): 143 * 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.0004827/17.79, allocations: 148.8 kB / 5.084 GB, free: 100.9 MB / 0.9792 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003205/17.79, allocations: 1.125 MB / 5.085 GB, free: 100.4 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004694/17.79, allocations: 192.2 kB / 5.085 GB, free: 100.3 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003543/17.8, allocations: 1.212 MB / 5.086 GB, free: 99.81 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/17.8, allocations: 10.78 kB / 5.086 GB, free: 99.81 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/17.8, allocations: 2.188 kB / 5.086 GB, free: 99.81 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002501/17.8, allocations: 0.9826 MB / 5.087 GB, free: 99.41 MB / 0.9792 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.008469/17.81, allocations: 3.155 MB / 5.09 GB, free: 97.84 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/17.81, allocations: 0 / 5.09 GB, free: 97.84 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002085/17.81, allocations: 235 kB / 5.09 GB, free: 97.82 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003487/17.81, allocations: 74.73 kB / 5.09 GB, free: 97.78 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/17.81, allocations: 20.11 kB / 5.09 GB, free: 97.78 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00223/17.81, allocations: 2.652 MB / 5.093 GB, free: 95.21 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/17.81, allocations: 0 / 5.093 GB, free: 95.21 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004518/17.82, allocations: 1.949 MB / 5.095 GB, free: 94.2 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/17.82, allocations: 365.8 kB / 5.095 GB, free: 93.94 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00036/17.82, allocations: 10.09 kB / 5.095 GB, free: 93.94 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002503/17.82, allocations: 133.9 kB / 5.095 GB, free: 93.93 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002352/17.82, allocations: 76.34 kB / 5.095 GB, free: 93.92 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/17.82, allocations: 41.05 kB / 5.095 GB, free: 93.91 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.001822/17.82, allocations: 0.9032 MB / 5.096 GB, free: 93.49 MB / 0.9792 GB Notification: Performance of sort global known variables: time 6.92e-07/17.82, allocations: 0 / 5.096 GB, free: 93.49 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.006388/17.83, allocations: 1.174 MB / 5.097 GB, free: 93.26 MB / 0.9792 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) * 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.01145/17.84, allocations: 6.305 MB / 5.104 GB, free: 89.66 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.004987/17.85, allocations: 2.134 MB / 5.106 GB, free: 87.59 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/17.85, allocations: 0 / 5.106 GB, free: 87.59 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.001522/17.85, allocations: 0.7158 MB / 5.106 GB, free: 86.89 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007709/17.86, allocations: 0.9358 MB / 5.107 GB, free: 86.24 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01304/17.87, allocations: 3.65 MB / 5.111 GB, free: 83.22 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001441/17.87, allocations: 1.635 MB / 5.112 GB, free: 81.91 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.005669/17.88, allocations: 0.6903 MB / 5.113 GB, free: 81.48 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001873/17.88, allocations: 0.8189 MB / 5.114 GB, free: 80.73 MB / 0.9792 GB Notification: Performance of SimCode: time 1.192e-06/17.88, allocations: 0 / 5.114 GB, free: 80.73 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1934/18.07, allocations: 75.53 MB / 5.188 GB, free: 8.973 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000278/18.07, allocations: 172.2 kB / 5.188 GB, free: 8.777 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.414/24.49, allocations: 4 kB / 5.188 GB, free: 8.773 MB / 0.9792 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1)