Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.Office.Windows.Validation.Zhang2012WindowsEast,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.319/2.319, allocations: 393.5 MB / 408.4 MB, free: 11.07 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.001138/0.001138, allocations: 178.9 kB / 0.4902 GB, free: 2.242 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.709/1.709, allocations: 223.1 MB / 0.7992 GB, free: 15.59 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.001022/0.001022, allocations: 102.9 kB / 0.9396 GB, free: 2.773 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004086/0.0004086, allocations: 8.656 kB / 1.09 GB, free: 213 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3382, allocations: 143 MB / 1.229 GB, free: 85.48 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2127/0.551, allocations: 152 MB / 1.378 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.5513, allocations: 79.95 kB / 1.378 GB, free: 13.18 MB / 0.8855 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.009629/0.561, allocations: 3.042 MB / 1.381 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.963e-06/0.561, allocations: 0 / 1.381 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.561, allocations: 0 / 1.381 GB, free: 10.12 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.0005648/0.5616, allocations: 416.7 kB / 1.381 GB, free: 9.664 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.5617, allocations: 12.56 kB / 1.381 GB, free: 9.652 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.473e-05/0.5617, allocations: 11.86 kB / 1.381 GB, free: 9.641 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.5618, allocations: 175 kB / 1.381 GB, free: 9.43 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.5619, allocations: 8 kB / 1.381 GB, free: 9.422 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.968e-05/0.5619, allocations: 4 kB / 1.381 GB, free: 9.418 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.5621, allocations: 69.59 kB / 1.381 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.5621, allocations: 0 / 1.381 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.5622, allocations: 8 kB / 1.381 GB, free: 9.336 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.5622, allocations: 0 / 1.381 GB, free: 9.336 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001303/0.5623, allocations: 43.97 kB / 1.381 GB, free: 9.293 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006413/0.5629, allocations: 312.7 kB / 1.382 GB, free: 8.938 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.5631, allocations: 54.56 kB / 1.382 GB, free: 8.875 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.5631, allocations: 0 / 1.382 GB, free: 8.875 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001722/0.5633, allocations: 79.5 kB / 1.382 GB, free: 8.785 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.5633, allocations: 0 / 1.382 GB, free: 8.785 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004079/0.5637, allocations: 157.5 kB / 1.382 GB, free: 8.625 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.5638, allocations: 59.39 kB / 1.382 GB, free: 8.555 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.021e-05/0.5639, allocations: 109.3 kB / 1.382 GB, free: 8.441 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.5639, allocations: 25.7 kB / 1.382 GB, free: 8.41 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.326e-05/0.564, allocations: 92.23 kB / 1.382 GB, free: 8.312 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.564, allocations: 23.73 kB / 1.382 GB, free: 8.289 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-06/0.564, allocations: 0 / 1.382 GB, free: 8.289 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.5641, allocations: 319 kB / 1.383 GB, free: 7.969 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.626e-05/0.5642, allocations: 27.98 kB / 1.383 GB, free: 7.941 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.147e-05/0.5643, allocations: 58.53 kB / 1.383 GB, free: 7.875 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.232e-05/0.5644, allocations: 39.98 kB / 1.383 GB, free: 7.836 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.5644, allocations: 0 / 1.383 GB, free: 7.836 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000233/0.5647, allocations: 121.6 kB / 1.383 GB, free: 7.711 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.5647, allocations: 4 kB / 1.383 GB, free: 7.707 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.5647, allocations: 400 / 1.383 GB, free: 7.707 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.5647, allocations: 0 / 1.383 GB, free: 7.707 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.5648, allocations: 27.97 kB / 1.383 GB, free: 7.68 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.5648, allocations: 7.891 kB / 1.383 GB, free: 7.672 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.532e-05/0.5649, allocations: 11.91 kB / 1.383 GB, free: 7.66 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.5649, allocations: 4 kB / 1.383 GB, free: 7.656 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.833e-05/0.5651, allocations: 113.8 kB / 1.383 GB, free: 7.535 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.58e-05/0.5651, allocations: 7.906 kB / 1.383 GB, free: 7.527 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.443e-05/0.5651, allocations: 16.36 kB / 1.383 GB, free: 7.512 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.5651, allocations: 4 kB / 1.383 GB, free: 7.508 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.5651, allocations: 0 / 1.383 GB, free: 7.508 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.5652, allocations: 3.953 kB / 1.383 GB, free: 7.504 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004631/0.5656, allocations: 386.5 kB / 1.383 GB, free: 7.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.5656, allocations: 0 / 1.383 GB, free: 7.07 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.814e-05/0.5657, allocations: 8 kB / 1.383 GB, free: 7.062 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.5657, allocations: 4 kB / 1.383 GB, free: 7.059 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.5657, allocations: 3.984 kB / 1.383 GB, free: 7.055 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.5657, allocations: 3.953 kB / 1.383 GB, free: 7.051 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5657, allocations: 0 / 1.383 GB, free: 7.051 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.566, allocations: 215.4 kB / 1.384 GB, free: 6.824 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.718e-05/0.5661, allocations: 81.11 kB / 1.384 GB, free: 6.727 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/0.5661, allocations: 7.984 kB / 1.384 GB, free: 6.719 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.439e-05/0.5662, allocations: 4 kB / 1.384 GB, free: 6.715 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.5662, allocations: 15.94 kB / 1.384 GB, free: 6.699 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-06/0.5662, allocations: 0 / 1.384 GB, free: 6.699 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.776e-05/0.5663, allocations: 91.27 kB / 1.384 GB, free: 6.609 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5663, allocations: 0 / 1.384 GB, free: 6.609 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003048/0.5666, allocations: 51.94 kB / 1.384 GB, free: 6.559 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.0003932/0.567, allocations: 176.1 kB / 1.384 GB, free: 6.391 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000237/0.5673, allocations: 75.91 kB / 1.384 GB, free: 6.316 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5673, allocations: 0 / 1.384 GB, free: 6.316 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.5674, allocations: 48.03 kB / 1.384 GB, free: 6.27 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.5676, allocations: 14.92 kB / 1.384 GB, free: 6.258 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004377/0.568, allocations: 197.2 kB / 1.384 GB, free: 6.035 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.5684, allocations: 0.6926 MB / 1.385 GB, free: 5.316 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.045e-05/0.5684, allocations: 8.172 kB / 1.385 GB, free: 5.309 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.932e-05/0.5684, allocations: 11.42 kB / 1.385 GB, free: 5.297 MB / 0.8855 GB Notification: Performance of SimCode: time 2.41e-07/0.5684, allocations: 4 kB / 1.385 GB, free: 5.293 MB / 0.8855 GB Notification: Performance of Templates: time 0.004244/0.5727, allocations: 1.518 MB / 1.387 GB, free: 3.777 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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