Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.605/2.605, allocations: 436.5 MB / 0.7104 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003707/0.0003709, allocations: 8 kB / 0.8708 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6713/0.6717, allocations: 153.7 MB / 1.021 GB, free: 1.223 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.001445/0.6731, allocations: 1.176 MB / 1.022 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001045/0.6742, allocations: 0.6706 MB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.593e-05/0.6743, allocations: 0 / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.667e-05/0.6743, allocations: 11.92 kB / 1.023 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.089e-05/0.6744, allocations: 11.98 kB / 1.023 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004177/0.6748, allocations: 91.64 kB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.902e-05/0.6749, allocations: 47.92 kB / 1.023 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.643e-05/0.675, allocations: 8 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.277e-05/0.675, allocations: 31.91 kB / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.24e-05/0.6751, allocations: 39.83 kB / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.6751, allocations: 4 kB / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.6753, allocations: 63.92 kB / 1.023 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.193e-05/0.6753, allocations: 15.92 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.629e-05/0.6754, allocations: 33.7 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.6755, allocations: 105.9 kB / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.6755, allocations: 0 / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.553e-06/0.6755, allocations: 0 / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.6755, allocations: 0 / 1.023 GB, free: 14.9 MB / 0.7794 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.0005671/0.6761, allocations: 412.8 kB / 1.023 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.6762, allocations: 15.98 kB / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.649e-05/0.6762, allocations: 11.84 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.6763, allocations: 163 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.6764, allocations: 4 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.6764, allocations: 11.95 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.6766, allocations: 65.66 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.6766, allocations: 4 kB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.6766, allocations: 0 / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.6766, allocations: 4 kB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001281/0.6767, allocations: 39.97 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005797/0.6773, allocations: 332.6 kB / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.6775, allocations: 54.5 kB / 1.024 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.6775, allocations: 0 / 1.024 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001831/0.6777, allocations: 83.5 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.6777, allocations: 0 / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000383/0.6781, allocations: 145.5 kB / 1.024 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.6781, allocations: 55.41 kB / 1.024 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.514e-05/0.6782, allocations: 125.8 kB / 1.025 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.6783, allocations: 29.64 kB / 1.025 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.154e-05/0.6783, allocations: 92.33 kB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.6783, allocations: 15.86 kB / 1.025 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-06/0.6784, allocations: 8 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.6785, allocations: 310.8 kB / 1.025 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.904e-05/0.6785, allocations: 27.98 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.118e-05/0.6786, allocations: 54.55 kB / 1.025 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.944e-05/0.6787, allocations: 39.94 kB / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.6788, allocations: 0 / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002396/0.679, allocations: 121.8 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.679, allocations: 8 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.679, allocations: 0 / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.679, allocations: 0 / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.781e-05/0.6791, allocations: 19.92 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.6792, allocations: 4.062 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.087e-05/0.6792, allocations: 19.83 kB / 1.025 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.6793, allocations: 8.062 kB / 1.025 GB, free: 12.43 MB / 0.7794 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 8.615e-05/0.6794, allocations: 120.7 kB / 1.025 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.319e-05/0.6794, allocations: 4 kB / 1.025 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.865e-05/0.6794, allocations: 16.36 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.6794, allocations: 0 / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.6794, allocations: 0 / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.6794, allocations: 4 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004453/0.6799, allocations: 390.3 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.6799, allocations: 4 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.936e-05/0.68, allocations: 7.938 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.68, allocations: 0 / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.68, allocations: 7.984 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.68, allocations: 0 / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/0.68, allocations: 0 / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.6803, allocations: 219.3 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.588e-05/0.6803, allocations: 85.02 kB / 1.026 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2e-05/0.6804, allocations: 3.984 kB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.122e-05/0.6805, allocations: 8 kB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.642e-05/0.6805, allocations: 7.984 kB / 1.026 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.6805, allocations: 4 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.661e-05/0.6806, allocations: 91.27 kB / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6806, allocations: 0 / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003027/0.6809, allocations: 40 kB / 1.026 GB, free: 11.34 MB / 0.7794 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.0002912/0.6812, allocations: 153.8 kB / 1.026 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002336/0.6814, allocations: 79.88 kB / 1.026 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.6814, allocations: 0 / 1.026 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.452e-05/0.6815, allocations: 35.98 kB / 1.026 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001725/0.6817, allocations: 23.88 kB / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003668/0.6821, allocations: 212.9 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002442/0.6824, allocations: 0.6926 MB / 1.027 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.701e-05/0.6824, allocations: 8.188 kB / 1.027 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.35e-05/0.6824, allocations: 7.438 kB / 1.027 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.6824, allocations: 4 kB / 1.027 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of Templates: time 0.003659/0.6861, allocations: 1.335 MB / 1.029 GB, free: 8.754 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","../files/Buildings_latest_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