Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Office.Windows.Validation.Zhang2012WindowsNorth,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.Office.Windows.Validation.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,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.Office.Windows.Validation.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.46/1.46, allocations: 249.5 MB / 257 MB, free: 6.887 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.001004/0.001004, allocations: 172.9 kB / 316.3 MB, free: 3.234 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.663/1.663, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.0008261/0.0008263, allocations: 98.38 kB / 0.6714 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.434e-05/1.436e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2413, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8512/1.093, allocations: 133.9 MB / 1.016 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002603/1.093, allocations: 82.25 kB / 1.016 GB, free: 3.77 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 - DAE generated: time 0.009093/1.102, allocations: 2.957 MB / 1.019 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.472e-06/1.102, allocations: 0 / 1.019 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.247e-05/1.102, allocations: 4 kB / 1.019 GB, free: 1.266 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.0005682/1.103, allocations: 412.8 kB / 1.019 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/1.103, allocations: 15.97 kB / 1.019 GB, free: 0.8047 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.4e-05/1.103, allocations: 3.906 kB / 1.019 GB, free: 0.8008 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/1.103, allocations: 170.9 kB / 1.02 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/1.103, allocations: 8 kB / 1.02 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.764e-05/1.103, allocations: 4 kB / 1.02 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.746e-05/1.103, allocations: 18.44 kB / 1.02 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/1.103, allocations: 60.91 kB / 1.02 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/1.103, allocations: 0 / 1.02 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/1.103, allocations: 3.984 kB / 1.02 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/1.103, allocations: 4 kB / 1.02 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005885/1.104, allocations: 288 kB / 1.02 GB, free: 212 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.881e-05/1.104, allocations: 41.75 kB / 1.02 GB, free: 172 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.442e-05/1.104, allocations: 25.55 kB / 1.02 GB, free: 152 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/1.104, allocations: 0 / 1.02 GB, free: 152 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001311/1.104, allocations: 67.02 kB / 1.02 GB, free: 80 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 3.717e-06/1.104, allocations: 7.984 kB / 1.02 GB, free: 72 kB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0003123/1.104, allocations: 100.8 kB / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/1.104, allocations: 59.28 kB / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/1.105, allocations: 110.6 kB / 1.02 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/1.105, allocations: 29.58 kB / 1.02 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.939e-05/1.105, allocations: 84.08 kB / 1.02 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.647e-05/1.105, allocations: 23.61 kB / 1.02 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/1.105, allocations: 3.938 kB / 1.02 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001682/1.105, allocations: 322.8 kB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.197e-05/1.105, allocations: 19.17 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.668e-05/1.105, allocations: 38.33 kB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.803e-05/1.105, allocations: 23.42 kB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/1.105, allocations: 0 / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001601/1.105, allocations: 88.66 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/1.105, allocations: 12.06 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/1.105, allocations: 7.734 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/1.105, allocations: 0 / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/1.106, allocations: 15.94 kB / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/1.106, allocations: 0 / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.3e-05/1.106, allocations: 11.89 kB / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/1.106, allocations: 4 kB / 1.021 GB, free: 15.15 MB / 0.6511 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 0.0001053/1.106, allocations: 112.9 kB / 1.021 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/1.106, allocations: 0 / 1.021 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.716e-05/1.106, allocations: 12.19 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/1.106, allocations: 3.984 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/1.106, allocations: 0 / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/1.106, allocations: 0 / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003582/1.106, allocations: 345.9 kB / 1.021 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/1.106, allocations: 0 / 1.021 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.437e-05/1.106, allocations: 7.984 kB / 1.021 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/1.106, allocations: 4 kB / 1.021 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/1.106, allocations: 0 / 1.021 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/1.106, allocations: 0 / 1.021 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.106, allocations: 0 / 1.021 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002125/1.107, allocations: 194.7 kB / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.882e-05/1.107, allocations: 85 kB / 1.022 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.102e-05/1.107, allocations: 0 / 1.022 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.805e-05/1.107, allocations: 4 kB / 1.022 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/1.107, allocations: 15.92 kB / 1.022 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/1.107, allocations: 0 / 1.022 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.695e-05/1.107, allocations: 95.69 kB / 1.022 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.934e-06/1.107, allocations: 0 / 1.022 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000312/1.107, allocations: 47.86 kB / 1.022 GB, free: 14.21 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.0004016/1.108, allocations: 174.1 kB / 1.022 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001403/1.108, allocations: 55.42 kB / 1.022 GB, free: 14 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.108, allocations: 0 / 1.022 GB, free: 14 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.233e-05/1.108, allocations: 27.16 kB / 1.022 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001874/1.108, allocations: 4.109 kB / 1.022 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002847/1.108, allocations: 104 kB / 1.022 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/1.109, allocations: 0.6925 MB / 1.023 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.324e-05/1.109, allocations: 8.172 kB / 1.023 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.635e-05/1.109, allocations: 11.44 kB / 1.023 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of SimCode: time 2.41e-07/1.109, allocations: 0 / 1.023 GB, free: 13.13 MB / 0.6511 GB Notification: Performance of Templates: time 0.003802/1.112, allocations: 1.494 MB / 1.024 GB, free: 11.66 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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