Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.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.BoilerPolynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|boi1.sta_a.T|boi1.sta_b.T|boi1.T|boi2.sta_a.T|boi2.sta_b.T|boi2.T|y.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial") translateModel(Buildings.Fluid.Boilers.Examples.BoilerPolynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|boi1.sta_a.T|boi1.sta_b.T|boi1.T|boi2.sta_a.T|boi2.sta_b.T|boi2.T|y.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.112/2.112, allocations: 387.1 MB / 399.7 MB, free: 9.48 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.001472/0.001472, allocations: 184.9 kB / 492.3 MB, free: 0.6094 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.38/1.38, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.0008793/0.0008794, allocations: 98.91 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.609e-05/2.612e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2395, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.039/1.279, allocations: 419.7 MB / 1.622 GB, free: 10.8 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/1.279, allocations: 82.83 kB / 1.622 GB, free: 10.76 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.568/2.847, allocations: 461.7 MB / 2.073 GB, free: 127.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 9.22e-07/2.847, allocations: 0 / 2.073 GB, free: 127.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 9.27e-05/2.847, allocations: 28 kB / 2.073 GB, free: 127.9 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.00221/2.849, allocations: 1.518 MB / 2.075 GB, free: 126.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/2.849, allocations: 8.031 kB / 2.075 GB, free: 126.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003565/2.85, allocations: 166.1 kB / 2.075 GB, free: 126.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/2.852, allocations: 1.398 MB / 2.076 GB, free: 124.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.503e-05/2.852, allocations: 73.94 kB / 2.076 GB, free: 124.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/2.852, allocations: 91.95 kB / 2.076 GB, free: 124.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/2.853, allocations: 0.9295 MB / 2.077 GB, free: 123.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/2.853, allocations: 0 / 2.077 GB, free: 123.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.487e-05/2.853, allocations: 40 kB / 2.077 GB, free: 123.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-05/2.853, allocations: 41.94 kB / 2.077 GB, free: 123.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008638/2.854, allocations: 0.6403 MB / 2.078 GB, free: 122.8 MB / 1.151 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.00376/2.858, allocations: 4.125 MB / 2.082 GB, free: 118.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007898/2.859, allocations: 0.4974 MB / 2.083 GB, free: 118 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/2.859, allocations: 258.3 kB / 2.083 GB, free: 117.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002758/2.859, allocations: 0.4986 MB / 2.083 GB, free: 117.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003913/2.86, allocations: 346.7 kB / 2.084 GB, free: 116.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=49): time 1.653e-06/2.86, allocations: 0 / 2.084 GB, free: 116.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=51): time 0.002464/2.862, allocations: 1.693 MB / 2.085 GB, free: 115 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/2.862, allocations: 132.9 kB / 2.085 GB, free: 114.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009673/2.863, allocations: 0.9711 MB / 2.086 GB, free: 113.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.374e-05/2.863, allocations: 37.7 kB / 2.086 GB, free: 113.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003287/2.864, allocations: 0.5894 MB / 2.087 GB, free: 113.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.649e-05/2.864, allocations: 169.6 kB / 2.087 GB, free: 113 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.711e-05/2.864, allocations: 12 kB / 2.087 GB, free: 113 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.372e-05/2.864, allocations: 330 kB / 2.087 GB, free: 112.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002611/2.864, allocations: 213.9 kB / 2.088 GB, free: 112.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003426/2.865, allocations: 417.2 kB / 2.088 GB, free: 112 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000355/2.865, allocations: 300.8 kB / 2.088 GB, free: 111.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/2.865, allocations: 7.938 kB / 2.088 GB, free: 111.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001068/2.866, allocations: 0.872 MB / 2.089 GB, free: 110.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002449/2.866, allocations: 1.533 MB / 2.091 GB, free: 109.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/2.866, allocations: 4 kB / 2.091 GB, free: 109.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004407/2.867, allocations: 145.6 kB / 2.091 GB, free: 109 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003481/2.867, allocations: 107.8 kB / 2.091 GB, free: 108.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/2.868, allocations: 2.228 MB / 2.093 GB, free: 106.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008392/2.869, allocations: 87.83 kB / 2.093 GB, free: 106.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.924e-05/2.869, allocations: 31.98 kB / 2.093 GB, free: 106.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.803e-06/2.869, allocations: 4 kB / 2.093 GB, free: 106.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009909/2.87, allocations: 0.7619 MB / 2.094 GB, free: 105.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/2.87, allocations: 4 kB / 2.094 GB, free: 105.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002594/2.871, allocations: 122.1 kB / 2.094 GB, free: 105.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003231/2.871, allocations: 103.8 kB / 2.094 GB, free: 105.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/2.872, allocations: 2.227 MB / 2.096 GB, free: 103 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007375/2.873, allocations: 71.84 kB / 2.096 GB, free: 102.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/2.873, allocations: 28 kB / 2.096 GB, free: 102.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,y.a,y.b,y.last,$PRE.y.nextEvent,y.nextEvent,y.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001764/2.873, allocations: 186.5 kB / 2.097 GB, free: 102.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/2.873, allocations: 118.6 kB / 2.097 GB, free: 102.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/2.874, allocations: 0.7949 MB / 2.097 GB, free: 101.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/2.874, allocations: 8 kB / 2.097 GB, free: 101.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/2.874, allocations: 128 / 2.097 GB, free: 101.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008211/2.875, allocations: 0.7433 MB / 2.098 GB, free: 101 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00216/2.877, allocations: 1.884 MB / 2.1 GB, free: 99 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/2.877, allocations: 0 / 2.1 GB, free: 99 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003095/2.878, allocations: 71.89 kB / 2.1 GB, free: 98.93 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000371/2.878, allocations: 141.7 kB / 2.1 GB, free: 98.79 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.333e-05/2.878, allocations: 15.94 kB / 2.1 GB, free: 98.77 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0011/2.879, allocations: 2.211 MB / 2.102 GB, free: 96.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/2.879, allocations: 4.031 kB / 2.102 GB, free: 96.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/2.881, allocations: 1.25 MB / 2.104 GB, free: 95.09 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003814/2.881, allocations: 287.5 kB / 2.104 GB, free: 94.79 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/2.881, allocations: 12.09 kB / 2.104 GB, free: 94.77 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005785/2.882, allocations: 43.94 kB / 2.104 GB, free: 94.73 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.413e-05/2.882, allocations: 39.88 kB / 2.104 GB, free: 94.69 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.83e-05/2.882, allocations: 36.09 kB / 2.104 GB, free: 94.66 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0007684/2.883, allocations: 0.7455 MB / 2.105 GB, free: 93.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.61e-07/2.883, allocations: 0 / 2.105 GB, free: 93.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00164/2.884, allocations: 0.6403 MB / 2.105 GB, free: 93.26 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (boi1.heaCapDry.T) * Number of discrete variables: 6 ($whenCondition1,y.a,y.b,y.last,y.nextEvent,y.nextEventScaled) * Number of discrete states: 6 (y.nextEvent,y.last,y.nextEventScaled,y.b,y.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008754/2.885, allocations: 0.5983 MB / 2.106 GB, free: 92.67 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001594/2.887, allocations: 1.328 MB / 2.107 GB, free: 91.29 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/2.887, allocations: 0 / 2.107 GB, free: 91.29 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004653/2.887, allocations: 474.1 kB / 2.108 GB, free: 90.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00228/2.89, allocations: 0.5534 MB / 2.108 GB, free: 90.26 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002312/2.892, allocations: 1.485 MB / 2.11 GB, free: 88.73 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/2.892, allocations: 1.157 MB / 2.111 GB, free: 87.55 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001201/2.894, allocations: 321 kB / 2.111 GB, free: 87.23 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/2.894, allocations: 63.42 kB / 2.111 GB, free: 87.17 MB / 1.151 GB Notification: Performance of SimCode: time 9.82e-07/2.894, allocations: 0 / 2.111 GB, free: 87.17 MB / 1.151 GB Notification: Performance of Templates: time 0.03948/2.933, allocations: 27.88 MB / 2.138 GB, free: 59.54 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.makefile (rm -f Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe ; mkfifo Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe >> ../files/Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.sim & ./Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Boilers_Examples_BoilerPolynomial.csv","../files/Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches