Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.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.DryCoilDiscretized,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized",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.238/2.238, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.001012/0.001012, allocations: 184.9 kB / 487.4 MB, free: 5.039 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.528/1.528, allocations: 221.5 MB / 0.7824 GB, free: 0.9062 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 95.83 kB / 0.9219 GB, free: 2.129 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.049e-05/2.052e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3158, allocations: 142.4 MB / 1.206 GB, free: 43.82 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.067/6.382, allocations: 2.195 GB / 3.401 GB, free: 113.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/6.383, allocations: 95.16 kB / 3.402 GB, free: 113.2 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Fluid/Movers/BaseClasses/IdealSource.mo:14:3-22:27:writable] Error: The conditional expression control_m_flow could not be evaluated. Notification: Performance of FrontEnd - DAE generated: time 20.97/27.35, allocations: 5.447 GB / 8.849 GB, free: 95.45 MB / 1.229 GB Notification: Performance of FrontEnd: time 4.157e-06/27.35, allocations: 4 kB / 8.849 GB, free: 95.45 MB / 1.229 GB Notification: Performance of Transformations before backend: time 0.002556/27.35, allocations: 209.4 kB / 8.849 GB, free: 95.42 MB / 1.229 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1600 * Number of variables: 1600 Notification: Performance of Generate backend data structure: time 0.04137/27.39, allocations: 8.931 MB / 8.857 GB, free: 92.33 MB / 1.229 GB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/27.39, allocations: 7.562 kB / 8.857 GB, free: 92.33 MB / 1.229 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01562/27.41, allocations: 1.858 MB / 8.859 GB, free: 91.82 MB / 1.229 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04228/27.45, allocations: 15.12 MB / 8.874 GB, free: 87.89 MB / 1.229 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005174/27.45, allocations: 196 kB / 8.874 GB, free: 87.7 MB / 1.229 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003746/27.45, allocations: 382 kB / 8.875 GB, free: 87.33 MB / 1.229 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02363/27.48, allocations: 9.87 MB / 8.884 GB, free: 78.5 MB / 1.229 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0318/27.51, allocations: 10.47 MB / 8.894 GB, free: 67.85 MB / 1.229 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004854/27.51, allocations: 19.92 kB / 8.894 GB, free: 67.83 MB / 1.229 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002946/27.51, allocations: 15.5 kB / 8.895 GB, free: 67.82 MB / 1.229 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003157/27.51, allocations: 288.1 kB / 8.895 GB, free: 67.53 MB / 1.229 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.08133/27.6, allocations: 48.65 MB / 8.942 GB, free: 16.5 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01053/27.61, allocations: 7.623 MB / 8.95 GB, free: 8.645 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006397/27.61, allocations: 4.42 MB / 8.954 GB, free: 4.215 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001194/27.61, allocations: 0.9315 MB / 8.955 GB, free: 3.098 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001013/27.61, allocations: 81.47 kB / 8.955 GB, free: 3.008 MB / 1.229 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008137/27.62, allocations: 1.293 MB / 8.956 GB, free: 1.711 MB / 1.229 GB Notification: Performance of pre-optimization done (n=369): time 3.31e-05/27.62, allocations: 3.938 kB / 8.956 GB, free: 1.707 MB / 1.229 GB Notification: Performance of matching and sorting (n=375): time 0.04278/27.66, allocations: 15.17 MB / 8.971 GB, free: 2.406 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.605e-05/27.66, allocations: 94.3 kB / 8.971 GB, free: 2.301 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01899/27.68, allocations: 7.694 MB / 8.979 GB, free: 10.61 MB / 1.26 GB Notification: Performance of collectPreVariables (initialization): time 0.001449/27.69, allocations: 33.7 kB / 8.979 GB, free: 10.57 MB / 1.26 GB Notification: Performance of collectInitialEqns (initialization): time 0.005802/27.69, allocations: 3.622 MB / 8.982 GB, free: 6.918 MB / 1.26 GB Notification: Performance of collectInitialBindings (initialization): time 0.003133/27.69, allocations: 1.278 MB / 8.984 GB, free: 5.621 MB / 1.26 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001106/27.7, allocations: 0 / 8.984 GB, free: 5.621 MB / 1.26 GB Notification: Performance of setup shared object (initialization): time 0.0006326/27.7, allocations: 486.2 kB / 8.984 GB, free: 5.141 MB / 1.26 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005856/27.7, allocations: 3.185 MB / 8.987 GB, free: 1.953 MB / 1.26 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.9924/28.69, allocations: 4.211 MB / 8.991 GB, free: 139.7 MB / 1.26 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008388/28.7, allocations: 4.182 MB / 8.995 GB, free: 139.7 MB / 1.26 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.331e-05/28.7, allocations: 6.469 kB / 8.995 GB, free: 139.7 MB / 1.26 GB Notification: Performance of matching and sorting (n=490) (initialization): time 0.0188/28.72, allocations: 8.047 MB / 9.003 GB, free: 139.6 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 0.002036/28.72, allocations: 9.121 MB / 9.012 GB, free: 130 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.251e-05/28.72, allocations: 17.22 kB / 9.012 GB, free: 130 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007705/28.72, allocations: 225.5 kB / 9.012 GB, free: 130 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00558/28.73, allocations: 1.122 MB / 9.013 GB, free: 130 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003234/28.73, allocations: 2.764 MB / 9.016 GB, free: 128.9 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01123/28.74, allocations: 1.1 MB / 9.017 GB, free: 128.9 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001379/28.75, allocations: 168.7 kB / 9.017 GB, free: 128.9 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/28.75, allocations: 3.938 kB / 9.017 GB, free: 128.9 MB / 1.26 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01511/28.76, allocations: 7.411 MB / 9.025 GB, free: 128.8 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.929e-05/28.76, allocations: 16.97 kB / 9.025 GB, free: 128.8 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006787/28.76, allocations: 230.2 kB / 9.025 GB, free: 128.7 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005207/28.77, allocations: 1.113 MB / 9.026 GB, free: 128.7 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003119/28.77, allocations: 2.767 MB / 9.029 GB, free: 127.6 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01088/28.78, allocations: 1.089 MB / 9.03 GB, free: 127.6 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001532/28.78, allocations: 163.4 kB / 9.03 GB, free: 127.6 MB / 1.26 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (482): * Single equations (assignments): 481 * Array equations: 0 * Algorithm blocks: 0 * 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%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002847/28.79, allocations: 196.5 kB / 9.03 GB, free: 127.5 MB / 1.26 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01732/28.8, allocations: 6.847 MB / 9.037 GB, free: 127.3 MB / 1.26 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003154/28.81, allocations: 0.6065 MB / 9.037 GB, free: 127.3 MB / 1.26 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0194/28.83, allocations: 7.563 MB / 9.045 GB, free: 127.1 MB / 1.26 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.302e-05/28.83, allocations: 36.47 kB / 9.045 GB, free: 127.1 MB / 1.26 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.431e-05/28.83, allocations: 4.562 kB / 9.045 GB, free: 127.1 MB / 1.26 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01226/28.84, allocations: 6.409 MB / 9.051 GB, free: 126.6 MB / 1.26 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.05046/28.89, allocations: 19.33 MB / 9.07 GB, free: 125 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.687e-05/28.89, allocations: 9.891 kB / 9.07 GB, free: 125 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004996/28.89, allocations: 1.068 MB / 9.071 GB, free: 125 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006211/28.89, allocations: 197.8 kB / 9.071 GB, free: 125 MB / 1.26 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008555/28.9, allocations: 82.64 kB / 9.071 GB, free: 125 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002848/28.9, allocations: 2.742 MB / 9.074 GB, free: 123.8 MB / 1.26 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.979e-06/28.9, allocations: 4.625 kB / 9.074 GB, free: 123.8 MB / 1.26 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01801/28.92, allocations: 11.87 MB / 9.085 GB, free: 122.3 MB / 1.26 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007341/28.92, allocations: 2.104 MB / 9.088 GB, free: 121.9 MB / 1.26 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003133/28.93, allocations: 55.34 kB / 9.088 GB, free: 121.9 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009149/28.94, allocations: 0.8903 MB / 9.088 GB, free: 121.9 MB / 1.26 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001018/28.94, allocations: 231.6 kB / 9.089 GB, free: 121.9 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009248/28.94, allocations: 139.3 kB / 9.089 GB, free: 121.9 MB / 1.26 GB Notification: Performance of sorting global known variables: time 0.01368/28.95, allocations: 6.04 MB / 9.095 GB, free: 121.7 MB / 1.26 GB Notification: Performance of sort global known variables: time 8.42e-07/28.95, allocations: 0 / 9.095 GB, free: 121.7 MB / 1.26 GB Notification: Performance of remove unused functions: time 0.02611/28.98, allocations: 4.329 MB / 9.099 GB, free: 121.7 MB / 1.26 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 25 (hex.hexReg[1].ele[1,1].vol1.dynBal.U,hex.hexReg[1].ele[1,1].vol2.dynBal.medium.Xi[1],hex.hexReg[1].ele[1,1].vol2.dynBal.U,hex.hexReg[1].ele[1,1].mas.T,hex.hexReg[1].ele[1,2].vol1.dynBal.U,hex.hexReg[1].ele[1,2].vol2.dynBal.medium.Xi[1],hex.hexReg[1].ele[1,2].vol2.dynBal.U,hex.hexReg[1].ele[1,2].mas.T,hex.hexReg[1].ele[1,3].vol1.dynBal.U,hex.hexReg[1].ele[1,3].vol2.dynBal.medium.Xi[1],hex.hexReg[1].ele[1,3].vol2.dynBal.U,hex.hexReg[1].ele[1,3].mas.T,hex.hexReg[2].ele[1,1].vol1.dynBal.U,hex.hexReg[2].ele[1,1].vol2.dynBal.medium.Xi[1],hex.hexReg[2].ele[1,1].vol2.dynBal.U,hex.hexReg[2].ele[1,1].mas.T,hex.hexReg[2].ele[1,2].vol1.dynBal.U,hex.hexReg[2].ele[1,2].vol2.dynBal.medium.Xi[1],hex.hexReg[2].ele[1,2].vol2.dynBal.U,hex.hexReg[2].ele[1,2].mas.T,hex.hexReg[2].ele[1,3].vol1.dynBal.U,hex.hexReg[2].ele[1,3].vol2.dynBal.medium.Xi[1],hex.hexReg[2].ele[1,3].vol2.dynBal.U,hex.hexReg[2].ele[1,3].vol2.dynBal.m,hex.hexReg[2].ele[1,3].mas.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (378): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02908/29.01, allocations: 17.69 MB / 9.116 GB, free: 117.3 MB / 1.26 GB Notification: Performance of simCode: created initialization part: time 0.01984/29.03, allocations: 11.29 MB / 9.127 GB, free: 116.9 MB / 1.26 GB Notification: Performance of simCode: created event and clocks part: time 1.8e-05/29.03, allocations: 7.312 kB / 9.127 GB, free: 116.9 MB / 1.26 GB Notification: Performance of simCode: created simulation system equations: time 0.005832/29.03, allocations: 3.429 MB / 9.131 GB, free: 116.8 MB / 1.26 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02604/29.06, allocations: 4.711 MB / 9.135 GB, free: 116.8 MB / 1.26 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07693/29.14, allocations: 24.01 MB / 9.159 GB, free: 113.8 MB / 1.26 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01505/29.15, allocations: 7.145 MB / 9.166 GB, free: 112.9 MB / 1.26 GB Notification: Performance of simCode: alias equations: time 0.03604/29.19, allocations: 12.14 MB / 9.177 GB, free: 112.8 MB / 1.26 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01075/29.2, allocations: 3.238 MB / 9.181 GB, free: 112.8 MB / 1.26 GB Notification: Performance of SimCode: time 1.423e-06/29.2, allocations: 1.125 kB / 9.181 GB, free: 112.8 MB / 1.26 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3822/29.58, allocations: 266.1 MB / 9.44 GB, free: 0.9531 MB / 1.292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/29.58, allocations: 191.2 kB / 9.441 GB, free: 0.75 MB / 1.292 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/39.83, allocations: 0 / 9.441 GB, free: 0.75 MB / 1.292 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized_fmu --startTime=0 --stopTime=360 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized_res.mat does not exist to compare? outputFormat=mat