Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.427/1.427, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 182.7 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.564/1.564, allocations: 205.4 MB / 0.5775 GB, free: 20.28 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007843/0.0007844, allocations: 90.41 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.0003519, allocations: 9.906 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2345, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.177/0.4116, allocations: 133.7 MB / 1.031 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/0.4119, allocations: 83.94 kB / 1.031 GB, free: 9.965 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.008865/0.4208, allocations: 2.99 MB / 1.034 GB, free: 6.969 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.874e-06/0.4208, allocations: 0 / 1.034 GB, free: 6.969 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.618e-06/0.4208, allocations: 4 kB / 1.034 GB, free: 6.965 MB / 0.6823 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.0006334/0.4214, allocations: 432.7 kB / 1.034 GB, free: 6.488 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.4215, allocations: 11.97 kB / 1.034 GB, free: 6.477 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.69e-05/0.4215, allocations: 7.906 kB / 1.034 GB, free: 6.469 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.4217, allocations: 175 kB / 1.034 GB, free: 6.258 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.4217, allocations: 0 / 1.034 GB, free: 6.258 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.76e-05/0.4218, allocations: 8 kB / 1.034 GB, free: 6.25 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001824/0.4219, allocations: 69.66 kB / 1.034 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.422, allocations: 7.938 kB / 1.034 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.422, allocations: 3.984 kB / 1.034 GB, free: 6.164 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-06/0.422, allocations: 0 / 1.034 GB, free: 6.164 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.4221, allocations: 39.98 kB / 1.034 GB, free: 6.125 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006396/0.4228, allocations: 336.6 kB / 1.035 GB, free: 5.746 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001209/0.4229, allocations: 46.56 kB / 1.035 GB, free: 5.691 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.4229, allocations: 128 / 1.035 GB, free: 5.691 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001745/0.4231, allocations: 87.44 kB / 1.035 GB, free: 5.594 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 2.986e-06/0.4231, allocations: 0 / 1.035 GB, free: 5.594 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0003967/0.4235, allocations: 149.5 kB / 1.035 GB, free: 5.441 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.4236, allocations: 55.36 kB / 1.035 GB, free: 5.375 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.533e-05/0.4237, allocations: 120.9 kB / 1.035 GB, free: 5.25 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.4237, allocations: 29.7 kB / 1.035 GB, free: 5.215 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.692e-05/0.4238, allocations: 88.33 kB / 1.035 GB, free: 5.121 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.4238, allocations: 11.81 kB / 1.035 GB, free: 5.109 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-06/0.4238, allocations: 0 / 1.035 GB, free: 5.109 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.424, allocations: 322.8 kB / 1.036 GB, free: 4.785 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.049e-05/0.4241, allocations: 27.98 kB / 1.036 GB, free: 4.758 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.85e-05/0.4242, allocations: 54.55 kB / 1.036 GB, free: 4.695 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.682e-05/0.4243, allocations: 41.78 kB / 1.036 GB, free: 4.656 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4243, allocations: 0 / 1.036 GB, free: 4.656 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002281/0.4245, allocations: 117.5 kB / 1.036 GB, free: 4.535 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.4245, allocations: 10.66 kB / 1.036 GB, free: 4.527 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.4246, allocations: 0 / 1.036 GB, free: 4.527 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.4246, allocations: 3.984 kB / 1.036 GB, free: 4.523 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.604e-05/0.4247, allocations: 12 kB / 1.036 GB, free: 4.512 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.4247, allocations: 0 / 1.036 GB, free: 4.512 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.648e-05/0.4248, allocations: 15.88 kB / 1.036 GB, free: 4.496 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.4248, allocations: 4.062 kB / 1.036 GB, free: 4.492 MB / 0.6823 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 9.818e-05/0.4249, allocations: 125.8 kB / 1.036 GB, free: 4.359 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.4249, allocations: 7.906 kB / 1.036 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.425e-05/0.425, allocations: 4.375 kB / 1.036 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.425, allocations: 7.984 kB / 1.036 GB, free: 4.34 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.425, allocations: 0 / 1.036 GB, free: 4.34 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.425, allocations: 0 / 1.036 GB, free: 4.34 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004467/0.4255, allocations: 390.4 kB / 1.036 GB, free: 3.902 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.4255, allocations: 3.984 kB / 1.036 GB, free: 3.898 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.961e-05/0.4256, allocations: 7.938 kB / 1.036 GB, free: 3.891 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.4256, allocations: 4 kB / 1.036 GB, free: 3.887 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.4256, allocations: 0 / 1.036 GB, free: 3.887 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.4256, allocations: 0 / 1.036 GB, free: 3.887 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.4256, allocations: 7.938 kB / 1.036 GB, free: 3.879 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002623/0.4259, allocations: 219.9 kB / 1.037 GB, free: 3.648 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.825e-05/0.4259, allocations: 81.02 kB / 1.037 GB, free: 3.551 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.4259, allocations: 4 kB / 1.037 GB, free: 3.547 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.542e-05/0.426, allocations: 7.984 kB / 1.037 GB, free: 3.539 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.4261, allocations: 0 / 1.037 GB, free: 3.539 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.4261, allocations: 19.94 kB / 1.037 GB, free: 3.52 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.183e-05/0.4262, allocations: 91.27 kB / 1.037 GB, free: 3.43 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4262, allocations: 0 / 1.037 GB, free: 3.43 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002947/0.4265, allocations: 47.94 kB / 1.037 GB, free: 3.383 MB / 0.6823 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.0003751/0.4269, allocations: 175.4 kB / 1.037 GB, free: 3.219 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002275/0.4271, allocations: 79.95 kB / 1.037 GB, free: 3.141 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4271, allocations: 0 / 1.037 GB, free: 3.141 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.452e-05/0.4272, allocations: 43.91 kB / 1.037 GB, free: 3.098 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001652/0.4274, allocations: 0 / 1.037 GB, free: 3.098 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004085/0.4278, allocations: 219.2 kB / 1.037 GB, free: 2.848 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.428, allocations: 0.6926 MB / 1.038 GB, free: 2.129 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.94e-05/0.4281, allocations: 8.188 kB / 1.038 GB, free: 2.121 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.687e-05/0.4281, allocations: 11.44 kB / 1.038 GB, free: 2.113 MB / 0.6823 GB Notification: Performance of SimCode: time 3.61e-07/0.4281, allocations: 0 / 1.038 GB, free: 2.113 MB / 0.6823 GB Notification: Performance of Templates: time 0.003839/0.432, allocations: 1.524 MB / 1.04 GB, free: 0.6016 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Residential.Heating.Validation.Nicol2001HeatingUK_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Residential_Heating_Validation_Nicol2001HeatingUK.csv","../files/Buildings_maint.7.0.x_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.freqHz,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