Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.007713/0.007713, allocations: 102.8 kB / 15.73 MB, free: 5.992 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.001159/0.001159, allocations: 197.3 kB / 16.68 MB, free: 5.918 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.367/1.367, 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 9.1.3-maint.9.1.x/package.mo): time 2.212/2.212, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 63.88 kB / 0.9508 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9005/0.9017, allocations: 140.4 MB / 1.088 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002737/0.9044, allocations: 1.482 MB / 1.089 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001415/0.9059, allocations: 0.7243 MB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.741e-05/0.9059, allocations: 0 / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.346e-05/0.906, allocations: 10.45 kB / 1.09 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.871e-05/0.9061, allocations: 10.36 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005919/0.9067, allocations: 120.5 kB / 1.09 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.9068, allocations: 77.88 kB / 1.09 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.9069, allocations: 19.11 kB / 1.09 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.797e-05/0.907, allocations: 31.61 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.287e-05/0.9071, allocations: 41.25 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.329e-05/0.9072, allocations: 6.469 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002425/0.9074, allocations: 97.89 kB / 1.09 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.842e-05/0.9074, allocations: 19.59 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.815e-05/0.9075, allocations: 28.12 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002697/0.9078, allocations: 142.8 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.9078, allocations: 0 / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9078, allocations: 0 / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.9078, allocations: 1.094 kB / 1.091 GB, free: 3.742 MB / 0.8575 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.0006319/0.9084, allocations: 428.2 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.9085, allocations: 13.88 kB / 1.091 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.851e-05/0.9085, allocations: 7.812 kB / 1.091 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.9087, allocations: 173.9 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.9087, allocations: 3.859 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.9087, allocations: 7.719 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001979/0.9089, allocations: 73.06 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.9089, allocations: 0.5156 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.909, allocations: 1.125 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.909, allocations: 4.516 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.9091, allocations: 36.36 kB / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005918/0.9097, allocations: 326.5 kB / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.9099, allocations: 46.16 kB / 1.092 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.366e-05/0.91, allocations: 35.89 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.91, allocations: 1.125 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.9102, allocations: 81.02 kB / 1.092 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.9102, allocations: 0 / 1.092 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004175/0.9106, allocations: 137.5 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/0.9107, allocations: 57.84 kB / 1.092 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.302e-05/0.9108, allocations: 119 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.9108, allocations: 27.48 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.595e-05/0.9108, allocations: 95.91 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.208e-05/0.9109, allocations: 12.69 kB / 1.092 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.883e-05/0.9109, allocations: 28.83 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.653e-05/0.911, allocations: 323.6 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.676e-05/0.9111, allocations: 30.98 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.666e-05/0.9112, allocations: 55.08 kB / 1.093 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001697/0.9114, allocations: 67.73 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.9114, allocations: 0.6562 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002386/0.9116, allocations: 112.7 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.9116, allocations: 5.312 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.9116, allocations: 1.922 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.9117, allocations: 0.9688 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.9118, allocations: 16.48 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.9118, allocations: 0 / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.161e-05/0.9119, allocations: 16.81 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.9119, allocations: 5.016 kB / 1.093 GB, free: 1.75 MB / 0.8575 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 7.095e-05/0.912, allocations: 122.7 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.804e-05/0.912, allocations: 7.859 kB / 1.093 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.655e-05/0.912, allocations: 10.98 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.912, allocations: 1.453 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.912, allocations: 0.9375 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.912, allocations: 0.7969 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004264/0.9125, allocations: 386.9 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.9125, allocations: 4 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.038e-05/0.9125, allocations: 8.875 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.9125, allocations: 0.7812 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.9126, allocations: 2.109 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.9126, allocations: 0.6562 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.9126, allocations: 4.75 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002598/0.9128, allocations: 208.1 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.298e-05/0.9129, allocations: 84.62 kB / 1.094 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.9129, allocations: 9.266 kB / 1.094 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.169e-05/0.913, allocations: 4.641 kB / 1.094 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/0.9131, allocations: 8.188 kB / 1.094 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.9131, allocations: 3.969 kB / 1.094 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.193e-05/0.9131, allocations: 95.89 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.9131, allocations: 0.7812 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003641/0.9135, allocations: 45.42 kB / 1.094 GB, free: 0.8906 MB / 0.8575 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.0003491/0.9139, allocations: 162.5 kB / 1.094 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002567/0.9141, allocations: 72.95 kB / 1.094 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.9141, allocations: 4 kB / 1.094 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.9142, allocations: 32.94 kB / 1.094 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.9145, allocations: 13.7 kB / 1.094 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004304/0.915, allocations: 189.8 kB / 1.094 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001849/0.9152, allocations: 0.6872 MB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.935e-05/0.9152, allocations: 8.75 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.841e-05/0.9152, allocations: 11.05 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of SimCode: time 3.7e-07/0.9152, allocations: 4.719 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of Templates: time 0.005308/0.9206, allocations: 1.478 MB / 1.096 GB, free: 15.72 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.makefile (rm -f Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & ./Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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