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.001486/0.001486, 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.001755/0.001755, allocations: 194.6 kB / 16.53 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.922/2.922, allocations: 472.7 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.00124, allocations: 66.17 kB / 0.9121 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3432, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingPakistan): time 0.002715/0.346, allocations: 1.463 MB / 1.07 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001178/0.3472, allocations: 0.7361 MB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.991e-05/0.3472, allocations: 0 / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.958e-05/0.3472, allocations: 3.938 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.5e-05/0.3473, allocations: 19.84 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005012/0.3478, allocations: 127.6 kB / 1.071 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.846e-05/0.3479, allocations: 67.84 kB / 1.071 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.563e-05/0.348, allocations: 15.98 kB / 1.071 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.003e-05/0.3481, allocations: 43.77 kB / 1.071 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.078e-05/0.3482, allocations: 31.91 kB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.955e-05/0.3482, allocations: 8 kB / 1.071 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001717/0.3484, allocations: 91.91 kB / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.67e-05/0.3484, allocations: 23.92 kB / 1.071 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.275e-05/0.3485, allocations: 31.84 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002184/0.3487, allocations: 147.8 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3487, allocations: 0 / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.813e-06/0.3487, allocations: 0 / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.3487, allocations: 0 / 1.071 GB, free: 7.582 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.0005992/0.3493, allocations: 417 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.3494, allocations: 8.031 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.287e-05/0.3494, allocations: 12.84 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.3495, allocations: 172.2 kB / 1.072 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.3495, allocations: 12.3 kB / 1.072 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.3496, allocations: 8.375 kB / 1.072 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.3498, allocations: 69.97 kB / 1.072 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.3498, allocations: 3.938 kB / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.3498, allocations: 0 / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.3498, allocations: 0 / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.35, allocations: 39.97 kB / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005649/0.3505, allocations: 316.8 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001213/0.3507, allocations: 42.56 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.484e-05/0.3508, allocations: 36.97 kB / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.3508, allocations: 7.938 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001803/0.351, allocations: 79.38 kB / 1.072 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.351, allocations: 0 / 1.072 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003675/0.3514, allocations: 141.5 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.3514, allocations: 59.47 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.718e-05/0.3515, allocations: 129.7 kB / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.3515, allocations: 25.7 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.915e-05/0.3516, allocations: 96.06 kB / 1.073 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.948e-05/0.3516, allocations: 19.75 kB / 1.073 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.621e-05/0.3517, allocations: 29.7 kB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001/0.3518, allocations: 322.8 kB / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.018e-05/0.3518, allocations: 23.98 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.12e-05/0.3519, allocations: 46.56 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.3521, allocations: 70.55 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3521, allocations: 3.938 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002304/0.3523, allocations: 117.8 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.3524, allocations: 9.625 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3524, allocations: 4 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.3524, allocations: 0 / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.129e-05/0.3525, allocations: 11.98 kB / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3525, allocations: 4.062 kB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.525e-05/0.3526, allocations: 8 kB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.3526, allocations: 4 kB / 1.073 GB, free: 5.031 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 8.181e-05/0.3527, allocations: 125.3 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.3527, allocations: 11.91 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.308e-05/0.3527, allocations: 12.31 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.3527, allocations: 4 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.3527, allocations: 0 / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3528, allocations: 0 / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004366/0.3532, allocations: 378.4 kB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.3532, allocations: 0 / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.225e-05/0.3533, allocations: 7.984 kB / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3533, allocations: 4 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.3533, allocations: 4 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.3533, allocations: 4 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.3533, allocations: 11.86 kB / 1.074 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002688/0.3536, allocations: 203.4 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.975e-05/0.3536, allocations: 93 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.3537, allocations: 0 / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.3538, allocations: 12 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.24e-05/0.3538, allocations: 7.922 kB / 1.074 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.3538, allocations: 4 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.856e-05/0.3539, allocations: 91.27 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3539, allocations: 0 / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002831/0.3542, allocations: 36 kB / 1.074 GB, free: 3.945 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.0003198/0.3545, allocations: 168.6 kB / 1.074 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002324/0.3548, allocations: 71.89 kB / 1.074 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3548, allocations: 0 / 1.074 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.3549, allocations: 35.92 kB / 1.074 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.3551, allocations: 11.98 kB / 1.074 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000373/0.3555, allocations: 181 kB / 1.075 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.3558, allocations: 0.6885 MB / 1.075 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.541e-05/0.3558, allocations: 7.984 kB / 1.075 GB, free: 2.738 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.582e-05/0.3558, allocations: 15.44 kB / 1.075 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of SimCode: time 2.01e-07/0.3558, allocations: 0 / 1.075 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of Templates: time 0.004011/0.3599, allocations: 1.465 MB / 1.077 GB, free: 1.27 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