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.001504/0.001505, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001905/0.001905, allocations: 172.7 kB / 15.95 MB, free: 208 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.644/1.644, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.104/3.104, allocations: 462.6 MB / 0.736 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004457/0.0004459, allocations: 7.969 kB / 0.9021 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3407, allocations: 159.6 MB / 1.058 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.001655/0.3424, allocations: 1.178 MB / 1.059 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001524/0.3439, allocations: 0.6858 MB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.776e-05/0.344, allocations: 4 kB / 1.06 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.425e-05/0.344, allocations: 4 kB / 1.06 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.432e-05/0.3441, allocations: 15.84 kB / 1.06 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006189/0.3447, allocations: 95.77 kB / 1.06 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.3449, allocations: 67.78 kB / 1.06 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.345, allocations: 7.984 kB / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.3451, allocations: 31.91 kB / 1.06 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.287e-05/0.3452, allocations: 27.91 kB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.3453, allocations: 8 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002199/0.3455, allocations: 87.84 kB / 1.06 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.756e-05/0.3455, allocations: 11.92 kB / 1.06 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.287e-05/0.3456, allocations: 37.7 kB / 1.06 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002128/0.3458, allocations: 100 kB / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3458, allocations: 0 / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.053e-06/0.3458, allocations: 0 / 1.06 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.3458, allocations: 0 / 1.06 GB, free: 2.965 MB / 0.8106 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.0007544/0.3466, allocations: 412.9 kB / 1.061 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.3467, allocations: 8.031 kB / 1.061 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.005e-05/0.3467, allocations: 7.906 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000163/0.3469, allocations: 170.9 kB / 1.061 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.181e-05/0.3469, allocations: 11.88 kB / 1.061 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.373e-05/0.347, allocations: 8 kB / 1.061 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.3472, allocations: 65.66 kB / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.3472, allocations: 4 kB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.3473, allocations: 4 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.3473, allocations: 0 / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001573/0.3474, allocations: 39.97 kB / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007191/0.3482, allocations: 324.8 kB / 1.061 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001415/0.3483, allocations: 50.5 kB / 1.061 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.699e-05/0.3484, allocations: 32.97 kB / 1.061 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.3484, allocations: 3.938 kB / 1.061 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002313/0.3487, allocations: 91.38 kB / 1.061 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.3487, allocations: 0 / 1.061 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004753/0.3492, allocations: 157.5 kB / 1.062 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.3492, allocations: 55.41 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.3494, allocations: 113.8 kB / 1.062 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.3494, allocations: 29.7 kB / 1.062 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.579e-05/0.3495, allocations: 96.22 kB / 1.062 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.3495, allocations: 11.84 kB / 1.062 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.014e-05/0.3495, allocations: 4 kB / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001882/0.3497, allocations: 326.8 kB / 1.062 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.021e-05/0.3498, allocations: 27.98 kB / 1.062 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.425e-05/0.3499, allocations: 50.94 kB / 1.062 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.227e-05/0.35, allocations: 31.98 kB / 1.062 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.35, allocations: 4 kB / 1.062 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002411/0.3503, allocations: 117.5 kB / 1.062 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.3503, allocations: 10.03 kB / 1.062 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3503, allocations: 0 / 1.062 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.3503, allocations: 0 / 1.062 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.934e-05/0.3504, allocations: 15.92 kB / 1.063 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3504, allocations: 4 kB / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.608e-05/0.3505, allocations: 15.97 kB / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.3505, allocations: 7.984 kB / 1.063 GB, free: 476 kB / 0.8106 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.0001101/0.3507, allocations: 117.8 kB / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.498e-05/0.3507, allocations: 7.906 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.861e-05/0.3507, allocations: 8.375 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3507, allocations: 4 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3507, allocations: 0 / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3507, allocations: 7.984 kB / 1.063 GB, free: 320 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004788/0.3512, allocations: 386.4 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3512, allocations: 0 / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.995e-05/0.3513, allocations: 7.984 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.758e-05/0.3513, allocations: 4 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.3513, allocations: 4 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3513, allocations: 4 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3513, allocations: 480 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.3516, allocations: 227.3 kB / 1.063 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.314e-05/0.3517, allocations: 77.11 kB / 1.063 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.3517, allocations: 4 kB / 1.063 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.615e-05/0.3518, allocations: 15.98 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.042e-05/0.3519, allocations: 0 / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.3519, allocations: 4 kB / 1.063 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.822e-05/0.3519, allocations: 99.36 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3519, allocations: 3.938 kB / 1.063 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002961/0.3522, allocations: 43.89 kB / 1.064 GB, free: 15.36 MB / 0.8262 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.0003365/0.3526, allocations: 156 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002374/0.3528, allocations: 71.91 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.3529, allocations: 0 / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.841e-05/0.353, allocations: 48.03 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.3532, allocations: 12.28 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003989/0.3536, allocations: 203.1 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.3539, allocations: 0.6887 MB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.472e-05/0.3539, allocations: 4.188 kB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.544e-05/0.354, allocations: 11.44 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.354, allocations: 0 / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of Templates: time 0.004134/0.3581, allocations: 1.358 MB / 1.066 GB, free: 12.78 MB / 0.8262 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