Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,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.Zhang2012WindowsWest") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,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.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.467/1.467, 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.001052/0.001052, allocations: 172.9 kB / 316.3 MB, free: 3.285 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.683/1.683, allocations: 205.3 MB / 0.5671 GB, free: 15.85 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.0007938/0.0007939, allocations: 86.47 kB / 0.6714 GB, free: 4.973 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.259e-05/2.26e-05, allocations: 7.938 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2384, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.819/1.057, allocations: 133.9 MB / 1.016 GB, free: 3.883 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/1.058, allocations: 83.39 kB / 1.016 GB, free: 3.84 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.008944/1.067, allocations: 2.961 MB / 1.019 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.292e-06/1.067, allocations: 0 / 1.019 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.452e-06/1.067, allocations: 0 / 1.019 GB, free: 1.332 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.0005532/1.067, allocations: 411 kB / 1.019 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/1.067, allocations: 8.031 kB / 1.019 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.843e-05/1.067, allocations: 7.906 kB / 1.019 GB, free: 0.8711 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/1.068, allocations: 182.9 kB / 1.02 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/1.068, allocations: 4 kB / 1.02 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/1.068, allocations: 7.938 kB / 1.02 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.728e-05/1.068, allocations: 22.94 kB / 1.02 GB, free: 0.6289 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001102/1.068, allocations: 53.3 kB / 1.02 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/1.068, allocations: 0 / 1.02 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/1.068, allocations: 0 / 1.02 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/1.068, allocations: 0 / 1.02 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006209/1.069, allocations: 294.6 kB / 1.02 GB, free: 280 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.622e-05/1.069, allocations: 38.58 kB / 1.02 GB, free: 240 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.845e-05/1.069, allocations: 28.22 kB / 1.02 GB, free: 216 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/1.069, allocations: 0 / 1.02 GB, free: 216 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001223/1.069, allocations: 69.52 kB / 1.02 GB, free: 144 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/1.069, allocations: 0 / 1.02 GB, free: 144 kB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002747/1.069, allocations: 98.89 kB / 1.02 GB, free: 56 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/1.069, allocations: 55.34 kB / 1.02 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.583e-05/1.069, allocations: 113.3 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/1.069, allocations: 29.7 kB / 1.02 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.014e-05/1.069, allocations: 86.77 kB / 1.02 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.566e-05/1.07, allocations: 22.69 kB / 1.02 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-06/1.07, allocations: 7.938 kB / 1.02 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001361/1.07, allocations: 325.9 kB / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.613e-05/1.07, allocations: 14.88 kB / 1.021 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.461e-05/1.07, allocations: 36.88 kB / 1.021 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.811e-05/1.07, allocations: 18.62 kB / 1.021 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/1.07, allocations: 0 / 1.021 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001688/1.07, allocations: 94.83 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/1.07, allocations: 8 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/1.07, allocations: 3.688 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/1.07, allocations: 0 / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.732e-05/1.07, allocations: 15.48 kB / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/1.07, allocations: 4 kB / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.387e-05/1.07, allocations: 7.906 kB / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/1.07, allocations: 7.984 kB / 1.021 GB, free: 15.22 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 8.932e-05/1.07, allocations: 116.9 kB / 1.021 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.146e-05/1.07, allocations: 0 / 1.021 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.236e-05/1.07, allocations: 12 kB / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/1.07, allocations: 0 / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/1.07, allocations: 0 / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/1.07, allocations: 0 / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000372/1.071, allocations: 339.3 kB / 1.021 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/1.071, allocations: 0 / 1.021 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.567e-05/1.071, allocations: 15.94 kB / 1.021 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/1.071, allocations: 3.938 kB / 1.021 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/1.071, allocations: 3.984 kB / 1.021 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/1.071, allocations: 0 / 1.021 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.071, allocations: 0 / 1.021 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002297/1.071, allocations: 196 kB / 1.022 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.745e-05/1.071, allocations: 85.02 kB / 1.022 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/1.071, allocations: 0 / 1.022 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/1.071, allocations: 11.98 kB / 1.022 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.533e-05/1.071, allocations: 4 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/1.071, allocations: 7.297 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.963e-05/1.072, allocations: 87.19 kB / 1.022 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.072, allocations: 0 / 1.022 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003154/1.072, allocations: 55.23 kB / 1.022 GB, free: 14.28 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.000397/1.072, allocations: 171.2 kB / 1.022 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001457/1.072, allocations: 51.61 kB / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/1.072, allocations: 0 / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.553e-05/1.073, allocations: 28.06 kB / 1.022 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001829/1.073, allocations: 8.828 kB / 1.022 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000304/1.073, allocations: 101 kB / 1.022 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/1.073, allocations: 0.6962 MB / 1.023 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.391e-05/1.073, allocations: 8.172 kB / 1.023 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.651e-05/1.073, allocations: 11.44 kB / 1.023 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/1.073, allocations: 0 / 1.023 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of Templates: time 0.004047/1.077, allocations: 1.503 MB / 1.024 GB, free: 11.71 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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