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.00106/0.00106, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001164/0.001164, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.436/1.436, allocations: 222.9 MB / 239.9 MB, free: 4.508 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.523/2.523, allocations: 390.2 MB / 0.6643 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 59.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8326/0.8342, allocations: 140.4 MB / 0.9491 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK): time 0.00282/0.8371, allocations: 1.535 MB / 0.9506 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001125/0.8383, allocations: 0.7219 MB / 0.9513 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.267e-05/0.8383, allocations: 5.188 kB / 0.9513 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.195e-05/0.8384, allocations: 3.984 kB / 0.9513 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.869e-05/0.8385, allocations: 9.094 kB / 0.9513 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005242/0.839, allocations: 111 kB / 0.9514 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.8391, allocations: 78.86 kB / 0.9515 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.8392, allocations: 22.19 kB / 0.9515 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.888e-05/0.8393, allocations: 30.39 kB / 0.9515 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.541e-05/0.8394, allocations: 43.03 kB / 0.9516 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.08e-05/0.8394, allocations: 6.625 kB / 0.9516 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000164/0.8396, allocations: 97.69 kB / 0.9517 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.156e-05/0.8396, allocations: 18.8 kB / 0.9517 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.405e-05/0.8397, allocations: 33.33 kB / 0.9517 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002004/0.8399, allocations: 135.7 kB / 0.9519 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.8399, allocations: 3.938 kB / 0.9519 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.455e-06/0.8399, allocations: 1.219 kB / 0.9519 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.8399, allocations: 0 / 0.9519 GB, free: 7.031 MB / 0.7169 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.0005596/0.8405, allocations: 419.5 kB / 0.9523 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.8405, allocations: 9.156 kB / 0.9523 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.463e-05/0.8406, allocations: 12.8 kB / 0.9523 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.593e-05/0.8407, allocations: 176 kB / 0.9525 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.8407, allocations: 3.438 kB / 0.9525 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/0.8407, allocations: 7.406 kB / 0.9525 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/0.8409, allocations: 68.22 kB / 0.9525 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.8409, allocations: 1.719 kB / 0.9525 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.8409, allocations: 0 / 0.9525 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.8409, allocations: 1.344 kB / 0.9525 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.8411, allocations: 35.47 kB / 0.9526 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000529/0.8416, allocations: 325.9 kB / 0.9529 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/0.8417, allocations: 48.98 kB / 0.9529 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.653e-05/0.8418, allocations: 31.38 kB / 0.953 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.8418, allocations: 5.281 kB / 0.953 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.842, allocations: 81.12 kB / 0.953 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.842, allocations: 0 / 0.953 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003744/0.8424, allocations: 137.1 kB / 0.9532 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.632e-05/0.8425, allocations: 56.62 kB / 0.9532 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.036e-05/0.8425, allocations: 124.9 kB / 0.9533 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.8426, allocations: 30.98 kB / 0.9534 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.481e-05/0.8426, allocations: 91.02 kB / 0.9535 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.8426, allocations: 14.73 kB / 0.9535 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.285e-05/0.8427, allocations: 26.34 kB / 0.9535 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.716e-05/0.8427, allocations: 324.1 kB / 0.9538 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.509e-05/0.8428, allocations: 23.55 kB / 0.9538 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.077e-05/0.8429, allocations: 59.17 kB / 0.9539 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.843, allocations: 82.12 kB / 0.954 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.843, allocations: 0 / 0.954 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002136/0.8433, allocations: 110.2 kB / 0.9541 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.8433, allocations: 9.094 kB / 0.9541 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.8433, allocations: 0 / 0.9541 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.8433, allocations: 2.469 kB / 0.9541 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.8434, allocations: 16.14 kB / 0.9541 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.8435, allocations: 1.312 kB / 0.9541 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.627e-05/0.8435, allocations: 16.33 kB / 0.9541 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.8435, allocations: 2.125 kB / 0.9541 GB, free: 4.883 MB / 0.7169 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 6.948e-05/0.8436, allocations: 119.3 kB / 0.9542 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.8436, allocations: 10.12 kB / 0.9542 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.582e-05/0.8437, allocations: 10.56 kB / 0.9542 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.8437, allocations: 5.047 kB / 0.9542 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.8437, allocations: 3.984 kB / 0.9543 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.8437, allocations: 1.062 kB / 0.9543 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000356/0.8441, allocations: 382.5 kB / 0.9546 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.8441, allocations: 0 / 0.9546 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.873e-05/0.8441, allocations: 7.688 kB / 0.9546 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.8441, allocations: 5.281 kB / 0.9546 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.8441, allocations: 0 / 0.9546 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.8441, allocations: 5.312 kB / 0.9546 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.8442, allocations: 3.938 kB / 0.9546 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002351/0.8444, allocations: 205.6 kB / 0.9548 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.227e-05/0.8444, allocations: 83.14 kB / 0.9549 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.8444, allocations: 4.812 kB / 0.9549 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.01e-05/0.8445, allocations: 11.27 kB / 0.9549 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.158e-05/0.8446, allocations: 6.812 kB / 0.9549 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.8446, allocations: 5.484 kB / 0.9549 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.476e-05/0.8446, allocations: 93.38 kB / 0.955 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8447, allocations: 0 / 0.955 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003046/0.845, allocations: 44.33 kB / 0.9551 GB, free: 3.969 MB / 0.7169 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.0003135/0.8453, allocations: 162.3 kB / 0.9552 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002425/0.8455, allocations: 73.27 kB / 0.9553 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.8455, allocations: 1.031 kB / 0.9553 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.427e-05/0.8456, allocations: 36.5 kB / 0.9553 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.8459, allocations: 3.281 kB / 0.9553 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003845/0.8463, allocations: 207.8 kB / 0.9555 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000113/0.8464, allocations: 0.6913 MB / 0.9562 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.76e-05/0.8465, allocations: 11.73 kB / 0.9562 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.607e-05/0.8465, allocations: 10.91 kB / 0.9562 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.8465, allocations: 0 / 0.9562 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of Templates: time 0.003932/0.8504, allocations: 1.409 MB / 0.9576 GB, free: 2.172 MB / 0.7169 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