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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.185/1.185, allocations: 249.4 MB / 256.7 MB, free: 7.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009047/0.0009047, allocations: 176.3 kB / 316 MB, free: 3.605 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.024/1.024, allocations: 205.1 MB / 0.5667 GB, free: 15.73 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.000804/0.000804, allocations: 99.75 kB / 0.671 GB, free: 4.848 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.658e-06/4.669e-06, allocations: 0 / 0.7807 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1352, allocations: 106.3 MB / 0.8846 GB, free: 12.72 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4082/0.5434, allocations: 133.9 MB / 1.015 GB, free: 4.895 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.5437, allocations: 87.88 kB / 1.015 GB, free: 4.844 MB / 0.6355 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: time 0.007937/0.5516, allocations: 2.638 MB / 1.018 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.98e-06/0.5516, allocations: 4 kB / 1.018 GB, free: 2.645 MB / 0.6355 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.000419/0.5521, allocations: 413.9 kB / 1.018 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.5521, allocations: 15.97 kB / 1.018 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.688e-05/0.5521, allocations: 11.89 kB / 1.018 GB, free: 2.168 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.5523, allocations: 170.9 kB / 1.019 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.5523, allocations: 3.125 kB / 1.019 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.5523, allocations: 4 kB / 1.019 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.955e-05/0.5524, allocations: 23.62 kB / 1.019 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.799e-05/0.5525, allocations: 52.73 kB / 1.019 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.5525, allocations: 0 / 1.019 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.5525, allocations: 3.906 kB / 1.019 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.5525, allocations: 7.984 kB / 1.019 GB, free: 1.879 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003847/0.5529, allocations: 281.8 kB / 1.019 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.051e-05/0.553, allocations: 40.52 kB / 1.019 GB, free: 1.547 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.472e-05/0.553, allocations: 23.8 kB / 1.019 GB, free: 1.527 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.5531, allocations: 4.062 kB / 1.019 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.662e-05/0.5531, allocations: 65.89 kB / 1.019 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.5531, allocations: 0 / 1.019 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001943/0.5533, allocations: 82.69 kB / 1.019 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.5534, allocations: 59.34 kB / 1.019 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.007e-05/0.5535, allocations: 112.2 kB / 1.019 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.5535, allocations: 25.7 kB / 1.019 GB, free: 1.172 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.283e-05/0.5535, allocations: 84.27 kB / 1.019 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.5536, allocations: 15.75 kB / 1.019 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-06/0.5536, allocations: 0 / 1.019 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.354e-05/0.5537, allocations: 326.4 kB / 1.02 GB, free: 0.7461 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.383e-05/0.5537, allocations: 14.69 kB / 1.02 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.571e-05/0.5538, allocations: 47.75 kB / 1.02 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.385e-05/0.5538, allocations: 19.14 kB / 1.02 GB, free: 0.6797 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.5538, allocations: 0.75 kB / 1.02 GB, free: 0.6797 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001513/0.554, allocations: 98.98 kB / 1.02 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.554, allocations: 8 kB / 1.02 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.554, allocations: 0 / 1.02 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.554, allocations: 4.062 kB / 1.02 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.583e-05/0.5541, allocations: 15.98 kB / 1.02 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.5541, allocations: 0 / 1.02 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.569e-05/0.5542, allocations: 4 kB / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.5542, allocations: 14.98 kB / 1.02 GB, free: 0.5469 MB / 0.6355 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 () * 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 6.411e-05/0.5543, allocations: 114.5 kB / 1.02 GB, free: 440 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.345e-05/0.5543, allocations: 7.906 kB / 1.02 GB, free: 432 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.704e-05/0.5544, allocations: 12.25 kB / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.5544, allocations: 0 / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.5544, allocations: 0 / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.5544, allocations: 0 / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.5546, allocations: 318.2 kB / 1.02 GB, free: 80 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.5547, allocations: 3.984 kB / 1.02 GB, free: 76 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.379e-05/0.5547, allocations: 4 kB / 1.02 GB, free: 72 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.5547, allocations: 4 kB / 1.02 GB, free: 68 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.5547, allocations: 4 kB / 1.02 GB, free: 64 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.5547, allocations: 0 / 1.02 GB, free: 64 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.5547, allocations: 4 kB / 1.02 GB, free: 60 kB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001711/0.5549, allocations: 175.5 kB / 1.021 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.065e-05/0.555, allocations: 89 kB / 1.021 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.555, allocations: 0 / 1.021 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-05/0.5551, allocations: 8 kB / 1.021 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.622e-05/0.5551, allocations: 11.89 kB / 1.021 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.5551, allocations: 3.375 kB / 1.021 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.571e-05/0.5552, allocations: 86.97 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002627/0.5555, allocations: 51.86 kB / 1.021 GB, free: 15.63 MB / 0.6511 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 () * 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.0002836/0.5557, allocations: 178.1 kB / 1.021 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001239/0.5559, allocations: 49.3 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.5559, allocations: 0 / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.096e-05/0.5559, allocations: 29.56 kB / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.5561, allocations: 0 / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002529/0.5564, allocations: 102 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.5566, allocations: 0.7076 MB / 1.022 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of SimCode: time 2.2e-07/0.5566, allocations: 0 / 1.022 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of Templates: time 0.003448/0.5601, allocations: 1.639 MB / 1.023 GB, free: 12.96 MB / 0.6511 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