Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.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.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.297/2.297, allocations: 390.3 MB / 405.3 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.001136/0.001136, allocations: 182.5 kB / 498.1 MB, free: 5.672 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.664/1.664, allocations: 223.2 MB / 0.7948 GB, free: 17.86 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.001425/0.001425, allocations: 106.7 kB / 0.9346 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005847/0.0005849, allocations: 6.719 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3213, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2107/0.532, allocations: 151.2 MB / 1.371 GB, free: 10.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.5324, allocations: 83.89 kB / 1.371 GB, free: 10.72 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.009136/0.5415, allocations: 3.032 MB / 1.374 GB, free: 7.68 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.044e-06/0.5415, allocations: 4 kB / 1.374 GB, free: 7.676 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.513e-06/0.5415, allocations: 0 / 1.374 GB, free: 7.676 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005673/0.5421, allocations: 424.7 kB / 1.374 GB, free: 7.207 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.5422, allocations: 12.03 kB / 1.374 GB, free: 7.195 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.656e-05/0.5422, allocations: 11.86 kB / 1.374 GB, free: 7.184 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.5424, allocations: 170.9 kB / 1.374 GB, free: 6.977 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.5424, allocations: 4 kB / 1.374 GB, free: 6.973 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.5424, allocations: 11.94 kB / 1.374 GB, free: 6.961 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000191/0.5426, allocations: 73.64 kB / 1.374 GB, free: 6.883 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.5426, allocations: 0 / 1.374 GB, free: 6.883 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.5426, allocations: 0 / 1.374 GB, free: 6.883 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.5427, allocations: 4 kB / 1.374 GB, free: 6.879 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.5428, allocations: 39.97 kB / 1.374 GB, free: 6.84 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006016/0.5434, allocations: 316.8 kB / 1.375 GB, free: 6.48 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001222/0.5435, allocations: 54.5 kB / 1.375 GB, free: 6.418 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.5436, allocations: 4 kB / 1.375 GB, free: 6.414 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001599/0.5437, allocations: 87.39 kB / 1.375 GB, free: 6.316 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.5437, allocations: 0 / 1.375 GB, free: 6.316 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0003933/0.5441, allocations: 157.6 kB / 1.375 GB, free: 6.156 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.5442, allocations: 51.41 kB / 1.375 GB, free: 6.094 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.631e-05/0.5443, allocations: 112.9 kB / 1.375 GB, free: 5.977 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.5443, allocations: 33.7 kB / 1.375 GB, free: 5.938 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.747e-05/0.5444, allocations: 84.33 kB / 1.375 GB, free: 5.848 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.5444, allocations: 19.8 kB / 1.375 GB, free: 5.828 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-06/0.5444, allocations: 0 / 1.375 GB, free: 5.828 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.5445, allocations: 322.8 kB / 1.375 GB, free: 5.504 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.113e-05/0.5446, allocations: 27.97 kB / 1.376 GB, free: 5.477 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.983e-05/0.5447, allocations: 50.94 kB / 1.376 GB, free: 5.418 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.736e-05/0.5448, allocations: 43.92 kB / 1.376 GB, free: 5.375 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.5448, allocations: 0 / 1.376 GB, free: 5.375 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002243/0.5451, allocations: 121.4 kB / 1.376 GB, free: 5.25 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.5451, allocations: 4 kB / 1.376 GB, free: 5.246 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.5451, allocations: 4 kB / 1.376 GB, free: 5.242 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.5451, allocations: 0 / 1.376 GB, free: 5.242 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.812e-05/0.5452, allocations: 23.98 kB / 1.376 GB, free: 5.219 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.5453, allocations: 7.953 kB / 1.376 GB, free: 5.211 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.801e-05/0.5453, allocations: 7.938 kB / 1.376 GB, free: 5.203 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.5454, allocations: 4 kB / 1.376 GB, free: 5.199 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (hea.occ,$PRE.hea.on,hea.on,$PRE.hea.p,hea.p,$PRE.hea.curSeed,hea.curSeed,$whenCondition1,hea.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.5455, allocations: 114.5 kB / 1.376 GB, free: 5.078 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.903e-05/0.5455, allocations: 15.89 kB / 1.376 GB, free: 5.062 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.049e-05/0.5455, allocations: 8.375 kB / 1.376 GB, free: 5.055 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.5455, allocations: 0 / 1.376 GB, free: 5.055 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.5455, allocations: 4 kB / 1.376 GB, free: 5.051 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.5455, allocations: 3.953 kB / 1.376 GB, free: 5.047 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000445/0.546, allocations: 386.5 kB / 1.376 GB, free: 4.613 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.546, allocations: 3.984 kB / 1.376 GB, free: 4.609 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.815e-05/0.5461, allocations: 4 kB / 1.376 GB, free: 4.605 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.5461, allocations: 3.984 kB / 1.376 GB, free: 4.602 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.5461, allocations: 4 kB / 1.376 GB, free: 4.598 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.5461, allocations: 7.953 kB / 1.376 GB, free: 4.59 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.5461, allocations: 0 / 1.376 GB, free: 4.59 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002769/0.5464, allocations: 211.4 kB / 1.377 GB, free: 4.367 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/0.5464, allocations: 85.09 kB / 1.377 GB, free: 4.266 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.5465, allocations: 4 kB / 1.377 GB, free: 4.262 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.565e-05/0.5465, allocations: 4 kB / 1.377 GB, free: 4.258 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.464e-05/0.5466, allocations: 11.94 kB / 1.377 GB, free: 4.246 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.5466, allocations: 4 kB / 1.377 GB, free: 4.242 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.721e-05/0.5467, allocations: 91.27 kB / 1.377 GB, free: 4.152 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5467, allocations: 0 / 1.377 GB, free: 4.152 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003091/0.547, allocations: 51.84 kB / 1.377 GB, free: 4.102 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (hea.sampleTrigger,$whenCondition1,hea.occ,hea.on,hea.p,hea.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003879/0.5474, allocations: 184.4 kB / 1.377 GB, free: 3.922 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002189/0.5476, allocations: 75.91 kB / 1.377 GB, free: 3.848 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.5476, allocations: 0 / 1.377 GB, free: 3.848 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.27e-05/0.5477, allocations: 40.09 kB / 1.377 GB, free: 3.809 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001657/0.5479, allocations: 10 kB / 1.377 GB, free: 3.801 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004061/0.5483, allocations: 215.1 kB / 1.377 GB, free: 3.559 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.5485, allocations: 0.6926 MB / 1.378 GB, free: 2.84 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.616e-05/0.5486, allocations: 4.188 kB / 1.378 GB, free: 2.836 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.918e-05/0.5486, allocations: 15.42 kB / 1.378 GB, free: 2.82 MB / 0.8698 GB Notification: Performance of SimCode: time 2e-07/0.5486, allocations: 0 / 1.378 GB, free: 2.82 MB / 0.8698 GB Notification: Performance of Templates: time 0.003968/0.5526, allocations: 1.528 MB / 1.379 GB, free: 1.301 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,hea.TOut,hea.occ,hea.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,hea.A,hea.B,hea.TOut,hea.occ,hea.on,hea.samplePeriod,hea.seed,hea.t0,occ.startTime,occ.startValue,time