Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001121/0.001121, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.009048/0.009048, allocations: 170 kB / 16.27 MB, free: 6.652 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.593/1.593, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.194/3.194, allocations: 470.6 MB / 0.7442 GB, free: 8.859 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004083/0.0004083, allocations: 11.84 kB / 0.9123 GB, free: 34.15 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4016/0.402, allocations: 161.4 MB / 1.07 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002401/0.4045, allocations: 1.203 MB / 1.071 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001534/0.4061, allocations: 0.7247 MB / 1.072 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.159e-05/0.4061, allocations: 0 / 1.072 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.479e-05/0.4062, allocations: 7.875 kB / 1.072 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.971e-05/0.4062, allocations: 7.922 kB / 1.072 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005553/0.4068, allocations: 103.8 kB / 1.072 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.4069, allocations: 63.84 kB / 1.072 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.407, allocations: 19.98 kB / 1.072 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.45e-05/0.4072, allocations: 31.84 kB / 1.072 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.952e-05/0.4072, allocations: 39.83 kB / 1.072 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.4073, allocations: 4 kB / 1.072 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002213/0.4075, allocations: 83.91 kB / 1.072 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.25e-05/0.4075, allocations: 15.92 kB / 1.072 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.467e-05/0.4076, allocations: 57.5 kB / 1.072 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002236/0.4078, allocations: 131.9 kB / 1.072 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.4079, allocations: 4 kB / 1.072 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.683e-06/0.4079, allocations: 4 kB / 1.072 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.4079, allocations: 0 / 1.072 GB, free: 8.906 MB / 0.8262 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.0006881/0.4086, allocations: 409 kB / 1.073 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.4086, allocations: 8.031 kB / 1.073 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.955e-05/0.4087, allocations: 4.938 kB / 1.073 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.4089, allocations: 176.2 kB / 1.073 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.463e-05/0.4089, allocations: 4.375 kB / 1.073 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.005e-05/0.4089, allocations: 8.375 kB / 1.073 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.4092, allocations: 77.91 kB / 1.073 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.4092, allocations: 0 / 1.073 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.4092, allocations: 3.984 kB / 1.073 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.4092, allocations: 0 / 1.073 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.4094, allocations: 39.98 kB / 1.073 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006483/0.41, allocations: 324.7 kB / 1.073 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/0.4102, allocations: 50.5 kB / 1.073 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.376e-05/0.4103, allocations: 44.91 kB / 1.073 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.4103, allocations: 0 / 1.073 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002102/0.4105, allocations: 87.42 kB / 1.073 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.4105, allocations: 0 / 1.073 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004437/0.411, allocations: 149.5 kB / 1.074 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.411, allocations: 59.39 kB / 1.074 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.4112, allocations: 117.8 kB / 1.074 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.4112, allocations: 29.7 kB / 1.074 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.451e-05/0.4113, allocations: 92.12 kB / 1.074 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.4113, allocations: 15.75 kB / 1.074 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.489e-05/0.4114, allocations: 21.72 kB / 1.074 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001676/0.4115, allocations: 326.7 kB / 1.074 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.586e-05/0.4116, allocations: 31.98 kB / 1.074 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.939e-05/0.4117, allocations: 50.55 kB / 1.074 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.4119, allocations: 78.81 kB / 1.074 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4119, allocations: 0 / 1.074 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002695/0.4122, allocations: 129.5 kB / 1.075 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.4122, allocations: 8 kB / 1.075 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.4123, allocations: 0 / 1.075 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.4123, allocations: 0 / 1.075 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.756e-05/0.4124, allocations: 15.98 kB / 1.075 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.4124, allocations: 0 / 1.075 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.929e-05/0.4125, allocations: 11.98 kB / 1.075 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.4125, allocations: 4 kB / 1.075 GB, free: 6.328 MB / 0.8262 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 0.0001211/0.4126, allocations: 125.8 kB / 1.075 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.645e-05/0.4126, allocations: 11.84 kB / 1.075 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.068e-05/0.4127, allocations: 12.38 kB / 1.075 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.4127, allocations: 0 / 1.075 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4127, allocations: 0 / 1.075 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.4127, allocations: 3.984 kB / 1.075 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005037/0.4132, allocations: 394.3 kB / 1.075 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.4132, allocations: 3.984 kB / 1.075 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.937e-05/0.4133, allocations: 4 kB / 1.075 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.4133, allocations: 0 / 1.075 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.749e-06/0.4133, allocations: 3.938 kB / 1.075 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.4133, allocations: 0 / 1.075 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.4133, allocations: 3.938 kB / 1.075 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003076/0.4136, allocations: 215.5 kB / 1.075 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.18e-05/0.4137, allocations: 85.02 kB / 1.075 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.4137, allocations: 0 / 1.075 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.016e-05/0.4138, allocations: 7.984 kB / 1.075 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.4138, allocations: 7.938 kB / 1.075 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.4139, allocations: 3.984 kB / 1.075 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.013e-05/0.4139, allocations: 95.28 kB / 1.076 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4139, allocations: 0 / 1.076 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003022/0.4142, allocations: 39.98 kB / 1.076 GB, free: 5.23 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 (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.0004086/0.4147, allocations: 164.8 kB / 1.076 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002589/0.4149, allocations: 79.95 kB / 1.076 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4149, allocations: 0 / 1.076 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.4151, allocations: 39.92 kB / 1.076 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.4153, allocations: 6.75 kB / 1.076 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004682/0.4158, allocations: 223.2 kB / 1.076 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.4162, allocations: 0.6926 MB / 1.077 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.55e-05/0.4162, allocations: 0.5469 kB / 1.077 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.739e-05/0.4162, allocations: 15.44 kB / 1.077 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of SimCode: time 2.8e-07/0.4162, allocations: 0 / 1.077 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of Templates: time 0.005278/0.4215, allocations: 1.369 MB / 1.078 GB, free: 2.613 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.makefile (rm -f Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; mkfifo Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe >> ../files/Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.sim & ./Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingPakistan.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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