Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.197/2.197, allocations: 390.3 MB / 405.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 182.4 kB / 498.1 MB, free: 5.691 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 223.2 MB / 0.7948 GB, free: 17.89 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009217/0.0009217, allocations: 96.33 kB / 0.9346 GB, free: 6.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003495, allocations: 10.38 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2681, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.105/4.373, allocations: 1.954 GB / 3.177 GB, free: 57.96 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/4.373, allocations: 103.6 kB / 3.177 GB, free: 57.86 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 7.747/12.12, allocations: 2.005 GB / 5.182 GB, free: 181.4 MB / 1.182 GB Notification: Performance of FrontEnd: time 2.926e-06/12.12, allocations: 0 / 5.182 GB, free: 181.4 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0004894/12.12, allocations: 58.2 kB / 5.182 GB, free: 181.4 MB / 1.182 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.01168/12.13, allocations: 3.088 MB / 5.185 GB, free: 180.2 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/12.13, allocations: 10.03 kB / 5.185 GB, free: 180.2 MB / 1.182 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001064/12.13, allocations: 217 kB / 5.185 GB, free: 180.1 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006772/12.14, allocations: 0.8805 MB / 5.186 GB, free: 180 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008703/12.15, allocations: 2.393 MB / 5.188 GB, free: 179.5 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002027/12.15, allocations: 116.5 kB / 5.189 GB, free: 179.5 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007754/12.15, allocations: 164 kB / 5.189 GB, free: 179.5 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005593/12.16, allocations: 1.779 MB / 5.191 GB, free: 179.3 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.889e-05/12.16, allocations: 3 kB / 5.191 GB, free: 179.3 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004404/12.16, allocations: 64.56 kB / 5.191 GB, free: 179.3 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.752e-05/12.16, allocations: 53.98 kB / 5.191 GB, free: 179.3 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004064/12.16, allocations: 1.506 MB / 5.192 GB, free: 179.3 MB / 1.182 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.01642/12.18, allocations: 8.165 MB / 5.2 GB, free: 175.4 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002745/12.18, allocations: 1.782 MB / 5.202 GB, free: 174.6 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005344/12.18, allocations: 219.3 kB / 5.202 GB, free: 174.4 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001371/12.18, allocations: 0.6599 MB / 5.203 GB, free: 174.4 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001425/12.18, allocations: 123 kB / 5.203 GB, free: 174.3 MB / 1.182 GB Notification: Performance of pre-optimization done (n=104): time 8.436e-06/12.18, allocations: 0 / 5.203 GB, free: 174.3 MB / 1.182 GB Notification: Performance of matching and sorting (n=107): time 0.009455/12.19, allocations: 3.599 MB / 5.206 GB, free: 173.5 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.266e-05/12.19, allocations: 119.9 kB / 5.206 GB, free: 173.4 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00304/12.2, allocations: 1.314 MB / 5.208 GB, free: 173.2 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0001741/12.2, allocations: 53.98 kB / 5.208 GB, free: 173.2 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.001137/12.2, allocations: 0.9522 MB / 5.209 GB, free: 172.8 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003913/12.2, allocations: 378.6 kB / 5.209 GB, free: 172.6 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.11e-05/12.2, allocations: 24.08 kB / 5.209 GB, free: 172.6 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0001258/12.2, allocations: 356.4 kB / 5.209 GB, free: 172.3 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/12.2, allocations: 0.4942 MB / 5.21 GB, free: 172.3 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001296/12.2, allocations: 0.8359 MB / 5.211 GB, free: 171.9 MB / 1.182 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.009753/12.21, allocations: 2.378 MB / 5.213 GB, free: 171.8 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-05/12.21, allocations: 3.75 kB / 5.213 GB, free: 171.8 MB / 1.182 GB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003696/12.21, allocations: 1.605 MB / 5.215 GB, free: 171.6 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008063/12.21, allocations: 2.952 MB / 5.217 GB, free: 168.5 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/12.21, allocations: 8.875 kB / 5.217 GB, free: 168.5 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002211/12.22, allocations: 53.69 kB / 5.218 GB, free: 168.5 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/12.22, allocations: 293.4 kB / 5.218 GB, free: 168.5 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/12.22, allocations: 1.582 MB / 5.219 GB, free: 167.2 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002525/12.22, allocations: 184.5 kB / 5.22 GB, free: 167.1 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/12.22, allocations: 62.38 kB / 5.22 GB, free: 167.1 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/12.22, allocations: 3.5 kB / 5.22 GB, free: 167.1 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002812/12.22, allocations: 1.412 MB / 5.221 GB, free: 167.1 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/12.22, allocations: 7.688 kB / 5.221 GB, free: 167.1 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001403/12.22, allocations: 56.98 kB / 5.221 GB, free: 167.1 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/12.22, allocations: 289.5 kB / 5.221 GB, free: 167.1 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001103/12.23, allocations: 1.586 MB / 5.223 GB, free: 165.7 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/12.23, allocations: 190 kB / 5.223 GB, free: 165.7 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/12.23, allocations: 56.88 kB / 5.223 GB, free: 165.7 MB / 1.182 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * 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%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001548/12.23, allocations: 0.5886 MB / 5.224 GB, free: 165.5 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006036/12.23, allocations: 187.4 kB / 5.224 GB, free: 165.4 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003317/12.23, allocations: 1.424 MB / 5.225 GB, free: 165.3 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/12.23, allocations: 11.28 kB / 5.225 GB, free: 165.3 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/12.23, allocations: 3.75 kB / 5.225 GB, free: 165.3 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002208/12.24, allocations: 1.17 MB / 5.226 GB, free: 165.2 MB / 1.182 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.008399/12.24, allocations: 3.557 MB / 5.23 GB, free: 164.6 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/12.24, allocations: 0 / 5.23 GB, free: 164.6 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/12.25, allocations: 235.3 kB / 5.23 GB, free: 164.6 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002701/12.25, allocations: 83.39 kB / 5.23 GB, free: 164.6 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/12.25, allocations: 29.23 kB / 5.23 GB, free: 164.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001917/12.25, allocations: 2.948 MB / 5.233 GB, free: 162 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/12.25, allocations: 3.188 kB / 5.233 GB, free: 162 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004037/12.25, allocations: 2.186 MB / 5.235 GB, free: 161.6 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001327/12.25, allocations: 377.6 kB / 5.236 GB, free: 161.4 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005597/12.25, allocations: 26.22 kB / 5.236 GB, free: 161.4 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001954/12.26, allocations: 153.3 kB / 5.236 GB, free: 161.4 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/12.26, allocations: 79.02 kB / 5.236 GB, free: 161.3 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/12.26, allocations: 40.92 kB / 5.236 GB, free: 161.3 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.00234/12.26, allocations: 1.019 MB / 5.237 GB, free: 161.2 MB / 1.182 GB Notification: Performance of sort global known variables: time 2.3e-07/12.26, allocations: 3.344 kB / 5.237 GB, free: 161.2 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.005857/12.26, allocations: 1.253 MB / 5.238 GB, free: 161.2 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (vol.dynBal.medium.Xi[1],vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.medium.Xi[1],hea.vol.dynBal.U,hea.vol.dynBal.m) * 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 (104): * Single equations (assignments): 100 * 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%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01012/12.27, allocations: 6.404 MB / 5.244 GB, free: 158.6 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.004629/12.28, allocations: 2.338 MB / 5.247 GB, free: 158.2 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/12.28, allocations: 0 / 5.247 GB, free: 158.2 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.001479/12.28, allocations: 0.8584 MB / 5.247 GB, free: 158 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00592/12.29, allocations: 0.9495 MB / 5.248 GB, free: 158 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0204/12.31, allocations: 11.14 MB / 5.259 GB, free: 150.1 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002787/12.31, allocations: 1.62 MB / 5.261 GB, free: 149.3 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.003929/12.31, allocations: 0.5246 MB / 5.261 GB, free: 149.3 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002132/12.32, allocations: 0.832 MB / 5.262 GB, free: 149.3 MB / 1.182 GB Notification: Performance of SimCode: time 1.974e-06/12.32, allocations: 0 / 5.262 GB, free: 149.3 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1587/12.48, allocations: 93.86 MB / 5.354 GB, free: 80.79 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/12.48, allocations: 244.7 kB / 5.354 GB, free: 80.55 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.295/17.77, allocations: 4.062 kB / 5.354 GB, free: 80.54 MB / 1.182 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u_res.mat does not exist to compare? outputFormat=mat