Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK") translateModel(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006499/0.006499, allocations: 98.53 kB / 15.73 MB, free: 5.984 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.001426/0.001426, allocations: 191.6 kB / 16.67 MB, free: 5.91 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.644/2.644, allocations: 469.8 MB / 0.7425 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 60.12 kB / 1.065 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8969/0.8982, allocations: 159.1 MB / 1.221 GB, free: 2.09 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002804/0.901, allocations: 1.48 MB / 1.222 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001327/0.9024, allocations: 0.7293 MB / 1.223 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.948e-05/0.9024, allocations: 0 / 1.223 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.492e-05/0.9024, allocations: 3.938 kB / 1.223 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.572e-05/0.9025, allocations: 7.875 kB / 1.223 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004673/0.9029, allocations: 127.6 kB / 1.223 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001253/0.9031, allocations: 87.69 kB / 1.223 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 7.713e-05/0.9031, allocations: 11.95 kB / 1.223 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 7.592e-05/0.9032, allocations: 31.92 kB / 1.223 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.34e-05/0.9033, allocations: 43.81 kB / 1.223 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.9033, allocations: 8 kB / 1.223 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.9035, allocations: 95.84 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.202e-05/0.9035, allocations: 19.86 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.86e-05/0.9035, allocations: 27.86 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002149/0.9037, allocations: 144.1 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.9037, allocations: 4 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.152e-06/0.9038, allocations: 4 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.633e-06/0.9038, allocations: 0 / 1.223 GB, free: 15.27 MB / 0.9512 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.0005975/0.9044, allocations: 424.7 kB / 1.224 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.9044, allocations: 8.625 kB / 1.224 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.238e-05/0.9044, allocations: 8.891 kB / 1.224 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.9046, allocations: 172.3 kB / 1.224 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.9046, allocations: 4.375 kB / 1.224 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.066e-05/0.9046, allocations: 8.375 kB / 1.224 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.9048, allocations: 69.97 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.9048, allocations: 3.984 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.9048, allocations: 4 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.9048, allocations: 0 / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.905, allocations: 31.98 kB / 1.224 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006017/0.9056, allocations: 324.6 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001287/0.9057, allocations: 46.56 kB / 1.224 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.927e-05/0.9058, allocations: 28.97 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.9058, allocations: 8.062 kB / 1.224 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00017/0.906, allocations: 71.38 kB / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.906, allocations: 0 / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.000391/0.9064, allocations: 145.5 kB / 1.225 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.9064, allocations: 55.39 kB / 1.225 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.9065, allocations: 121.8 kB / 1.225 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.9065, allocations: 33.7 kB / 1.225 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.728e-05/0.9066, allocations: 88.12 kB / 1.225 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.9066, allocations: 19.89 kB / 1.225 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.898e-05/0.9067, allocations: 25.7 kB / 1.225 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.9068, allocations: 322.8 kB / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.095e-05/0.9069, allocations: 31.97 kB / 1.225 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.991e-05/0.9069, allocations: 47 kB / 1.225 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.9071, allocations: 74.8 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.9071, allocations: 0 / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002211/0.9073, allocations: 117.5 kB / 1.226 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.9073, allocations: 8 kB / 1.226 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.9073, allocations: 0 / 1.226 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.9073, allocations: 0 / 1.226 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.361e-05/0.9074, allocations: 11.98 kB / 1.226 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.9074, allocations: 4 kB / 1.226 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.513e-05/0.9075, allocations: 19.88 kB / 1.226 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.9075, allocations: 3.938 kB / 1.226 GB, free: 12.72 MB / 0.9512 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.0001019/0.9076, allocations: 126.3 kB / 1.226 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.646e-05/0.9076, allocations: 3.953 kB / 1.226 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.806e-05/0.9077, allocations: 12.36 kB / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.9077, allocations: 0 / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.9077, allocations: 0 / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.9077, allocations: 0 / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004596/0.9081, allocations: 394.4 kB / 1.226 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.9081, allocations: 4 kB / 1.226 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.705e-05/0.9082, allocations: 0 / 1.226 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.154e-06/0.9082, allocations: 7.984 kB / 1.226 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.9082, allocations: 3.984 kB / 1.226 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.9082, allocations: 0 / 1.226 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.9082, allocations: 3.938 kB / 1.226 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002619/0.9085, allocations: 207.5 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.715e-05/0.9085, allocations: 81.06 kB / 1.226 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.9085, allocations: 3.984 kB / 1.226 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.783e-05/0.9086, allocations: 4 kB / 1.226 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.9086, allocations: 15.86 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.9087, allocations: 4 kB / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.414e-05/0.9087, allocations: 99.42 kB / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9087, allocations: 0 / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002854/0.909, allocations: 39.94 kB / 1.227 GB, free: 11.62 MB / 0.9512 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.0003052/0.9093, allocations: 157.2 kB / 1.227 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002319/0.9095, allocations: 71.89 kB / 1.227 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.9095, allocations: 128 / 1.227 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.225e-05/0.9096, allocations: 35.97 kB / 1.227 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.9099, allocations: 10.5 kB / 1.227 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003944/0.9103, allocations: 189.3 kB / 1.227 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.9105, allocations: 0.6923 MB / 1.228 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.253e-05/0.9106, allocations: 8 kB / 1.228 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.548e-05/0.9106, allocations: 7.438 kB / 1.228 GB, free: 10.42 MB / 0.9512 GB Notification: Performance of SimCode: time 4.1e-07/0.9106, allocations: 0 / 1.228 GB, free: 10.42 MB / 0.9512 GB Notification: Performance of Templates: time 0.003954/0.9145, allocations: 1.461 MB / 1.229 GB, free: 8.961 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.makefile (rm -f Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & ./Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.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