Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Nicol2001HeatingUK,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hea.TOut|hea.occ|hea.on",fileNamePrefix="Buildings_latest_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_latest_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.000978/0.0009783, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.0008912/0.0008912, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.577/1.577, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3/3, allocations: 462.6 MB / 0.736 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.0003909, allocations: 9.594 kB / 0.9021 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3656, allocations: 159.6 MB / 1.058 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.001661/0.3673, allocations: 1.186 MB / 1.059 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.3685, allocations: 0.686 MB / 1.06 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.07e-05/0.3686, allocations: 0 / 1.06 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.835e-05/0.3686, allocations: 7.922 kB / 1.06 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.286e-05/0.3687, allocations: 3.938 kB / 1.06 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004799/0.3692, allocations: 99.77 kB / 1.06 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000131/0.3693, allocations: 67.77 kB / 1.06 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.448e-05/0.3694, allocations: 8 kB / 1.06 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.91e-05/0.3695, allocations: 31.91 kB / 1.06 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.859e-05/0.3696, allocations: 35.83 kB / 1.06 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.3696, allocations: 4 kB / 1.06 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.3698, allocations: 79.92 kB / 1.06 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.421e-05/0.3698, allocations: 19.91 kB / 1.06 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.942e-05/0.3698, allocations: 37.69 kB / 1.06 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.37, allocations: 100 kB / 1.06 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.37, allocations: 3.984 kB / 1.06 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.413e-06/0.37, allocations: 4 kB / 1.06 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.236e-06/0.37, allocations: 0 / 1.06 GB, free: 2.934 MB / 0.8106 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.0005534/0.3706, allocations: 397 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.3706, allocations: 8.031 kB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.3707, allocations: 15.83 kB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.3708, allocations: 178.9 kB / 1.061 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.711e-05/0.3708, allocations: 7.953 kB / 1.061 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.3709, allocations: 4 kB / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.3711, allocations: 73.59 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.3711, allocations: 0 / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.3711, allocations: 0 / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.3711, allocations: 0 / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001435/0.3713, allocations: 47.97 kB / 1.061 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000585/0.3718, allocations: 316.7 kB / 1.061 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/0.372, allocations: 54.55 kB / 1.061 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.136e-05/0.3721, allocations: 36.97 kB / 1.061 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.3721, allocations: 0 / 1.061 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002093/0.3723, allocations: 87.38 kB / 1.061 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.3724, allocations: 4 kB / 1.061 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004287/0.3728, allocations: 141.5 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.3729, allocations: 55.34 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.373, allocations: 129.8 kB / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.373, allocations: 25.7 kB / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.04e-05/0.3731, allocations: 96.23 kB / 1.062 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.3731, allocations: 15.83 kB / 1.062 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.385e-06/0.3731, allocations: 4 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3732, allocations: 318.8 kB / 1.062 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.695e-05/0.3733, allocations: 27.98 kB / 1.062 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.383e-05/0.3734, allocations: 54.55 kB / 1.062 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.406e-05/0.3735, allocations: 36.23 kB / 1.062 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3736, allocations: 0 / 1.062 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002574/0.3738, allocations: 133.5 kB / 1.062 GB, free: 488 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3738, allocations: 4 kB / 1.062 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.3738, allocations: 0 / 1.062 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.3739, allocations: 0 / 1.062 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.374, allocations: 12 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.374, allocations: 3.984 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.962e-05/0.3741, allocations: 7.906 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.3741, allocations: 8 kB / 1.063 GB, free: 452 kB / 0.8106 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,$PRE.hea.on,hea.on,$PRE.hea.p,hea.p,$PRE.hea.curSeed,hea.curSeed,$whenCondition1,hea.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001099/0.3742, allocations: 125.8 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.594e-05/0.3742, allocations: 7.906 kB / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.304e-05/0.3743, allocations: 20.34 kB / 1.063 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3743, allocations: 0 / 1.063 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3743, allocations: 0 / 1.063 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3743, allocations: 4 kB / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005085/0.3748, allocations: 390.4 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3748, allocations: 0 / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.227e-05/0.3749, allocations: 11.88 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3749, allocations: 0 / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.3749, allocations: 3.984 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.3749, allocations: 3.938 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3749, allocations: 0 / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003038/0.3752, allocations: 219.4 kB / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.803e-05/0.3753, allocations: 81.11 kB / 1.063 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.3753, allocations: 3.984 kB / 1.063 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.938e-05/0.3754, allocations: 4 kB / 1.063 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.729e-05/0.3755, allocations: 11.98 kB / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.3755, allocations: 0 / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.804e-05/0.3756, allocations: 99.27 kB / 1.063 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3756, allocations: 0 / 1.063 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003203/0.3759, allocations: 39.91 kB / 1.064 GB, free: 15.34 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003648/0.3763, allocations: 154.3 kB / 1.064 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002366/0.3765, allocations: 75.95 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3765, allocations: 0 / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.3766, allocations: 39.92 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.3769, allocations: 15.94 kB / 1.064 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003875/0.3773, allocations: 219.1 kB / 1.064 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.3776, allocations: 0.686 MB / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.101e-05/0.3776, allocations: 8.719 kB / 1.065 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.495e-05/0.3777, allocations: 7.438 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.3777, allocations: 4 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of Templates: time 0.004135/0.3818, allocations: 1.337 MB / 1.066 GB, free: 12.75 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.makefile (rm -f Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & ./Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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