Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.005435/0.005435, allocations: 97.38 kB / 15.73 MB, free: 6.066 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.001217/0.001217, allocations: 195.5 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.505/2.505, allocations: 437 MB / 0.7105 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 63.91 kB / 1.018 GB, free: 9.445 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9694/0.9708, allocations: 151.6 MB / 1.167 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.00302/0.9739, allocations: 1.48 MB / 1.168 GB, free: 2.367 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001532/0.9755, allocations: 0.7284 MB / 1.169 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.828e-05/0.9756, allocations: 0 / 1.169 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.245e-05/0.9756, allocations: 3.938 kB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.553e-05/0.9757, allocations: 11.88 kB / 1.169 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006194/0.9763, allocations: 123.6 kB / 1.169 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001363/0.9765, allocations: 83.75 kB / 1.169 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.9766, allocations: 12 kB / 1.169 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.665e-05/0.9767, allocations: 35.84 kB / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.44e-05/0.9768, allocations: 39.83 kB / 1.169 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/0.9768, allocations: 8 kB / 1.169 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.977, allocations: 91.91 kB / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.37e-05/0.9771, allocations: 23.92 kB / 1.169 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.716e-05/0.9771, allocations: 31.8 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002679/0.9774, allocations: 148 kB / 1.169 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.9774, allocations: 0 / 1.169 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.422e-06/0.9774, allocations: 0 / 1.169 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.118e-05/0.9774, allocations: 0 / 1.169 GB, free: 1.035 MB / 0.8887 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.0006823/0.9781, allocations: 428.7 kB / 1.17 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.9782, allocations: 8.031 kB / 1.17 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.317e-05/0.9782, allocations: 12.89 kB / 1.17 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001381/0.9784, allocations: 172.3 kB / 1.17 GB, free: 344 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.9784, allocations: 4.375 kB / 1.17 GB, free: 340 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.9784, allocations: 4.359 kB / 1.17 GB, free: 336 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.9786, allocations: 77.91 kB / 1.17 GB, free: 252 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.9786, allocations: 0 / 1.17 GB, free: 252 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.9786, allocations: 0 / 1.17 GB, free: 252 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.9787, allocations: 8 kB / 1.17 GB, free: 244 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001249/0.9788, allocations: 39.91 kB / 1.17 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006507/0.9795, allocations: 320.7 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.9796, allocations: 46.5 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.237e-05/0.9797, allocations: 32.97 kB / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.9797, allocations: 0 / 1.17 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.9799, allocations: 83.38 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.98, allocations: 0 / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0004093/0.9804, allocations: 141.5 kB / 1.171 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.9804, allocations: 51.41 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.9806, allocations: 121.8 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.9806, allocations: 29.7 kB / 1.171 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.457e-05/0.9807, allocations: 96.08 kB / 1.171 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.9807, allocations: 15.97 kB / 1.171 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-05/0.9808, allocations: 33.7 kB / 1.171 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.9809, allocations: 318.8 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.217e-05/0.981, allocations: 27.97 kB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.1e-05/0.9811, allocations: 46.56 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.9813, allocations: 74.48 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.9813, allocations: 0 / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002344/0.9815, allocations: 113.5 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.9815, allocations: 4 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.9815, allocations: 8.453 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.9816, allocations: 0 / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.233e-05/0.9817, allocations: 11.98 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.9817, allocations: 0 / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.546e-05/0.9818, allocations: 15.88 kB / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.9818, allocations: 4 kB / 1.172 GB, free: 14.48 MB / 0.9044 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.978e-05/0.9819, allocations: 126.5 kB / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.779e-05/0.9819, allocations: 11.94 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.792e-05/0.9819, allocations: 12.38 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.982, allocations: 4 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.982, allocations: 0 / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.982, allocations: 0 / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004463/0.9824, allocations: 382.4 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.9824, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.805e-05/0.9825, allocations: 7.938 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.9825, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.9825, allocations: 3.984 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.9825, allocations: 8 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.9825, allocations: 3.938 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.9828, allocations: 199.5 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.544e-05/0.9829, allocations: 89.05 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.9829, allocations: 0 / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.257e-05/0.983, allocations: 8 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.841e-05/0.983, allocations: 15.92 kB / 1.172 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.983, allocations: 4 kB / 1.172 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.176e-05/0.9831, allocations: 95.86 kB / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9831, allocations: 0 / 1.172 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003028/0.9834, allocations: 35.94 kB / 1.173 GB, free: 13.4 MB / 0.9044 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.0003973/0.9838, allocations: 172.8 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002482/0.9841, allocations: 71.94 kB / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.9841, allocations: 0 / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.9842, allocations: 35.92 kB / 1.173 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.9845, allocations: 14.83 kB / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004327/0.9849, allocations: 185 kB / 1.173 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.9852, allocations: 0.6885 MB / 1.174 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.869e-05/0.9853, allocations: 4 kB / 1.174 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.609e-05/0.9853, allocations: 19.42 kB / 1.174 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.9853, allocations: 3.938 kB / 1.174 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of Templates: time 0.004452/0.9898, allocations: 1.461 MB / 1.175 GB, free: 10.71 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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