Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.337/2.337, allocations: 393.5 MB / 408.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 186.8 kB / 0.4902 GB, free: 2.258 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 223.1 MB / 0.7992 GB, free: 14.61 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 90.45 kB / 0.9396 GB, free: 1.828 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004529/0.0004529, allocations: 11.06 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2939, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1953/0.4892, allocations: 152 MB / 1.378 GB, free: 1.465 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/0.4896, allocations: 87.94 kB / 1.378 GB, free: 1.379 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.009786/0.4994, allocations: 3.037 MB / 1.381 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.764e-06/0.4994, allocations: 0 / 1.381 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.008e-05/0.4994, allocations: 0 / 1.381 GB, free: 14.34 MB / 0.8855 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.0006547/0.5001, allocations: 420.7 kB / 1.381 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.5001, allocations: 8.562 kB / 1.381 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.421e-05/0.5002, allocations: 7.953 kB / 1.381 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/0.5004, allocations: 174.9 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.5004, allocations: 8 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.5004, allocations: 8 kB / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.5007, allocations: 69.64 kB / 1.381 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.5007, allocations: 3.938 kB / 1.381 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.5007, allocations: 7.984 kB / 1.381 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.5007, allocations: 4 kB / 1.381 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.5009, allocations: 43.92 kB / 1.381 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007134/0.5016, allocations: 316.8 kB / 1.382 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.5017, allocations: 46.56 kB / 1.382 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.5018, allocations: 4 kB / 1.382 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.5019, allocations: 79.56 kB / 1.382 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.773e-06/0.502, allocations: 3.938 kB / 1.382 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.000445/0.5024, allocations: 153.5 kB / 1.382 GB, free: 12.83 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.5025, allocations: 55.34 kB / 1.382 GB, free: 12.76 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.19e-05/0.5026, allocations: 113 kB / 1.382 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.5026, allocations: 29.69 kB / 1.382 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.907e-05/0.5027, allocations: 96.23 kB / 1.382 GB, free: 12.51 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.5027, allocations: 7.891 kB / 1.382 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.498e-06/0.5027, allocations: 4 kB / 1.382 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.5028, allocations: 322.8 kB / 1.383 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.501e-05/0.5029, allocations: 27.98 kB / 1.383 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.139e-05/0.503, allocations: 50.55 kB / 1.383 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.5031, allocations: 35.94 kB / 1.383 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.5031, allocations: 0 / 1.383 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002517/0.5034, allocations: 117.5 kB / 1.383 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.5034, allocations: 8 kB / 1.383 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.5034, allocations: 0 / 1.383 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.5034, allocations: 0 / 1.383 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.5036, allocations: 20.05 kB / 1.383 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.5036, allocations: 3.953 kB / 1.383 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.58e-05/0.5037, allocations: 19.83 kB / 1.383 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.5037, allocations: 4 kB / 1.383 GB, free: 11.88 MB / 0.8855 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 9.606e-05/0.5038, allocations: 121.7 kB / 1.383 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.677e-05/0.5038, allocations: 7.984 kB / 1.383 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.982e-05/0.5038, allocations: 8.375 kB / 1.383 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.5038, allocations: 8 kB / 1.383 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5039, allocations: 0 / 1.383 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.463e-06/0.5039, allocations: 7.938 kB / 1.383 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004628/0.5043, allocations: 378.4 kB / 1.383 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.5043, allocations: 0 / 1.383 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.288e-05/0.5044, allocations: 7.938 kB / 1.383 GB, free: 11.28 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.5044, allocations: 8 kB / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.5044, allocations: 4 kB / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.5044, allocations: 3.953 kB / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.5044, allocations: 0 / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002812/0.5047, allocations: 208 kB / 1.384 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.474e-05/0.5048, allocations: 85.02 kB / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.5048, allocations: 8 kB / 1.384 GB, free: 10.94 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.113e-05/0.5049, allocations: 11.98 kB / 1.384 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.55e-05/0.505, allocations: 3.953 kB / 1.384 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.505, allocations: 7.984 kB / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.065e-05/0.505, allocations: 87.28 kB / 1.384 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.505, allocations: 0 / 1.384 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003448/0.5054, allocations: 51.92 kB / 1.384 GB, free: 10.78 MB / 0.8855 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.0004249/0.5058, allocations: 180 kB / 1.384 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002504/0.5061, allocations: 75.94 kB / 1.384 GB, free: 10.53 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5061, allocations: 0 / 1.384 GB, free: 10.53 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.961e-05/0.5062, allocations: 44.05 kB / 1.384 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001749/0.5064, allocations: 4 kB / 1.384 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004191/0.5068, allocations: 211.1 kB / 1.384 GB, free: 10.24 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002244/0.5071, allocations: 0.6974 MB / 1.385 GB, free: 9.52 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.876e-05/0.5071, allocations: 4.188 kB / 1.385 GB, free: 9.516 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.834e-05/0.5071, allocations: 11.44 kB / 1.385 GB, free: 9.504 MB / 0.8855 GB Notification: Performance of SimCode: time 3.1e-07/0.5072, allocations: 0 / 1.385 GB, free: 9.504 MB / 0.8855 GB Notification: Performance of Templates: time 0.004511/0.5117, allocations: 1.526 MB / 1.387 GB, free: 7.988 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.makefile (rm -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.sim & ./Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.csv","../files/Buildings_latest_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.f,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