Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.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.Windows.Validation.Nicol2001WindowsPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan") translateModel(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.353/1.353, allocations: 251.9 MB / 266.9 MB, free: 10.98 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.001001/0.001001, allocations: 179.2 kB / 326.5 MB, free: 2.227 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.549/1.549, allocations: 205.4 MB / 0.5775 GB, free: 20.55 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.001154/0.001154, allocations: 96.06 kB / 0.6821 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003664, allocations: 9.844 kB / 0.7962 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2406, allocations: 106.3 MB / 0.9001 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.183/0.4236, allocations: 133.7 MB / 1.031 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.424, allocations: 91.88 kB / 1.031 GB, free: 10.29 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.009434/0.4334, allocations: 2.994 MB / 1.034 GB, free: 7.293 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.937e-06/0.4335, allocations: 0 / 1.034 GB, free: 7.293 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.696e-06/0.4335, allocations: 3.938 kB / 1.034 GB, free: 7.289 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.0005339/0.434, allocations: 424.7 kB / 1.034 GB, free: 6.82 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.4341, allocations: 12.03 kB / 1.034 GB, free: 6.809 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.885e-05/0.4341, allocations: 3.906 kB / 1.034 GB, free: 6.805 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.4343, allocations: 175 kB / 1.034 GB, free: 6.594 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/0.4343, allocations: 4 kB / 1.034 GB, free: 6.59 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.891e-05/0.4343, allocations: 4 kB / 1.034 GB, free: 6.586 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.4345, allocations: 69.66 kB / 1.034 GB, free: 6.512 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.4345, allocations: 7.922 kB / 1.034 GB, free: 6.504 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.4346, allocations: 0 / 1.034 GB, free: 6.504 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.4346, allocations: 4 kB / 1.034 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001359/0.4347, allocations: 47.86 kB / 1.034 GB, free: 6.453 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006091/0.4353, allocations: 324.6 kB / 1.035 GB, free: 6.086 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.4355, allocations: 50.56 kB / 1.035 GB, free: 6.027 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.4355, allocations: 0 / 1.035 GB, free: 6.027 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001742/0.4357, allocations: 87.5 kB / 1.035 GB, free: 5.93 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.4357, allocations: 0 / 1.035 GB, free: 5.93 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0003842/0.4361, allocations: 145.5 kB / 1.035 GB, free: 5.781 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.4361, allocations: 59.36 kB / 1.035 GB, free: 5.711 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.322e-05/0.4362, allocations: 113 kB / 1.035 GB, free: 5.594 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.4363, allocations: 29.7 kB / 1.035 GB, free: 5.559 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.059e-05/0.4363, allocations: 88.33 kB / 1.035 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.4364, allocations: 11.81 kB / 1.035 GB, free: 5.453 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-06/0.4364, allocations: 4 kB / 1.035 GB, free: 5.449 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4365, allocations: 322.8 kB / 1.036 GB, free: 5.125 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.829e-05/0.4366, allocations: 23.98 kB / 1.036 GB, free: 5.102 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.4367, allocations: 62.47 kB / 1.036 GB, free: 5.031 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.357e-05/0.4368, allocations: 32 kB / 1.036 GB, free: 5 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4368, allocations: 0 / 1.036 GB, free: 5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002249/0.4371, allocations: 117.5 kB / 1.036 GB, free: 4.879 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.4371, allocations: 8 kB / 1.036 GB, free: 4.871 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.4371, allocations: 4.062 kB / 1.036 GB, free: 4.867 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.4371, allocations: 0 / 1.036 GB, free: 4.867 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.923e-05/0.4372, allocations: 15.98 kB / 1.036 GB, free: 4.852 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.4373, allocations: 0 / 1.036 GB, free: 4.852 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.642e-05/0.4373, allocations: 15.88 kB / 1.036 GB, free: 4.836 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.4373, allocations: 4 kB / 1.036 GB, free: 4.832 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 (occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.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.0001042/0.4375, allocations: 120.3 kB / 1.036 GB, free: 4.707 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.644e-05/0.4375, allocations: 11.91 kB / 1.036 GB, free: 4.695 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.036e-05/0.4375, allocations: 8.375 kB / 1.036 GB, free: 4.688 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.4375, allocations: 4 kB / 1.036 GB, free: 4.684 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.4375, allocations: 3.984 kB / 1.036 GB, free: 4.68 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.4375, allocations: 0 / 1.036 GB, free: 4.68 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004547/0.438, allocations: 382.5 kB / 1.036 GB, free: 4.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.438, allocations: 0 / 1.036 GB, free: 4.25 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.821e-05/0.4381, allocations: 11.94 kB / 1.036 GB, free: 4.238 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.4381, allocations: 4 kB / 1.036 GB, free: 4.234 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.4381, allocations: 4 kB / 1.036 GB, free: 4.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.4381, allocations: 0 / 1.036 GB, free: 4.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.4381, allocations: 3.953 kB / 1.036 GB, free: 4.227 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002763/0.4384, allocations: 225.6 kB / 1.037 GB, free: 3.992 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.054e-05/0.4384, allocations: 84.95 kB / 1.037 GB, free: 3.891 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/0.4385, allocations: 4 kB / 1.037 GB, free: 3.887 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.552e-05/0.4386, allocations: 11.92 kB / 1.037 GB, free: 3.875 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.046e-05/0.4386, allocations: 3.984 kB / 1.037 GB, free: 3.871 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.4386, allocations: 11.94 kB / 1.037 GB, free: 3.859 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.785e-05/0.4387, allocations: 87.94 kB / 1.037 GB, free: 3.773 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4387, allocations: 0 / 1.037 GB, free: 3.773 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003083/0.439, allocations: 55.92 kB / 1.037 GB, free: 3.719 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 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.p,win.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.0003582/0.4394, allocations: 168.4 kB / 1.037 GB, free: 3.559 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002311/0.4396, allocations: 84 kB / 1.037 GB, free: 3.477 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4396, allocations: 0 / 1.037 GB, free: 3.477 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.787e-05/0.4397, allocations: 39.92 kB / 1.037 GB, free: 3.438 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001695/0.4399, allocations: 6.031 kB / 1.037 GB, free: 3.434 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004048/0.4403, allocations: 211.1 kB / 1.037 GB, free: 3.191 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.4406, allocations: 0.6965 MB / 1.038 GB, free: 2.469 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.571e-05/0.4406, allocations: 192 / 1.038 GB, free: 2.469 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.944e-05/0.4407, allocations: 15.44 kB / 1.038 GB, free: 2.457 MB / 0.6823 GB Notification: Performance of SimCode: time 2.21e-07/0.4407, allocations: 0 / 1.038 GB, free: 2.457 MB / 0.6823 GB Notification: Performance of Templates: time 0.004042/0.4447, allocations: 1.534 MB / 1.04 GB, free: 0.957 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:TOut.amplitude,TOut.freqHz,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0