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.001395/0.001395, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 195 kB / 16.53 MB, free: 6.699 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.425/1.425, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.797/2.797, allocations: 472.6 MB / 0.7451 GB, free: 4.703 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.66 kB / 0.912 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3402, allocations: 159.9 MB / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002826/0.3431, allocations: 1.478 MB / 1.07 GB, free: 9 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001258/0.3444, allocations: 0.7321 MB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.111e-05/0.3444, allocations: 4 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.559e-05/0.3445, allocations: 3.938 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.537e-05/0.3445, allocations: 15.84 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005979/0.3451, allocations: 123.6 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.3453, allocations: 75.78 kB / 1.071 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.813e-05/0.3454, allocations: 11.98 kB / 1.071 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.518e-05/0.3455, allocations: 43.89 kB / 1.071 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.455e-05/0.3455, allocations: 35.84 kB / 1.071 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.403e-05/0.3456, allocations: 8 kB / 1.071 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001793/0.3457, allocations: 95.84 kB / 1.071 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.84e-05/0.3458, allocations: 19.92 kB / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.961e-05/0.3458, allocations: 31.84 kB / 1.071 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002221/0.3461, allocations: 139.9 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.3461, allocations: 0 / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.472e-06/0.3461, allocations: 4 kB / 1.071 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.3461, allocations: 0 / 1.071 GB, free: 7.66 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.0006367/0.3468, allocations: 423.3 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.3468, allocations: 12.03 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.661e-05/0.3469, allocations: 8.844 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.347, allocations: 172.2 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.347, allocations: 4.359 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.826e-05/0.347, allocations: 8.312 kB / 1.072 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.3472, allocations: 73.97 kB / 1.072 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.281e-06/0.3472, allocations: 3.938 kB / 1.072 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.3473, allocations: 4 kB / 1.072 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.3473, allocations: 0 / 1.072 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.3474, allocations: 39.95 kB / 1.072 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006091/0.348, allocations: 316.8 kB / 1.072 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.3482, allocations: 50.5 kB / 1.072 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.576e-05/0.3483, allocations: 36.97 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.3483, allocations: 0 / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001808/0.3485, allocations: 79.38 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.3485, allocations: 0 / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003923/0.3489, allocations: 141.5 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.3489, allocations: 55.41 kB / 1.072 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00019/0.3491, allocations: 129.7 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.3491, allocations: 25.7 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.574e-05/0.3492, allocations: 96.19 kB / 1.073 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/0.3492, allocations: 15.75 kB / 1.073 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.3493, allocations: 29.7 kB / 1.073 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.3494, allocations: 330.8 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.064e-05/0.3495, allocations: 23.98 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.01e-05/0.3496, allocations: 42.56 kB / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/0.3498, allocations: 74.48 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3498, allocations: 4 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002412/0.35, allocations: 113.5 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.35, allocations: 4 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3501, allocations: 0 / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3501, allocations: 7.938 kB / 1.073 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.401e-05/0.3502, allocations: 11.98 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.3502, allocations: 0 / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.24e-05/0.3503, allocations: 8 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.3503, allocations: 8.062 kB / 1.073 GB, free: 5.109 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 9.597e-05/0.3504, allocations: 125.7 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.701e-05/0.3504, allocations: 7.906 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.476e-05/0.3504, allocations: 12.38 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3504, allocations: 0 / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3504, allocations: 4 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3505, allocations: 3.938 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004264/0.3509, allocations: 386.3 kB / 1.074 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3509, allocations: 0 / 1.074 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.842e-05/0.3509, allocations: 4 kB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.3509, allocations: 3.984 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.351, allocations: 4 kB / 1.074 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.351, allocations: 0 / 1.074 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.351, allocations: 4.406 kB / 1.074 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002703/0.3513, allocations: 211.4 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.664e-05/0.3513, allocations: 89 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.832e-05/0.3513, allocations: 0 / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.62e-05/0.3514, allocations: 4 kB / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.3515, allocations: 11.92 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.3515, allocations: 4 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.488e-05/0.3515, allocations: 91.27 kB / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.543e-06/0.3516, allocations: 0 / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002794/0.3518, allocations: 39.94 kB / 1.074 GB, free: 4.023 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.000294/0.3521, allocations: 165.5 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003019/0.3525, allocations: 79.81 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3525, allocations: 0 / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.375e-05/0.3526, allocations: 40.11 kB / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000241/0.3528, allocations: 15.92 kB / 1.074 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004119/0.3532, allocations: 180.8 kB / 1.075 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.3535, allocations: 0.6924 MB / 1.075 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.491e-05/0.3536, allocations: 4 kB / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.722e-05/0.3536, allocations: 15.42 kB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3536, allocations: 0 / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of Templates: time 0.003945/0.3575, allocations: 1.451 MB / 1.077 GB, free: 1.355 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