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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.005708/0.005708, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.001265/0.001265, allocations: 194.6 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.745/2.745, allocations: 472.7 MB / 0.7453 GB, free: 456 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 63.88 kB / 1.069 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.961/0.9622, allocations: 159.9 MB / 1.226 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002826/0.965, allocations: 1.48 MB / 1.227 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.00134/0.9664, allocations: 0.7218 MB / 1.228 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.84e-05/0.9665, allocations: 4 kB / 1.228 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 5.425e-05/0.9666, allocations: 7.875 kB / 1.228 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.513e-05/0.9666, allocations: 15.86 kB / 1.228 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008739/0.9675, allocations: 123.6 kB / 1.228 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002034/0.9677, allocations: 79.77 kB / 1.228 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.9679, allocations: 11.94 kB / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.968, allocations: 31.92 kB / 1.228 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 9.767e-05/0.9682, allocations: 43.83 kB / 1.228 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.9682, allocations: 12 kB / 1.228 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000251/0.9685, allocations: 95.84 kB / 1.228 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.485e-05/0.9685, allocations: 15.91 kB / 1.228 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.391e-05/0.9686, allocations: 31.86 kB / 1.228 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003433/0.9689, allocations: 148 kB / 1.228 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.9689, allocations: 0 / 1.228 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.075e-06/0.969, allocations: 0 / 1.228 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.977e-06/0.969, allocations: 0 / 1.228 GB, free: 10.69 MB / 0.9512 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.0009275/0.9699, allocations: 424.7 kB / 1.229 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.97, allocations: 8.031 kB / 1.229 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.74e-05/0.97, allocations: 8.891 kB / 1.229 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.9702, allocations: 184.2 kB / 1.229 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.281e-05/0.9702, allocations: 4.375 kB / 1.229 GB, free: 9.98 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.9703, allocations: 4.375 kB / 1.229 GB, free: 9.977 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.9705, allocations: 73.91 kB / 1.229 GB, free: 9.898 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.9705, allocations: 0 / 1.229 GB, free: 9.898 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.9705, allocations: 4 kB / 1.229 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.9705, allocations: 0 / 1.229 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.9707, allocations: 39.97 kB / 1.229 GB, free: 9.855 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005925/0.9713, allocations: 312.7 kB / 1.229 GB, free: 9.5 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.9714, allocations: 54.48 kB / 1.229 GB, free: 9.438 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.423e-05/0.9715, allocations: 32.97 kB / 1.229 GB, free: 9.402 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.9715, allocations: 8.062 kB / 1.229 GB, free: 9.395 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001803/0.9717, allocations: 71.38 kB / 1.23 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.9717, allocations: 0 / 1.23 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0003782/0.9721, allocations: 141.5 kB / 1.23 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.9722, allocations: 51.41 kB / 1.23 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.543e-05/0.9722, allocations: 133.7 kB / 1.23 GB, free: 8.965 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.9723, allocations: 33.7 kB / 1.23 GB, free: 8.926 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.894e-05/0.9723, allocations: 84.14 kB / 1.23 GB, free: 8.84 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.057e-05/0.9724, allocations: 19.89 kB / 1.23 GB, free: 8.82 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.757e-05/0.9724, allocations: 29.7 kB / 1.23 GB, free: 8.785 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.975e-05/0.9725, allocations: 318.8 kB / 1.23 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.916e-05/0.9726, allocations: 27.98 kB / 1.23 GB, free: 8.438 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.812e-05/0.9727, allocations: 54.55 kB / 1.23 GB, free: 8.375 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001477/0.9728, allocations: 66.81 kB / 1.23 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.9729, allocations: 0 / 1.23 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002263/0.9731, allocations: 121.6 kB / 1.231 GB, free: 8.176 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.9731, allocations: 8 kB / 1.231 GB, free: 8.168 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.9731, allocations: 3.938 kB / 1.231 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.9731, allocations: 0 / 1.231 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.946e-05/0.9732, allocations: 11.98 kB / 1.231 GB, free: 8.152 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.9733, allocations: 4 kB / 1.231 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.337e-05/0.9733, allocations: 7.938 kB / 1.231 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.9733, allocations: 11.92 kB / 1.231 GB, free: 8.129 MB / 0.9512 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,hea.curSeed,$PRE.hea.curSeed,hea.p,$PRE.hea.p,hea.on,$PRE.hea.on,hea.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.41e-05/0.9734, allocations: 130.3 kB / 1.231 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.44e-05/0.9735, allocations: 3.953 kB / 1.231 GB, free: 7.988 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.672e-05/0.9735, allocations: 12.38 kB / 1.231 GB, free: 7.973 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.9735, allocations: 0 / 1.231 GB, free: 7.973 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.9735, allocations: 0 / 1.231 GB, free: 7.973 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.9735, allocations: 0 / 1.231 GB, free: 7.973 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004251/0.974, allocations: 386.4 kB / 1.231 GB, free: 7.539 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.974, allocations: 4 kB / 1.231 GB, free: 7.535 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.887e-05/0.974, allocations: 7.984 kB / 1.231 GB, free: 7.527 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.974, allocations: 4 kB / 1.231 GB, free: 7.523 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.974, allocations: 0 / 1.231 GB, free: 7.523 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.974, allocations: 0 / 1.231 GB, free: 7.523 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.974, allocations: 3.938 kB / 1.231 GB, free: 7.52 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002881/0.9743, allocations: 207.5 kB / 1.231 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.58e-05/0.9744, allocations: 81.06 kB / 1.231 GB, free: 7.203 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.9744, allocations: 0 / 1.231 GB, free: 7.203 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.476e-05/0.9745, allocations: 11.98 kB / 1.231 GB, free: 7.191 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.817e-05/0.9746, allocations: 15.88 kB / 1.231 GB, free: 7.176 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.9746, allocations: 0 / 1.231 GB, free: 7.176 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.83e-05/0.9746, allocations: 95.27 kB / 1.232 GB, free: 7.082 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9746, allocations: 0 / 1.232 GB, free: 7.082 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002952/0.9749, allocations: 39.92 kB / 1.232 GB, free: 7.043 MB / 0.9512 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003298/0.9753, allocations: 177 kB / 1.232 GB, free: 6.879 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002305/0.9755, allocations: 67.91 kB / 1.232 GB, free: 6.812 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.9755, allocations: 0 / 1.232 GB, free: 6.812 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.696e-05/0.9756, allocations: 39.95 kB / 1.232 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.9759, allocations: 8.547 kB / 1.232 GB, free: 6.766 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003756/0.9763, allocations: 200.8 kB / 1.232 GB, free: 6.543 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002153/0.9765, allocations: 0.6846 MB / 1.233 GB, free: 5.832 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.78e-05/0.9765, allocations: 7.984 kB / 1.233 GB, free: 5.824 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.703e-05/0.9766, allocations: 11.44 kB / 1.233 GB, free: 5.812 MB / 0.9512 GB Notification: Performance of SimCode: time 2.4e-07/0.9766, allocations: 0 / 1.233 GB, free: 5.812 MB / 0.9512 GB Notification: Performance of Templates: time 0.003905/0.9805, allocations: 1.458 MB / 1.234 GB, free: 4.367 MB / 0.9512 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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