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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001253/0.001253, allocations: 98.27 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.001911/0.001911, allocations: 173.4 kB / 16.27 MB, free: 6.664 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.439/1.439, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.816/2.816, allocations: 462.6 MB / 0.7364 GB, free: 308 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003634/0.0003635, allocations: 10.03 kB / 0.9028 GB, free: 36.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3378, allocations: 159.6 MB / 1.059 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.00207/0.3399, allocations: 1.206 MB / 1.06 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001438/0.3414, allocations: 0.7245 MB / 1.061 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.245e-05/0.3415, allocations: 0 / 1.061 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.315e-05/0.3415, allocations: 7.938 kB / 1.061 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.193e-05/0.3416, allocations: 7.922 kB / 1.061 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005239/0.3421, allocations: 111.7 kB / 1.061 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001185/0.3422, allocations: 67.84 kB / 1.061 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.3424, allocations: 7.984 kB / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.954e-05/0.3424, allocations: 43.83 kB / 1.061 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.931e-05/0.3425, allocations: 31.84 kB / 1.061 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.3425, allocations: 0 / 1.061 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001851/0.3427, allocations: 91.91 kB / 1.061 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.673e-05/0.3428, allocations: 15.91 kB / 1.061 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.871e-05/0.3428, allocations: 61.56 kB / 1.061 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002154/0.3431, allocations: 135.8 kB / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3431, allocations: 0 / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.635e-06/0.3431, allocations: 0 / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.646e-06/0.3431, allocations: 0 / 1.061 GB, free: 2.969 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.000579/0.3437, allocations: 401.1 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.3437, allocations: 12.03 kB / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.623e-05/0.3438, allocations: 12.84 kB / 1.061 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.3439, allocations: 172.2 kB / 1.062 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.3439, allocations: 4.375 kB / 1.062 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.3439, allocations: 4.375 kB / 1.062 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/0.3441, allocations: 69.97 kB / 1.062 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.3442, allocations: 7.938 kB / 1.062 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.3442, allocations: 4 kB / 1.062 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.3442, allocations: 3.938 kB / 1.062 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.3443, allocations: 47.97 kB / 1.062 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005998/0.3449, allocations: 324.7 kB / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.3451, allocations: 50.56 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.001e-05/0.3452, allocations: 32.97 kB / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.3452, allocations: 7.938 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.3454, allocations: 83.31 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.124e-06/0.3455, allocations: 0 / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004241/0.3459, allocations: 149.7 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.3459, allocations: 51.41 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.3461, allocations: 129.7 kB / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.3461, allocations: 29.7 kB / 1.063 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.588e-05/0.3462, allocations: 88.14 kB / 1.063 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.3462, allocations: 23.73 kB / 1.063 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.24e-05/0.3462, allocations: 21.66 kB / 1.063 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.3464, allocations: 322.8 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.127e-05/0.3465, allocations: 23.98 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.03e-05/0.3466, allocations: 58.55 kB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/0.3467, allocations: 70.56 kB / 1.063 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.3467, allocations: 4 kB / 1.063 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002355/0.347, allocations: 117.5 kB / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.347, allocations: 13.34 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.347, allocations: 0 / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.347, allocations: 0 / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.935e-05/0.3471, allocations: 11.98 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.902e-06/0.3471, allocations: 4 kB / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.162e-05/0.3472, allocations: 8.062 kB / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.3472, allocations: 15.98 kB / 1.063 GB, free: 400 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,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.0001015/0.3473, allocations: 121 kB / 1.063 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.3474, allocations: 7.906 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.642e-05/0.3474, allocations: 8.375 kB / 1.063 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3474, allocations: 7.938 kB / 1.064 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3474, allocations: 3.938 kB / 1.064 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3474, allocations: 4 kB / 1.064 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004665/0.3479, allocations: 382.4 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3479, allocations: 0 / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.93e-05/0.348, allocations: 7.984 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.348, allocations: 4 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.348, allocations: 0 / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.348, allocations: 4 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.348, allocations: 7.875 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002895/0.3483, allocations: 223.3 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.922e-05/0.3483, allocations: 85.02 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.3484, allocations: 0 / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.697e-05/0.3485, allocations: 11.98 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.3485, allocations: 11.94 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.3485, allocations: 0 / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.992e-05/0.3486, allocations: 95.86 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3486, allocations: 0 / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002855/0.3489, allocations: 43.98 kB / 1.064 GB, free: 15.29 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.000325/0.3492, allocations: 156.8 kB / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000252/0.3495, allocations: 71.91 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3495, allocations: 4 kB / 1.065 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.3496, allocations: 44.03 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/0.3499, allocations: 9.688 kB / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003756/0.3502, allocations: 214 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.3505, allocations: 0.6965 MB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.272e-05/0.3505, allocations: 4 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.583e-05/0.3506, allocations: 11.44 kB / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3506, allocations: 0 / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of Templates: time 0.003807/0.3544, allocations: 1.363 MB / 1.067 GB, free: 12.68 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