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.006504/0.006504, allocations: 100.4 kB / 15.73 MB, free: 6.043 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.001302/0.001302, allocations: 184.9 kB / 16.67 MB, free: 5.977 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.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.407/2.407, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 61.44 kB / 0.9508 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3416, allocations: 140.4 MB / 1.088 GB, free: 1.668 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.002937/0.3445, allocations: 1.482 MB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.346, allocations: 0.7258 MB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.804e-05/0.3461, allocations: 0 / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.192e-05/0.3461, allocations: 3.938 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.337e-05/0.3462, allocations: 11.86 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005374/0.3467, allocations: 131.6 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.3469, allocations: 75.77 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.549e-05/0.347, allocations: 11.98 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.07e-05/0.3471, allocations: 35.91 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.551e-05/0.3472, allocations: 39.83 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.3472, allocations: 4 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001945/0.3474, allocations: 99.84 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.401e-05/0.3474, allocations: 27.91 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.743e-05/0.3475, allocations: 31.86 kB / 1.091 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002329/0.3477, allocations: 139.6 kB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3477, allocations: 0 / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3477, allocations: 0 / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.3477, allocations: 0 / 1.091 GB, free: 14.84 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.0005565/0.3483, allocations: 413 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.3483, allocations: 12.03 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.895e-05/0.3484, allocations: 8.844 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.3485, allocations: 176.2 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.3485, allocations: 12.31 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.857e-05/0.3486, allocations: 4.375 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.3487, allocations: 73.95 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.152e-06/0.3488, allocations: 0 / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.3488, allocations: 3.984 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.3488, allocations: 0 / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001266/0.3489, allocations: 35.98 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005787/0.3495, allocations: 316.7 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.3497, allocations: 54.56 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.446e-05/0.3497, allocations: 32.97 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.3498, allocations: 0 / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002074/0.35, allocations: 79.36 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.35, allocations: 4 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003979/0.3504, allocations: 141.5 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.3504, allocations: 59.39 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.398e-05/0.3505, allocations: 113.8 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.3506, allocations: 33.7 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.445e-05/0.3506, allocations: 99.97 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.922e-05/0.3507, allocations: 11.91 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.907e-05/0.3507, allocations: 25.7 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.3509, allocations: 326.7 kB / 1.093 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.244e-05/0.351, allocations: 27.97 kB / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.905e-05/0.3511, allocations: 46.56 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.3512, allocations: 78.48 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3512, allocations: 0 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002482/0.3515, allocations: 121.4 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.3515, allocations: 5.562 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.3515, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.3515, allocations: 8.062 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.034e-05/0.3516, allocations: 12 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.3517, allocations: 8.312 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.973e-05/0.3517, allocations: 7.906 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.3518, allocations: 4 kB / 1.093 GB, free: 12.29 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 0.0001062/0.3519, allocations: 119.8 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.975e-05/0.3519, allocations: 7.906 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.926e-05/0.3519, allocations: 16.36 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-06/0.3519, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3519, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.3519, allocations: 4 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004607/0.3524, allocations: 386.3 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3524, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.029e-05/0.3525, allocations: 4 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.237e-06/0.3525, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.3525, allocations: 3.984 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3525, allocations: 4 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3525, allocations: 3.938 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002909/0.3528, allocations: 211.4 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.801e-05/0.3529, allocations: 77.11 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.3529, allocations: 7.984 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.634e-05/0.353, allocations: 3.938 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-05/0.353, allocations: 15.92 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.3531, allocations: 4 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.859e-05/0.3531, allocations: 95.92 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3531, allocations: 0 / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003087/0.3534, allocations: 39.84 kB / 1.094 GB, free: 11.2 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.0003015/0.3537, allocations: 169 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002385/0.354, allocations: 75.89 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.354, allocations: 0 / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.3541, allocations: 31.98 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002402/0.3544, allocations: 11.98 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003831/0.3548, allocations: 189.1 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002333/0.355, allocations: 0.6924 MB / 1.095 GB, free: 9.996 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.876e-05/0.3551, allocations: 7.75 kB / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.726e-05/0.3551, allocations: 11.44 kB / 1.095 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.3551, allocations: 0 / 1.095 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of Templates: time 0.004043/0.3591, allocations: 1.45 MB / 1.096 GB, free: 8.527 MB / 0.8575 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