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.246/2.246, allocations: 387.1 MB / 399.7 MB, free: 9.449 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.001176/0.001176, allocations: 180.9 kB / 492.3 MB, free: 0.5938 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.748/1.748, allocations: 221.3 MB / 0.7872 GB, free: 12.94 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.001012/0.001012, allocations: 87.42 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.045e-05/3.048e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2959, allocations: 142.4 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.97/6.265, allocations: 2.196 GB / 3.409 GB, free: 80.49 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/6.266, allocations: 88.33 kB / 3.409 GB, free: 80.45 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 23.58/29.84, allocations: 5.491 GB / 8.9 GB, free: 62.18 MB / 1.245 GB Notification: Performance of FrontEnd: time 1.783e-06/29.84, allocations: 0 / 8.9 GB, free: 62.18 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.002578/29.84, allocations: 214.9 kB / 8.9 GB, free: 61.97 MB / 1.245 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.0378/29.88, allocations: 8.932 MB / 8.909 GB, free: 52.98 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/29.88, allocations: 12.03 kB / 8.909 GB, free: 52.97 MB / 1.245 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00552/29.89, allocations: 0.9327 MB / 8.909 GB, free: 52.02 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01407/29.9, allocations: 1.854 MB / 8.911 GB, free: 50.16 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03602/29.94, allocations: 15.12 MB / 8.926 GB, free: 34.95 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006314/29.94, allocations: 468.3 kB / 8.926 GB, free: 34.49 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003742/29.94, allocations: 0.6326 MB / 8.927 GB, free: 33.86 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03317/29.98, allocations: 11.37 MB / 8.938 GB, free: 22.29 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005354/29.98, allocations: 11.94 kB / 8.938 GB, free: 22.28 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003642/29.98, allocations: 264 kB / 8.938 GB, free: 22.02 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003787/29.98, allocations: 292.1 kB / 8.939 GB, free: 21.73 MB / 1.245 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02643/30.01, allocations: 10.42 MB / 8.949 GB, free: 11.29 MB / 1.245 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 1.109/31.12, allocations: 49.94 MB / 8.998 GB, free: 103 MB / 1.26 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01187/31.13, allocations: 6.966 MB / 9.004 GB, free: 102.2 MB / 1.26 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007005/31.14, allocations: 4.582 MB / 9.009 GB, free: 102.2 MB / 1.26 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001052/31.14, allocations: 0.9355 MB / 9.01 GB, free: 101.2 MB / 1.26 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.891e-05/31.14, allocations: 84.73 kB / 9.01 GB, free: 101.2 MB / 1.26 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008162/31.14, allocations: 1.371 MB / 9.011 GB, free: 101.2 MB / 1.26 GB Notification: Performance of pre-optimization done (n=369): time 2.069e-05/31.14, allocations: 1.188 kB / 9.011 GB, free: 101.2 MB / 1.26 GB Notification: Performance of matching and sorting (n=375): time 0.04148/31.19, allocations: 15.87 MB / 9.027 GB, free: 99.61 MB / 1.26 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.636e-05/31.19, allocations: 92.39 kB / 9.027 GB, free: 99.54 MB / 1.26 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01902/31.21, allocations: 8.072 MB / 9.035 GB, free: 99.17 MB / 1.26 GB Notification: Performance of collectPreVariables (initialization): time 0.002026/31.21, allocations: 104.2 kB / 9.035 GB, free: 99.14 MB / 1.26 GB Notification: Performance of collectInitialEqns (initialization): time 0.007181/31.21, allocations: 3.625 MB / 9.038 GB, free: 98.34 MB / 1.26 GB Notification: Performance of collectInitialBindings (initialization): time 0.004122/31.22, allocations: 1.325 MB / 9.04 GB, free: 97.68 MB / 1.26 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006343/31.22, allocations: 79.28 kB / 9.04 GB, free: 97.68 MB / 1.26 GB Notification: Performance of setup shared object (initialization): time 0.0005135/31.22, allocations: 492.8 kB / 9.04 GB, free: 97.37 MB / 1.26 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004911/31.22, allocations: 3.321 MB / 9.043 GB, free: 97.36 MB / 1.26 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005313/31.23, allocations: 4.375 MB / 9.048 GB, free: 96.43 MB / 1.26 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006127/31.24, allocations: 4.285 MB / 9.052 GB, free: 96.37 MB / 1.26 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.55e-05/31.24, allocations: 8.75 kB / 9.052 GB, free: 96.37 MB / 1.26 GB Notification: Performance of matching and sorting (n=490) (initialization): time 0.01596/31.25, allocations: 8.473 MB / 9.06 GB, free: 95.92 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 0.001601/31.25, allocations: 8.946 MB / 9.069 GB, free: 86.62 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.438e-05/31.25, allocations: 18.11 kB / 9.069 GB, free: 86.62 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006941/31.25, allocations: 230.6 kB / 9.069 GB, free: 86.62 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005259/31.26, allocations: 1.121 MB / 9.07 GB, free: 86.62 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002566/31.26, allocations: 2.849 MB / 9.073 GB, free: 85.36 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01084/31.27, allocations: 1.179 MB / 9.074 GB, free: 85.33 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001552/31.28, allocations: 165.5 kB / 9.074 GB, free: 85.33 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/31.28, allocations: 4.141 kB / 9.074 GB, free: 85.33 MB / 1.26 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01206/31.29, allocations: 7.908 MB / 9.082 GB, free: 85.23 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.69e-05/31.29, allocations: 16.83 kB / 9.082 GB, free: 85.23 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005665/31.29, allocations: 228.6 kB / 9.082 GB, free: 85.21 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004806/31.29, allocations: 1.123 MB / 9.083 GB, free: 85.21 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/31.3, allocations: 2.849 MB / 9.086 GB, free: 83.95 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01055/31.31, allocations: 1.164 MB / 9.087 GB, free: 83.93 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001218/31.31, allocations: 168.4 kB / 9.088 GB, free: 83.93 MB / 1.26 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * 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.001518/31.31, allocations: 340.3 kB / 9.088 GB, free: 83.82 MB / 1.26 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002338/31.31, allocations: 0.6153 MB / 9.088 GB, free: 83.5 MB / 1.26 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01335/31.32, allocations: 7.996 MB / 9.096 GB, free: 83.28 MB / 1.26 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.289e-05/31.32, allocations: 40.61 kB / 9.096 GB, free: 83.28 MB / 1.26 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/31.32, allocations: 3.938 kB / 9.096 GB, free: 83.28 MB / 1.26 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009126/31.33, allocations: 6.719 MB / 9.103 GB, free: 82.74 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.04496/31.38, allocations: 20.65 MB / 9.123 GB, free: 81.11 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.722e-05/31.38, allocations: 7.75 kB / 9.123 GB, free: 81.11 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00466/31.38, allocations: 1.069 MB / 9.124 GB, free: 81.11 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005827/31.38, allocations: 207.3 kB / 9.124 GB, free: 81.1 MB / 1.26 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004821/31.38, allocations: 128 kB / 9.124 GB, free: 81.1 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002553/31.39, allocations: 2.823 MB / 9.127 GB, free: 79.84 MB / 1.26 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/31.39, allocations: 8.125 kB / 9.127 GB, free: 79.84 MB / 1.26 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01719/31.4, allocations: 12.33 MB / 9.139 GB, free: 78.31 MB / 1.26 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006956/31.41, allocations: 2.137 MB / 9.141 GB, free: 77.89 MB / 1.26 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002743/31.41, allocations: 114.3 kB / 9.141 GB, free: 77.89 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008803/31.42, allocations: 0.9509 MB / 9.142 GB, free: 77.87 MB / 1.26 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00103/31.42, allocations: 235.9 kB / 9.143 GB, free: 77.86 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008523/31.42, allocations: 140.2 kB / 9.143 GB, free: 77.86 MB / 1.26 GB Notification: Performance of sorting global known variables: time 0.01439/31.44, allocations: 6.4 MB / 9.149 GB, free: 77.62 MB / 1.26 GB Notification: Performance of sort global known variables: time 5.41e-07/31.44, allocations: 0.9688 kB / 9.149 GB, free: 77.62 MB / 1.26 GB Notification: Performance of remove unused functions: time 0.02567/31.46, allocations: 4.592 MB / 9.153 GB, free: 77.62 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.02932/31.49, allocations: 17.82 MB / 9.171 GB, free: 73.2 MB / 1.26 GB Notification: Performance of simCode: created initialization part: time 0.02493/31.52, allocations: 11.82 MB / 9.182 GB, free: 72.84 MB / 1.26 GB Notification: Performance of simCode: created event and clocks part: time 2.026e-05/31.52, allocations: 3.781 kB / 9.182 GB, free: 72.84 MB / 1.26 GB Notification: Performance of simCode: created simulation system equations: time 0.008096/31.53, allocations: 3.595 MB / 9.186 GB, free: 72.71 MB / 1.26 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03372/31.56, allocations: 4.835 MB / 9.191 GB, free: 72.66 MB / 1.26 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09052/31.65, allocations: 24.41 MB / 9.214 GB, free: 69.64 MB / 1.26 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01786/31.67, allocations: 7.14 MB / 9.221 GB, free: 68.73 MB / 1.26 GB Notification: Performance of simCode: alias equations: time 0.05019/31.72, allocations: 12.09 MB / 9.233 GB, free: 68.67 MB / 1.26 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01337/31.73, allocations: 3.238 MB / 9.236 GB, free: 68.66 MB / 1.26 GB Notification: Performance of SimCode: time 2.966e-06/31.73, allocations: 0 / 9.236 GB, free: 68.66 MB / 1.26 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.502/33.24, allocations: 321 MB / 9.55 GB, free: 173.5 MB / 1.323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001531/33.24, allocations: 227.4 kB / 9.55 GB, free: 173.3 MB / 1.323 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/45.82, allocations: 2.953 kB / 9.55 GB, free: 173.3 MB / 1.323 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