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.008165/0.008172, allocations: 104.8 kB / 15.74 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.002096/0.002096, allocations: 199.1 kB / 16.68 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.307/2.307, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 64.08 kB / 0.9508 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1/1.002, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002649/1.004, allocations: 1.483 MB / 1.089 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001285/1.006, allocations: 0.7283 MB / 1.09 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.461e-05/1.006, allocations: 1.031 kB / 1.09 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.839e-05/1.006, allocations: 9.094 kB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.529e-05/1.006, allocations: 7.047 kB / 1.09 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005909/1.006, allocations: 133 kB / 1.09 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001365/1.007, allocations: 74.28 kB / 1.09 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/1.007, allocations: 14.55 kB / 1.09 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/1.007, allocations: 34.95 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.174e-05/1.007, allocations: 34.19 kB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.002e-05/1.007, allocations: 9.625 kB / 1.09 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/1.007, allocations: 94.5 kB / 1.09 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.323e-05/1.007, allocations: 27.22 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.508e-05/1.007, allocations: 27.53 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003238/1.008, allocations: 142.6 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/1.008, allocations: 0.8438 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.265e-06/1.008, allocations: 0 / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.141e-06/1.008, allocations: 0 / 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.0006654/1.008, allocations: 425.2 kB / 1.091 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/1.008, allocations: 9.75 kB / 1.091 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.235e-05/1.008, allocations: 8.828 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.532e-05/1.008, allocations: 177 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/1.008, allocations: 3.719 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/1.009, allocations: 11.94 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002/1.009, allocations: 69.02 kB / 1.091 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/1.009, allocations: 0 / 1.091 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/1.009, allocations: 1.125 kB / 1.091 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/1.009, allocations: 0.8125 kB / 1.091 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/1.009, allocations: 40.58 kB / 1.091 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006245/1.01, allocations: 317.9 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/1.01, allocations: 46.3 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.385e-05/1.01, allocations: 31.81 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/1.01, allocations: 0.7812 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/1.01, allocations: 85.5 kB / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.885e-06/1.01, allocations: 3.984 kB / 1.092 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004656/1.011, allocations: 137.7 kB / 1.092 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/1.011, allocations: 58.39 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/1.011, allocations: 123.3 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/1.011, allocations: 26.48 kB / 1.092 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.186e-05/1.011, allocations: 100.7 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/1.011, allocations: 7.781 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-05/1.011, allocations: 29.42 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.673e-05/1.011, allocations: 327.1 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.461e-05/1.011, allocations: 27.42 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/1.011, allocations: 46.86 kB / 1.093 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002019/1.011, allocations: 75.58 kB / 1.093 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/1.011, allocations: 4.812 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002604/1.012, allocations: 113.5 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/1.012, allocations: 4.219 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/1.012, allocations: 8.875 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/1.012, allocations: 1.938 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/1.012, allocations: 11.98 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/1.012, allocations: 0.9375 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.881e-05/1.012, allocations: 17.16 kB / 1.093 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/1.012, allocations: 3.453 kB / 1.093 GB, free: 1.746 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 9.283e-05/1.012, allocations: 120 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/1.012, allocations: 7.984 kB / 1.093 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.971e-05/1.012, allocations: 14.14 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/1.012, allocations: 2 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/1.012, allocations: 0.6562 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/1.012, allocations: 3.938 kB / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004241/1.013, allocations: 375.5 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/1.013, allocations: 0 / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.115e-05/1.013, allocations: 9.438 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/1.013, allocations: 0.6562 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/1.013, allocations: 6.094 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/1.013, allocations: 1 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/1.013, allocations: 3.938 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002792/1.013, allocations: 212.7 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.974e-05/1.013, allocations: 79.14 kB / 1.094 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/1.013, allocations: 9.984 kB / 1.094 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.674e-05/1.013, allocations: 9.188 kB / 1.094 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/1.013, allocations: 12.56 kB / 1.094 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/1.013, allocations: 2.406 kB / 1.094 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.522e-05/1.013, allocations: 92.81 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/1.013, allocations: 0 / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003366/1.014, allocations: 46.05 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.0003753/1.014, allocations: 164.3 kB / 1.094 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002626/1.014, allocations: 69.23 kB / 1.094 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/1.014, allocations: 0 / 1.094 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001037/1.014, allocations: 41.03 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.000264/1.015, allocations: 8.359 kB / 1.094 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000419/1.015, allocations: 194 kB / 1.094 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001932/1.015, allocations: 0.6869 MB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.078e-05/1.015, allocations: 8.812 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/1.015, allocations: 12.08 kB / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of SimCode: time 3.11e-07/1.015, allocations: 0 / 1.095 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of Templates: time 0.005319/1.021, allocations: 1.457 MB / 1.096 GB, free: 15.73 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