Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.337/2.337, allocations: 387.1 MB / 399.7 MB, free: 9.488 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.001099/0.001099, allocations: 188.1 kB / 492.3 MB, free: 0.6133 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.629/1.629, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.000945/0.000945, allocations: 95.95 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.88e-05/2.881e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3083, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.075/1.383, allocations: 151.2 MB / 1.36 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/1.384, allocations: 78.47 kB / 1.36 GB, free: 19.05 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.009385/1.393, allocations: 3.021 MB / 1.363 GB, free: 34.59 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.525e-06/1.393, allocations: 0 / 1.363 GB, free: 34.59 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.177e-06/1.393, allocations: 3.812 kB / 1.363 GB, free: 34.59 MB / 0.8386 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.0004986/1.394, allocations: 410 kB / 1.363 GB, free: 34.19 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/1.394, allocations: 12.77 kB / 1.363 GB, free: 34.18 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.465e-05/1.394, allocations: 7.781 kB / 1.363 GB, free: 34.18 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/1.394, allocations: 176.1 kB / 1.364 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/1.394, allocations: 3.875 kB / 1.364 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/1.394, allocations: 3.844 kB / 1.364 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001417/1.394, allocations: 60.95 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/1.394, allocations: 2 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/1.394, allocations: 3.938 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/1.394, allocations: 3.938 kB / 1.364 GB, free: 33.94 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.452e-05/1.394, allocations: 27.25 kB / 1.364 GB, free: 33.94 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005884/1.395, allocations: 312.2 kB / 1.364 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.979e-05/1.395, allocations: 41.12 kB / 1.364 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.675e-05/1.395, allocations: 27.64 kB / 1.364 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/1.395, allocations: 4 kB / 1.364 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001257/1.395, allocations: 75.7 kB / 1.364 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/1.395, allocations: 0 / 1.364 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002314/1.395, allocations: 96.89 kB / 1.364 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/1.395, allocations: 56.44 kB / 1.364 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.836e-05/1.395, allocations: 120.6 kB / 1.364 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/1.396, allocations: 25.7 kB / 1.364 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.875e-05/1.396, allocations: 99.45 kB / 1.365 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/1.396, allocations: 12.19 kB / 1.365 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/1.396, allocations: 0 / 1.365 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001173/1.396, allocations: 320.5 kB / 1.365 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.972e-05/1.396, allocations: 22 kB / 1.365 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.288e-05/1.396, allocations: 42.08 kB / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.361e-05/1.396, allocations: 29.3 kB / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/1.396, allocations: 0 / 1.365 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001496/1.396, allocations: 98.66 kB / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/1.396, allocations: 3.844 kB / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/1.396, allocations: 0 / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/1.396, allocations: 3.875 kB / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.7e-05/1.396, allocations: 11.86 kB / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/1.396, allocations: 0 / 1.365 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.122e-05/1.396, allocations: 20.89 kB / 1.365 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/1.396, allocations: 8.031 kB / 1.365 GB, free: 32.86 MB / 0.8386 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 7.512e-05/1.396, allocations: 108.3 kB / 1.365 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.502e-05/1.396, allocations: 9.422 kB / 1.365 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.27e-05/1.396, allocations: 11.19 kB / 1.365 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/1.396, allocations: 0 / 1.365 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/1.397, allocations: 1.594 kB / 1.365 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/1.397, allocations: 0.875 kB / 1.365 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003279/1.397, allocations: 373.7 kB / 1.366 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/1.397, allocations: 0 / 1.366 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.313e-05/1.397, allocations: 9.453 kB / 1.366 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/1.397, allocations: 1.641 kB / 1.366 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/1.397, allocations: 3.969 kB / 1.366 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/1.397, allocations: 4 kB / 1.366 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.397, allocations: 3.953 kB / 1.366 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001915/1.397, allocations: 196.9 kB / 1.366 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.501e-05/1.397, allocations: 81.11 kB / 1.366 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.883e-05/1.397, allocations: 5.141 kB / 1.366 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-05/1.397, allocations: 5.625 kB / 1.366 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/1.397, allocations: 9.281 kB / 1.366 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/1.397, allocations: 4.844 kB / 1.366 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.052e-05/1.397, allocations: 96.91 kB / 1.366 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.397, allocations: 0 / 1.366 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003095/1.398, allocations: 51.47 kB / 1.366 GB, free: 32.09 MB / 0.8386 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.0003762/1.398, allocations: 173.3 kB / 1.366 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001467/1.398, allocations: 59.36 kB / 1.366 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/1.398, allocations: 0 / 1.366 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.716e-05/1.398, allocations: 33.09 kB / 1.366 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001784/1.399, allocations: 5.469 kB / 1.366 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003066/1.399, allocations: 110.4 kB / 1.366 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/1.399, allocations: 0.6893 MB / 1.367 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.01e-05/1.399, allocations: 4.766 kB / 1.367 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.718e-05/1.399, allocations: 12.23 kB / 1.367 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of SimCode: time 1.483e-06/1.399, allocations: 0 / 1.367 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of Templates: time 0.004212/1.404, allocations: 1.534 MB / 1.369 GB, free: 31.05 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.makefile (rm -f Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.sim & ./Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.csv","../files/Buildings_9_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