Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.356/2.356, allocations: 390.3 MB / 402.8 MB, free: 6.738 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.001529/0.001529, allocations: 180.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.692/1.692, allocations: 221.3 MB / 0.7915 GB, free: 5.414 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.0009595/0.0009595, allocations: 95.89 kB / 0.9318 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.894e-05/3.904e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3448, allocations: 143 MB / 1.219 GB, free: 13.46 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.304/6.649, allocations: 2.197 GB / 3.416 GB, free: 89.75 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/6.649, allocations: 87.95 kB / 3.416 GB, free: 89.66 MB / 1.167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 22.43/29.08, allocations: 5.491 GB / 8.907 GB, free: 89.13 MB / 1.245 GB Notification: Performance of FrontEnd: time 2.585e-06/29.08, allocations: 0 / 8.907 GB, free: 89.13 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.00301/29.08, allocations: 211.1 kB / 8.907 GB, free: 88.93 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.05145/29.13, allocations: 8.92 MB / 8.916 GB, free: 79.95 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 7.069e-05/29.13, allocations: 12.03 kB / 8.916 GB, free: 79.94 MB / 1.245 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007323/29.14, allocations: 0.9366 MB / 8.917 GB, free: 78.99 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01764/29.16, allocations: 1.862 MB / 8.918 GB, free: 77.12 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04556/29.2, allocations: 15.12 MB / 8.933 GB, free: 61.93 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009486/29.2, allocations: 472.3 kB / 8.934 GB, free: 61.46 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005997/29.21, allocations: 0.6297 MB / 8.934 GB, free: 60.83 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04254/29.25, allocations: 11.37 MB / 8.945 GB, free: 49.27 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000507/29.25, allocations: 15.92 kB / 8.945 GB, free: 49.25 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004011/29.26, allocations: 267.9 kB / 8.946 GB, free: 48.99 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003508/29.26, allocations: 292.1 kB / 8.946 GB, free: 48.7 MB / 1.245 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0313/29.29, allocations: 10.42 MB / 8.956 GB, free: 38.26 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 0.1208/29.41, allocations: 49.96 MB / 9.005 GB, free: 1.656 MB / 1.26 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01693/29.43, allocations: 6.951 MB / 9.012 GB, free: 10.58 MB / 1.276 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01193/29.44, allocations: 4.578 MB / 9.016 GB, free: 5.996 MB / 1.276 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002041/29.44, allocations: 0.9353 MB / 9.017 GB, free: 4.875 MB / 1.276 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001779/29.44, allocations: 81.47 kB / 9.017 GB, free: 4.785 MB / 1.276 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01125/29.45, allocations: 1.382 MB / 9.018 GB, free: 3.402 MB / 1.276 GB Notification: Performance of pre-optimization done (n=369): time 3.123e-05/29.45, allocations: 0 / 9.018 GB, free: 3.402 MB / 1.276 GB Notification: Performance of matching and sorting (n=375): time 1.266/30.72, allocations: 15.88 MB / 9.034 GB, free: 136.6 MB / 1.276 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.852e-05/30.72, allocations: 89.98 kB / 9.034 GB, free: 136.6 MB / 1.276 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02206/30.74, allocations: 8.066 MB / 9.042 GB, free: 136.2 MB / 1.276 GB Notification: Performance of collectPreVariables (initialization): time 0.001647/30.74, allocations: 104.5 kB / 9.042 GB, free: 136.2 MB / 1.276 GB Notification: Performance of collectInitialEqns (initialization): time 0.006192/30.75, allocations: 3.628 MB / 9.046 GB, free: 135.3 MB / 1.276 GB Notification: Performance of collectInitialBindings (initialization): time 0.003383/30.75, allocations: 1.33 MB / 9.047 GB, free: 134.7 MB / 1.276 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000473/30.75, allocations: 77.12 kB / 9.047 GB, free: 134.7 MB / 1.276 GB Notification: Performance of setup shared object (initialization): time 0.0005114/30.75, allocations: 492.6 kB / 9.047 GB, free: 134.4 MB / 1.276 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007369/30.76, allocations: 3.323 MB / 9.051 GB, free: 134.4 MB / 1.276 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009062/30.77, allocations: 4.367 MB / 9.055 GB, free: 133.4 MB / 1.276 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009082/30.78, allocations: 4.291 MB / 9.059 GB, free: 133.4 MB / 1.276 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.135e-05/30.78, allocations: 5.688 kB / 9.059 GB, free: 133.4 MB / 1.276 GB Notification: Performance of matching and sorting (n=490) (initialization): time 0.02248/30.8, allocations: 8.472 MB / 9.067 GB, free: 132.9 MB / 1.276 GB Notification: Performance of prepare postOptimizeDAE: time 0.002196/30.8, allocations: 8.942 MB / 9.076 GB, free: 123.6 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001289/30.8, allocations: 20.84 kB / 9.076 GB, free: 123.6 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008134/30.8, allocations: 223.6 kB / 9.076 GB, free: 123.6 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005712/30.81, allocations: 1.125 MB / 9.077 GB, free: 123.6 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003013/30.81, allocations: 2.854 MB / 9.08 GB, free: 122.4 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01096/30.82, allocations: 1.179 MB / 9.081 GB, free: 122.3 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001546/30.83, allocations: 167.7 kB / 9.082 GB, free: 122.3 MB / 1.276 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/30.83, allocations: 3.781 kB / 9.082 GB, free: 122.3 MB / 1.276 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01785/30.84, allocations: 7.905 MB / 9.089 GB, free: 122.2 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-05/30.84, allocations: 18.06 kB / 9.089 GB, free: 122.2 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007135/30.84, allocations: 228.4 kB / 9.09 GB, free: 122.2 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005267/30.85, allocations: 1.117 MB / 9.091 GB, free: 122.2 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002973/30.85, allocations: 2.847 MB / 9.093 GB, free: 121 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01134/30.86, allocations: 1.174 MB / 9.095 GB, free: 120.9 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001707/30.87, allocations: 165.9 kB / 9.095 GB, free: 120.9 MB / 1.276 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.003072/30.87, allocations: 334.4 kB / 9.095 GB, free: 120.8 MB / 1.276 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003863/30.87, allocations: 0.6163 MB / 9.096 GB, free: 120.5 MB / 1.276 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01941/30.89, allocations: 7.987 MB / 9.103 GB, free: 120.3 MB / 1.276 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.472e-05/30.89, allocations: 39.83 kB / 9.103 GB, free: 120.3 MB / 1.276 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-05/30.89, allocations: 6.484 kB / 9.103 GB, free: 120.3 MB / 1.276 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0112/30.9, allocations: 6.714 MB / 9.11 GB, free: 119.8 MB / 1.276 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.05495/30.96, allocations: 20.66 MB / 9.13 GB, free: 118.1 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.33e-05/30.96, allocations: 3.688 kB / 9.13 GB, free: 118.1 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00522/30.96, allocations: 1.075 MB / 9.131 GB, free: 118.1 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006825/30.96, allocations: 201.1 kB / 9.131 GB, free: 118.1 MB / 1.276 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009425/30.97, allocations: 129.5 kB / 9.132 GB, free: 118.1 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002848/30.97, allocations: 2.831 MB / 9.134 GB, free: 116.8 MB / 1.276 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.782e-06/30.97, allocations: 8.312 kB / 9.134 GB, free: 116.8 MB / 1.276 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02067/30.99, allocations: 12.32 MB / 9.146 GB, free: 115.3 MB / 1.276 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009335/31, allocations: 2.137 MB / 9.148 GB, free: 114.9 MB / 1.276 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003636/31, allocations: 113 kB / 9.149 GB, free: 114.9 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009887/31.01, allocations: 0.9529 MB / 9.149 GB, free: 114.9 MB / 1.276 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001125/31.01, allocations: 241.6 kB / 9.15 GB, free: 114.9 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009824/31.01, allocations: 143.8 kB / 9.15 GB, free: 114.9 MB / 1.276 GB Notification: Performance of sorting global known variables: time 0.01576/31.03, allocations: 6.395 MB / 9.156 GB, free: 114.6 MB / 1.276 GB Notification: Performance of sort global known variables: time 8.11e-07/31.03, allocations: 0 / 9.156 GB, free: 114.6 MB / 1.276 GB Notification: Performance of remove unused functions: time 0.02815/31.06, allocations: 4.593 MB / 9.161 GB, free: 114.6 MB / 1.276 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.03163/31.09, allocations: 17.83 MB / 9.178 GB, free: 110.2 MB / 1.276 GB Notification: Performance of simCode: created initialization part: time 0.02091/31.11, allocations: 11.82 MB / 9.19 GB, free: 109.9 MB / 1.276 GB Notification: Performance of simCode: created event and clocks part: time 1.709e-05/31.11, allocations: 7.062 kB / 9.19 GB, free: 109.9 MB / 1.276 GB Notification: Performance of simCode: created simulation system equations: time 0.005957/31.12, allocations: 3.594 MB / 9.193 GB, free: 109.7 MB / 1.276 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02813/31.14, allocations: 4.832 MB / 9.198 GB, free: 109.7 MB / 1.276 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0624/31.21, allocations: 24.41 MB / 9.222 GB, free: 106.7 MB / 1.276 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01003/31.22, allocations: 7.138 MB / 9.229 GB, free: 105.8 MB / 1.276 GB Notification: Performance of simCode: alias equations: time 0.03415/31.25, allocations: 12.09 MB / 9.24 GB, free: 105.7 MB / 1.276 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01243/31.26, allocations: 3.238 MB / 9.244 GB, free: 105.7 MB / 1.276 GB Notification: Performance of SimCode: time 1.834e-06/31.26, allocations: 0 / 9.244 GB, free: 105.7 MB / 1.276 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.605/32.87, allocations: 320.9 MB / 9.557 GB, free: 182.6 MB / 1.323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/32.87, allocations: 229.7 kB / 9.557 GB, free: 182.4 MB / 1.323 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/45.23, allocations: 1.375 kB / 9.557 GB, free: 182.4 MB / 1.323 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized_fmu --startTime=0 --stopTime=360 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized_res.mat does not exist to compare? outputFormat=mat