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.00132/0.00132, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001398/0.001398, allocations: 195.8 kB / 16.26 MB, free: 6.629 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.46/1.46, allocations: 222.9 MB / 239.9 MB, free: 4.543 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 2.831/2.831, allocations: 469.8 MB / 0.742 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 66.86 kB / 0.908 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3262, allocations: 159.2 MB / 1.063 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002766/0.329, allocations: 1.538 MB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001314/0.3303, allocations: 0.7285 MB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.247e-05/0.3304, allocations: 4 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.037e-05/0.3305, allocations: 7.922 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.891e-05/0.3305, allocations: 3.938 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005296/0.3311, allocations: 111.8 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.3312, allocations: 67.84 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.3313, allocations: 19.97 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.613e-05/0.3314, allocations: 35.86 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.398e-05/0.3315, allocations: 39.81 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.909e-05/0.3315, allocations: 8 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.3317, allocations: 95.91 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.604e-05/0.3317, allocations: 15.92 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.819e-05/0.3317, allocations: 31.86 kB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.332, allocations: 139.8 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.332, allocations: 0 / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.473e-06/0.332, allocations: 4 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.189e-06/0.332, allocations: 0 / 1.066 GB, free: 11.8 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.0006663/0.3327, allocations: 421 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.3327, allocations: 8.031 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.3328, allocations: 8.844 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.3329, allocations: 180.2 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.333, allocations: 4.375 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.333, allocations: 8.375 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001845/0.3332, allocations: 69.97 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3332, allocations: 4 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.3332, allocations: 4 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.3332, allocations: 0 / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.3334, allocations: 43.84 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006224/0.334, allocations: 316.8 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001259/0.3341, allocations: 46.56 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.849e-05/0.3342, allocations: 32.97 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.3343, allocations: 0 / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002171/0.3345, allocations: 83.3 kB / 1.067 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.3345, allocations: 4 kB / 1.067 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003913/0.3349, allocations: 137.6 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.335, allocations: 59.41 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.3351, allocations: 117.8 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.3351, allocations: 29.7 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.59e-05/0.3352, allocations: 88.05 kB / 1.068 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.672e-05/0.3352, allocations: 23.73 kB / 1.068 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.3353, allocations: 33.7 kB / 1.068 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3354, allocations: 322.8 kB / 1.068 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.443e-05/0.3355, allocations: 23.92 kB / 1.068 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/0.3356, allocations: 50.98 kB / 1.068 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.3358, allocations: 70.55 kB / 1.068 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3358, allocations: 4 kB / 1.068 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000231/0.336, allocations: 105.6 kB / 1.068 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.336, allocations: 8 kB / 1.068 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.3361, allocations: 3.984 kB / 1.068 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.3361, allocations: 3.938 kB / 1.068 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.085e-05/0.3362, allocations: 8 kB / 1.068 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.3362, allocations: 8.062 kB / 1.068 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.833e-05/0.3363, allocations: 19.83 kB / 1.068 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.3363, allocations: 4 kB / 1.068 GB, free: 9.242 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.776e-05/0.3364, allocations: 119 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.3364, allocations: 7.906 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.945e-05/0.3364, allocations: 12.36 kB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3365, allocations: 0 / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3365, allocations: 3.984 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.3365, allocations: 4 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004732/0.3369, allocations: 386.3 kB / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.337, allocations: 0 / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.792e-05/0.337, allocations: 7.938 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.337, allocations: 0 / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.337, allocations: 4 kB / 1.069 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.337, allocations: 3.984 kB / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.337, allocations: 3.938 kB / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002888/0.3373, allocations: 211.4 kB / 1.069 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.539e-05/0.3374, allocations: 81.02 kB / 1.069 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.3374, allocations: 4 kB / 1.069 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.97e-05/0.3375, allocations: 11.98 kB / 1.069 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/0.3376, allocations: 7.938 kB / 1.069 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.3376, allocations: 3.984 kB / 1.069 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.958e-05/0.3377, allocations: 103.4 kB / 1.069 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3377, allocations: 0 / 1.069 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002859/0.338, allocations: 36 kB / 1.069 GB, free: 8.152 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.0003758/0.3383, allocations: 155.7 kB / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002558/0.3386, allocations: 83.89 kB / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3386, allocations: 0 / 1.07 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.463e-05/0.3387, allocations: 35.92 kB / 1.07 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.339, allocations: 15.72 kB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004162/0.3394, allocations: 201.1 kB / 1.07 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.3397, allocations: 0.6885 MB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.828e-05/0.3398, allocations: 4 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.707e-05/0.3398, allocations: 7.438 kB / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3398, allocations: 0 / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of Templates: time 0.004387/0.3442, allocations: 1.425 MB / 1.072 GB, free: 5.512 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