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.229/2.229, allocations: 387.1 MB / 399.7 MB, free: 9.555 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.001222/0.001222, allocations: 184.4 kB / 492.3 MB, free: 0.6523 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.678/1.678, allocations: 221.3 MB / 0.7871 GB, free: 12.92 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.0009925/0.0009926, allocations: 91.94 kB / 0.9267 GB, free: 13.99 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.918e-05/2.927e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2899, allocations: 142.4 MB / 1.212 GB, free: 38.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.32/1.609, allocations: 457.9 MB / 1.66 GB, free: 5 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003344/1.61, allocations: 93.02 kB / 1.66 GB, free: 4.957 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 11.3/12.91, allocations: 2.387 GB / 4.047 GB, free: 94.61 MB / 1.245 GB Notification: Performance of FrontEnd: time 5.01e-06/12.91, allocations: 0.875 kB / 4.047 GB, free: 94.61 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.002075/12.91, allocations: 129 kB / 4.047 GB, free: 94.61 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.03086/12.94, allocations: 4.64 MB / 4.051 GB, free: 93.02 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 9.834e-05/12.94, allocations: 9.969 kB / 4.051 GB, free: 93.02 MB / 1.245 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003263/12.94, allocations: 361.5 kB / 4.052 GB, free: 92.97 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009181/12.95, allocations: 1.096 MB / 4.053 GB, free: 92.67 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02701/12.98, allocations: 5.753 MB / 4.059 GB, free: 91.87 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005857/12.98, allocations: 223 kB / 4.059 GB, free: 91.86 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002209/12.98, allocations: 304 kB / 4.059 GB, free: 91.86 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01219/12.99, allocations: 3.005 MB / 4.062 GB, free: 91.48 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001787/12.99, allocations: 6 kB / 4.062 GB, free: 91.48 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0011/12.99, allocations: 114.8 kB / 4.062 GB, free: 91.48 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001352/12.99, allocations: 106.6 kB / 4.062 GB, free: 91.47 MB / 1.245 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005399/13, allocations: 2.319 MB / 4.064 GB, free: 91.44 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.0323/13.03, allocations: 17.69 MB / 4.082 GB, free: 81.41 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00306/13.04, allocations: 1.561 MB / 4.083 GB, free: 81.26 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001749/13.04, allocations: 0.9559 MB / 4.084 GB, free: 81.25 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 evalFunc (simulation): time 0.01211/13.05, allocations: 3.993 MB / 4.088 GB, free: 80 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.469e-05/13.05, allocations: 60.17 kB / 4.088 GB, free: 79.96 MB / 1.245 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005658/13.06, allocations: 1.089 MB / 4.089 GB, free: 79.88 MB / 1.245 GB Notification: Performance of pre-optimization done (n=149): time 1.723e-05/13.06, allocations: 1.562 kB / 4.089 GB, free: 79.88 MB / 1.245 GB Notification: Performance of matching and sorting (n=154): time 0.01753/13.07, allocations: 5.246 MB / 4.094 GB, free: 78.67 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.389e-05/13.07, allocations: 124.2 kB / 4.094 GB, free: 78.54 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009252/13.08, allocations: 3.276 MB / 4.098 GB, free: 78.21 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.0006653/13.08, allocations: 68.42 kB / 4.098 GB, free: 78.18 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.002899/13.09, allocations: 2.206 MB / 4.1 GB, free: 77.61 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.001041/13.09, allocations: 0.5401 MB / 4.1 GB, free: 77.27 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004122/13.09, allocations: 39.5 kB / 4.1 GB, free: 77.27 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.0002272/13.09, allocations: 387.7 kB / 4.101 GB, free: 76.96 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001716/13.09, allocations: 0.7244 MB / 4.102 GB, free: 76.95 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002486/13.09, allocations: 1.626 MB / 4.103 GB, free: 75.88 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002209/13.09, allocations: 0.9592 MB / 4.104 GB, free: 75.84 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.709e-05/13.09, allocations: 2.906 kB / 4.104 GB, free: 75.84 MB / 1.245 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.009984/13.1, allocations: 3.293 MB / 4.107 GB, free: 75.49 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.003165/13.11, allocations: 8.819 MB / 4.116 GB, free: 66.16 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-05/13.11, allocations: 19.34 kB / 4.116 GB, free: 66.16 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004263/13.11, allocations: 0.926 MB / 4.117 GB, free: 66.13 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002537/13.11, allocations: 498.9 kB / 4.117 GB, free: 66.13 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004049/13.12, allocations: 3.431 MB / 4.121 GB, free: 63.75 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005965/13.12, allocations: 327.1 kB / 4.121 GB, free: 63.72 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006767/13.12, allocations: 125.3 kB / 4.121 GB, free: 63.72 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/13.12, allocations: 8.406 kB / 4.121 GB, free: 63.72 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008917/13.13, allocations: 2.799 MB / 4.124 GB, free: 63.64 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001058/13.13, allocations: 25.83 kB / 4.124 GB, free: 63.64 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003979/13.14, allocations: 0.8966 MB / 4.125 GB, free: 63.61 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002176/13.14, allocations: 485.3 kB / 4.125 GB, free: 63.61 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004792/13.15, allocations: 4.719 MB / 4.13 GB, free: 60.29 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005125/13.15, allocations: 310.9 kB / 4.13 GB, free: 60.26 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005245/13.15, allocations: 120.5 kB / 4.13 GB, free: 60.26 MB / 1.245 GB 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 (227): * Single equations (assignments): 222 * 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 {8 19,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.001081/13.15, allocations: 240 kB / 4.13 GB, free: 60.14 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001614/13.15, allocations: 447.7 kB / 4.131 GB, free: 59.9 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008077/13.16, allocations: 2.863 MB / 4.134 GB, free: 59.71 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.783e-05/13.16, allocations: 18.09 kB / 4.134 GB, free: 59.71 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/13.16, allocations: 3.906 kB / 4.134 GB, free: 59.71 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004336/13.17, allocations: 2.109 MB / 4.136 GB, free: 59.46 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.01618/13.18, allocations: 5.784 MB / 4.141 GB, free: 58.94 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/13.18, allocations: 2.953 kB / 4.141 GB, free: 58.94 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/13.18, allocations: 321 kB / 4.142 GB, free: 58.94 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/13.19, allocations: 0.5627 MB / 4.142 GB, free: 58.91 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001811/13.19, allocations: 53.09 kB / 4.142 GB, free: 58.91 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00273/13.19, allocations: 3.18 MB / 4.145 GB, free: 56.52 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/13.19, allocations: 1.656 kB / 4.145 GB, free: 56.52 MB / 1.245 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007263/13.2, allocations: 3.543 MB / 4.149 GB, free: 56.02 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003106/13.2, allocations: 0.7147 MB / 4.15 GB, free: 55.68 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00169/13.2, allocations: 37.31 kB / 4.15 GB, free: 55.68 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003958/13.2, allocations: 274.8 kB / 4.15 GB, free: 55.66 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/13.21, allocations: 113.4 kB / 4.15 GB, free: 55.66 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002027/13.21, allocations: 68.75 kB / 4.15 GB, free: 55.66 MB / 1.245 GB Notification: Performance of sorting global known variables: time 0.006155/13.21, allocations: 2.496 MB / 4.152 GB, free: 55.46 MB / 1.245 GB Notification: Performance of sort global known variables: time 1.7e-07/13.21, allocations: 4.625 kB / 4.152 GB, free: 55.46 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.01164/13.22, allocations: 2.101 MB / 4.154 GB, free: 55.35 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 (151): * Single equations (assignments): 144 * 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.01252/13.24, allocations: 6.585 MB / 4.161 GB, free: 53.51 MB / 1.245 GB Notification: Performance of simCode: created initialization part: time 0.00824/13.24, allocations: 3.903 MB / 4.165 GB, free: 53.07 MB / 1.245 GB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/13.24, allocations: 1.656 kB / 4.165 GB, free: 53.07 MB / 1.245 GB Notification: Performance of simCode: created simulation system equations: time 0.00215/13.25, allocations: 1.15 MB / 4.166 GB, free: 52.93 MB / 1.245 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01152/13.26, allocations: 2.036 MB / 4.168 GB, free: 52.91 MB / 1.245 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02362/13.28, allocations: 6.566 MB / 4.174 GB, free: 51.18 MB / 1.245 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003964/13.29, allocations: 2.52 MB / 4.177 GB, free: 50.39 MB / 1.245 GB Notification: Performance of simCode: alias equations: time 0.007347/13.29, allocations: 1.307 MB / 4.178 GB, free: 50.35 MB / 1.245 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002646/13.3, allocations: 1.927 MB / 4.18 GB, free: 50.34 MB / 1.245 GB Notification: Performance of SimCode: time 1.383e-06/13.3, allocations: 3.469 kB / 4.18 GB, free: 50.34 MB / 1.245 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3071/13.6, allocations: 150.1 MB / 4.326 GB, free: 42.48 MB / 1.245 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002113/13.6, allocations: 192.3 kB / 4.327 GB, free: 42.26 MB / 1.245 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.265/22.87, allocations: 0 / 4.327 GB, free: 42.26 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