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: translateModel(Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|boi.vol.T|val.y|conPID.u_s|conPID.u_m|conPID.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop") translateModel(Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|boi.vol.T|val.y|conPID.u_s|conPID.u_m|conPID.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.09/2.09, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001027/0.001027, allocations: 180.8 kB / 487.4 MB, free: 5.055 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.542/1.542, allocations: 221.5 MB / 0.7824 GB, free: 0.9766 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.000803/0.0008032, allocations: 95.84 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.356e-05/1.357e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2593, allocations: 142.4 MB / 1.206 GB, free: 44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.153/1.413, allocations: 457.3 MB / 1.652 GB, free: 13.82 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/1.413, allocations: 95.55 kB / 1.653 GB, free: 13.78 MB / 1.073 GB Notification: Performance of FrontEnd - DAE generated: time 9.017/10.43, allocations: 2.377 GB / 4.029 GB, free: 96.07 MB / 1.245 GB Notification: Performance of FrontEnd: time 1.894e-06/10.43, allocations: 2.562 kB / 4.029 GB, free: 96.07 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.0007873/10.43, allocations: 133.8 kB / 4.029 GB, free: 96.07 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.01811/10.45, allocations: 4.64 MB / 4.034 GB, free: 94.58 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 7.677e-05/10.45, allocations: 9.312 kB / 4.034 GB, free: 94.58 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007623/10.46, allocations: 1.09 MB / 4.035 GB, free: 94.28 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01576/10.47, allocations: 5.75 MB / 4.041 GB, free: 93.55 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/10.47, allocations: 88.5 kB / 4.041 GB, free: 93.55 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004927/10.47, allocations: 179.3 kB / 4.041 GB, free: 93.55 MB / 1.245 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003914/10.48, allocations: 2.213 MB / 4.043 GB, free: 93.53 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00409/10.48, allocations: 2.622 MB / 4.046 GB, free: 93.16 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.178e-05/10.48, allocations: 11.41 kB / 4.046 GB, free: 93.16 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002336/10.48, allocations: 1.469 kB / 4.046 GB, free: 93.16 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.21e-05/10.48, allocations: 106.9 kB / 4.046 GB, free: 93.16 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.02526/10.51, allocations: 17.18 MB / 4.062 GB, free: 83.25 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001839/10.51, allocations: 1.579 MB / 4.064 GB, free: 83.11 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/10.51, allocations: 0.9925 MB / 4.065 GB, free: 83.1 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009225/10.52, allocations: 3.884 MB / 4.069 GB, free: 81.86 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/10.52, allocations: 48.95 kB / 4.069 GB, free: 81.82 MB / 1.245 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004571/10.52, allocations: 1.002 MB / 4.07 GB, free: 81.76 MB / 1.245 GB Notification: Performance of pre-optimization done (n=150): time 7.945e-06/10.52, allocations: 2.344 kB / 4.07 GB, free: 81.76 MB / 1.245 GB Notification: Performance of matching and sorting (n=152): time 0.01549/10.54, allocations: 5.306 MB / 4.075 GB, free: 80.55 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/10.54, allocations: 119.1 kB / 4.075 GB, free: 80.42 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00581/10.55, allocations: 2.885 MB / 4.078 GB, free: 80.12 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.0005965/10.55, allocations: 30.02 kB / 4.078 GB, free: 80.09 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.00216/10.55, allocations: 2.186 MB / 4.08 GB, free: 79.47 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007037/10.55, allocations: 0.5023 MB / 4.081 GB, free: 79.14 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/10.55, allocations: 0 / 4.081 GB, free: 79.14 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.0001329/10.55, allocations: 384.9 kB / 4.081 GB, free: 78.83 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/10.55, allocations: 0.7116 MB / 4.082 GB, free: 78.82 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001674/10.55, allocations: 1.592 MB / 4.083 GB, free: 77.75 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002628/10.55, allocations: 1.046 MB / 4.084 GB, free: 77.72 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.561e-05/10.55, allocations: 4.844 kB / 4.084 GB, free: 77.72 MB / 1.245 GB Notification: Performance of matching and sorting (n=267) (initialization): time 0.008842/10.56, allocations: 3.121 MB / 4.087 GB, free: 77.39 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.001928/10.57, allocations: 8.727 MB / 4.096 GB, free: 68.05 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.707e-05/10.57, allocations: 20.28 kB / 4.096 GB, free: 68.05 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004282/10.57, allocations: 0.8709 MB / 4.097 GB, free: 68.03 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002616/10.57, allocations: 498 kB / 4.097 GB, free: 68.03 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003725/10.58, allocations: 3.487 MB / 4.101 GB, free: 65.7 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004991/10.58, allocations: 260.2 kB / 4.101 GB, free: 65.67 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005083/10.58, allocations: 125.2 kB / 4.101 GB, free: 65.67 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/10.58, allocations: 4.438 kB / 4.101 GB, free: 65.67 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006936/10.59, allocations: 2.542 MB / 4.103 GB, free: 65.59 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.052e-05/10.59, allocations: 20.31 kB / 4.103 GB, free: 65.59 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00379/10.59, allocations: 0.861 MB / 4.104 GB, free: 65.56 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002181/10.6, allocations: 484 kB / 4.105 GB, free: 65.56 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004969/10.6, allocations: 4.695 MB / 4.109 GB, free: 62.34 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004959/10.61, allocations: 244.2 kB / 4.11 GB, free: 62.32 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005092/10.61, allocations: 118.7 kB / 4.11 GB, free: 62.32 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.000937/10.61, allocations: 183 kB / 4.11 GB, free: 62.2 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/10.61, allocations: 424.2 kB / 4.11 GB, free: 61.97 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006946/10.61, allocations: 2.703 MB / 4.113 GB, free: 61.78 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.132e-05/10.61, allocations: 22.23 kB / 4.113 GB, free: 61.78 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/10.61, allocations: 3.75 kB / 4.113 GB, free: 61.78 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003928/10.62, allocations: 2.008 MB / 4.115 GB, free: 61.53 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.0135/10.63, allocations: 5.32 MB / 4.12 GB, free: 61.07 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/10.63, allocations: 0 / 4.12 GB, free: 61.07 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001517/10.63, allocations: 317.3 kB / 4.12 GB, free: 61.07 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/10.64, allocations: 0.5358 MB / 4.121 GB, free: 61.05 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001283/10.64, allocations: 30.92 kB / 4.121 GB, free: 61.05 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002481/10.64, allocations: 3.189 MB / 4.124 GB, free: 58.72 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/10.64, allocations: 0 / 4.124 GB, free: 58.72 MB / 1.245 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006701/10.64, allocations: 3.416 MB / 4.127 GB, free: 58.23 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002657/10.65, allocations: 0.6848 MB / 4.128 GB, free: 57.9 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008295/10.65, allocations: 7.25 kB / 4.128 GB, free: 57.9 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002632/10.65, allocations: 251.5 kB / 4.128 GB, free: 57.88 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/10.65, allocations: 109.7 kB / 4.128 GB, free: 57.88 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/10.65, allocations: 65.2 kB / 4.128 GB, free: 57.88 MB / 1.245 GB Notification: Performance of sorting global known variables: time 0.003708/10.66, allocations: 2.145 MB / 4.131 GB, free: 57.7 MB / 1.245 GB Notification: Performance of sort global known variables: time 2.41e-07/10.66, allocations: 0 / 4.131 GB, free: 57.7 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.0116/10.67, allocations: 1.986 MB / 4.132 GB, free: 57.6 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.005254/10.67, allocations: 2.508 MB / 4.135 GB, free: 56.7 MB / 1.245 GB Notification: Performance of simCode: created initialization part: time 0.007692/10.68, allocations: 3.706 MB / 4.139 GB, free: 56.29 MB / 1.245 GB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/10.68, allocations: 0 / 4.139 GB, free: 56.29 MB / 1.245 GB Notification: Performance of simCode: created simulation system equations: time 0.001942/10.68, allocations: 1.092 MB / 4.14 GB, free: 56.16 MB / 1.245 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01093/10.69, allocations: 1.832 MB / 4.141 GB, free: 56.14 MB / 1.245 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01165/10.7, allocations: 5.507 MB / 4.147 GB, free: 54.61 MB / 1.245 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001909/10.71, allocations: 2.512 MB / 4.149 GB, free: 53.82 MB / 1.245 GB Notification: Performance of simCode: alias equations: time 0.006971/10.71, allocations: 1.264 MB / 4.15 GB, free: 53.79 MB / 1.245 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007206/10.71, allocations: 240.6 kB / 4.151 GB, free: 53.78 MB / 1.245 GB Notification: Performance of SimCode: time 1.333e-06/10.71, allocations: 3.844 kB / 4.151 GB, free: 53.78 MB / 1.245 GB Notification: Performance of Templates: time 0.1469/10.86, allocations: 88.57 MB / 4.237 GB, free: 48.43 MB / 1.245 GB make -j1 -f Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.makefile (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 & ./Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Boilers_Examples_BoilerPolynomialClosedLoop.csv","../files/Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches