Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.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.Boilers.Examples.BoilerPolynomialClosedLoop,fileNamePrefix="Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomialClosedLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop,fileNamePrefix="Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomialClosedLoop",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.131/2.131, allocations: 387.4 MB / 394.9 MB, free: 13.42 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.001324/0.001324, allocations: 180.7 kB / 487.4 MB, free: 5.059 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.607/1.607, allocations: 221.5 MB / 0.7824 GB, free: 1.027 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.001056/0.001056, allocations: 91.86 kB / 0.9219 GB, free: 2.262 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.973e-05/1.955e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2635, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.306/1.57, allocations: 457.3 MB / 1.653 GB, free: 13.36 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/1.57, allocations: 92.14 kB / 1.653 GB, free: 13.32 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 10.45/12.02, allocations: 2.377 GB / 4.029 GB, free: 96.71 MB / 1.245 GB Notification: Performance of FrontEnd: time 1.934e-06/12.02, allocations: 3.141 kB / 4.029 GB, free: 96.71 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.001038/12.02, allocations: 128.5 kB / 4.029 GB, free: 96.71 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: 676 * Number of variables: 676 Notification: Performance of Generate backend data structure: time 0.02053/12.04, allocations: 4.646 MB / 4.034 GB, free: 95.2 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 6.026e-05/12.04, allocations: 9.625 kB / 4.034 GB, free: 95.2 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00777/12.05, allocations: 1.099 MB / 4.035 GB, free: 94.9 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02007/12.07, allocations: 5.754 MB / 4.041 GB, free: 94.16 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/12.07, allocations: 86.34 kB / 4.041 GB, free: 94.16 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001091/12.07, allocations: 185.5 kB / 4.041 GB, free: 94.16 MB / 1.245 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007604/12.08, allocations: 2.217 MB / 4.043 GB, free: 94.14 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01164/12.09, allocations: 2.613 MB / 4.046 GB, free: 93.78 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001891/12.09, allocations: 7.281 kB / 4.046 GB, free: 93.78 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001018/12.09, allocations: 7.547 kB / 4.046 GB, free: 93.78 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001456/12.09, allocations: 105 kB / 4.046 GB, free: 93.77 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.03908/12.13, allocations: 17.17 MB / 4.063 GB, free: 83.87 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003652/12.14, allocations: 1.577 MB / 4.064 GB, free: 83.73 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002521/12.14, allocations: 0.9973 MB / 4.065 GB, free: 83.72 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01498/12.15, allocations: 3.881 MB / 4.069 GB, free: 82.48 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.419e-05/12.15, allocations: 58.3 kB / 4.069 GB, free: 82.45 MB / 1.245 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006755/12.16, allocations: 0.9975 MB / 4.07 GB, free: 82.38 MB / 1.245 GB Notification: Performance of pre-optimization done (n=150): time 2.039e-05/12.16, allocations: 0 / 4.07 GB, free: 82.38 MB / 1.245 GB Notification: Performance of matching and sorting (n=152): time 0.02767/12.19, allocations: 5.318 MB / 4.075 GB, free: 81.16 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.854e-05/12.19, allocations: 120.9 kB / 4.075 GB, free: 81.04 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01304/12.2, allocations: 2.883 MB / 4.078 GB, free: 80.73 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.0008859/12.2, allocations: 32.23 kB / 4.078 GB, free: 80.7 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.004208/12.21, allocations: 2.184 MB / 4.08 GB, free: 80.09 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.001328/12.21, allocations: 0.5077 MB / 4.081 GB, free: 79.75 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004942/12.21, allocations: 0.9375 kB / 4.081 GB, free: 79.75 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.000311/12.21, allocations: 384.9 kB / 4.081 GB, free: 79.44 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00253/12.21, allocations: 0.7126 MB / 4.082 GB, free: 79.43 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003254/12.22, allocations: 1.582 MB / 4.083 GB, free: 78.36 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004992/12.22, allocations: 1.052 MB / 4.084 GB, free: 78.34 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.224e-05/12.22, allocations: 6.188 kB / 4.084 GB, free: 78.34 MB / 1.245 GB Notification: Performance of matching and sorting (n=267) (initialization): time 0.01659/12.24, allocations: 3.119 MB / 4.087 GB, free: 78 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.002564/12.24, allocations: 8.725 MB / 4.096 GB, free: 68.67 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/12.24, allocations: 18.64 kB / 4.096 GB, free: 68.67 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006221/12.25, allocations: 0.8659 MB / 4.097 GB, free: 68.64 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003892/12.25, allocations: 496.2 kB / 4.097 GB, free: 68.64 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00572/12.26, allocations: 3.498 MB / 4.101 GB, free: 66.32 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005463/12.26, allocations: 252.5 kB / 4.101 GB, free: 66.29 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008383/12.26, allocations: 125.6 kB / 4.101 GB, free: 66.29 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/12.26, allocations: 3.688 kB / 4.101 GB, free: 66.29 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008924/12.27, allocations: 2.544 MB / 4.103 GB, free: 66.21 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.183e-05/12.27, allocations: 21.5 kB / 4.103 GB, free: 66.21 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003981/12.27, allocations: 0.8624 MB / 4.104 GB, free: 66.18 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00234/12.28, allocations: 481.6 kB / 4.105 GB, free: 66.18 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005769/12.28, allocations: 4.694 MB / 4.109 GB, free: 62.96 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004828/12.29, allocations: 242.3 kB / 4.11 GB, free: 62.93 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006064/12.29, allocations: 120 kB / 4.11 GB, free: 62.93 MB / 1.245 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pumBoi.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pumLoa.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.onOffController.y,onOffController.y,conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 220 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * 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: 2 {7 20,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.001248/12.29, allocations: 182.4 kB / 4.11 GB, free: 62.81 MB / 1.245 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009015/12.3, allocations: 2.536 MB / 4.112 GB, free: 62.48 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001767/12.3, allocations: 420.8 kB / 4.113 GB, free: 62.26 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008533/12.31, allocations: 2.719 MB / 4.115 GB, free: 62.06 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.73e-05/12.31, allocations: 17.47 kB / 4.115 GB, free: 62.06 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/12.31, allocations: 3.75 kB / 4.115 GB, free: 62.06 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004534/12.31, allocations: 2.009 MB / 4.117 GB, free: 61.82 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 postOpt removeSimpleEquations (simulation): time 0.0163/12.33, allocations: 5.324 MB / 4.123 GB, free: 61.36 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/12.33, allocations: 3.953 kB / 4.123 GB, free: 61.35 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001685/12.33, allocations: 312.5 kB / 4.123 GB, free: 61.35 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00181/12.33, allocations: 0.5298 MB / 4.123 GB, free: 61.33 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002443/12.33, allocations: 31.62 kB / 4.123 GB, free: 61.33 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002789/12.34, allocations: 3.189 MB / 4.127 GB, free: 59 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/12.34, allocations: 6.516 kB / 4.127 GB, free: 59 MB / 1.245 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007234/12.34, allocations: 3.402 MB / 4.13 GB, free: 58.52 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002908/12.35, allocations: 0.6902 MB / 4.131 GB, free: 58.18 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001675/12.35, allocations: 7.188 kB / 4.131 GB, free: 58.18 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004055/12.35, allocations: 237.1 kB / 4.131 GB, free: 58.17 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003211/12.35, allocations: 116.2 kB / 4.131 GB, free: 58.16 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002404/12.35, allocations: 64.94 kB / 4.131 GB, free: 58.16 MB / 1.245 GB Notification: Performance of sorting global known variables: time 0.005046/12.36, allocations: 2.145 MB / 4.133 GB, free: 57.98 MB / 1.245 GB Notification: Performance of sort global known variables: time 1.493e-06/12.36, allocations: 0 / 4.133 GB, free: 57.98 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.01316/12.37, allocations: 1.993 MB / 4.135 GB, free: 57.88 MB / 1.245 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (boi.heaCapDry.T,val.filter.s[1],val.filter.s[2],pumLoa.filter.s[1],pumLoa.filter.s[2],pumBoi.filter.s[1],pumBoi.filter.s[2],conPID.I.y,exp.m,exp.H,vol.dynBal.U) * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (147): * Single equations (assignments): 140 * 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: 3 * 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: 2 {7 19,2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.01363/12.39, allocations: 6.324 MB / 4.141 GB, free: 56.08 MB / 1.245 GB Notification: Performance of simCode: created initialization part: time 0.008623/12.39, allocations: 3.699 MB / 4.145 GB, free: 55.67 MB / 1.245 GB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/12.39, allocations: 0 / 4.145 GB, free: 55.67 MB / 1.245 GB Notification: Performance of simCode: created simulation system equations: time 0.002404/12.4, allocations: 1.083 MB / 4.146 GB, free: 55.55 MB / 1.245 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01141/12.41, allocations: 1.838 MB / 4.148 GB, free: 55.53 MB / 1.245 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02317/12.43, allocations: 6.362 MB / 4.154 GB, free: 53.8 MB / 1.245 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004134/12.44, allocations: 2.51 MB / 4.156 GB, free: 53.02 MB / 1.245 GB Notification: Performance of simCode: alias equations: time 0.009508/12.44, allocations: 1.271 MB / 4.158 GB, free: 52.98 MB / 1.245 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004806/12.45, allocations: 1.917 MB / 4.159 GB, free: 52.97 MB / 1.245 GB Notification: Performance of SimCode: time 1.483e-06/12.45, allocations: 0 / 4.159 GB, free: 52.97 MB / 1.245 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2388/12.69, allocations: 126.5 MB / 4.283 GB, free: 45.88 MB / 1.245 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/12.69, allocations: 142.6 kB / 4.283 GB, free: 45.69 MB / 1.245 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.387/20.08, allocations: 0 / 4.283 GB, free: 45.69 MB / 1.245 GB (rm -f Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe ; mkfifo Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe >> ../files/Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomialClosedLoop_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomialClosedLoop.fmu > Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop_res.mat does not exist to compare? outputFormat=mat