Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.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.Haldi2009WindowsTInTout,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.435/1.435, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001204/0.001204, allocations: 179.8 kB / 326.5 MB, free: 2.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.685/1.685, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.001019/0.00102, allocations: 86.11 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002883/0.0002883, allocations: 9.312 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.188, allocations: 106.3 MB / 0.9001 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.162/0.35, allocations: 134 MB / 1.031 GB, free: 9.738 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.3503, allocations: 87.94 kB / 1.031 GB, free: 9.652 MB / 0.6823 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.01135/0.3617, allocations: 3.609 MB / 1.035 GB, free: 6.031 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3617, allocations: 0 / 1.035 GB, free: 6.031 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.383e-06/0.3617, allocations: 0 / 1.035 GB, free: 6.031 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006864/0.3624, allocations: 482.6 kB / 1.035 GB, free: 5.5 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.3625, allocations: 8.031 kB / 1.035 GB, free: 5.492 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.049e-05/0.3625, allocations: 7.906 kB / 1.035 GB, free: 5.484 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.3627, allocations: 191.3 kB / 1.035 GB, free: 5.254 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.3627, allocations: 15.94 kB / 1.035 GB, free: 5.238 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/0.3628, allocations: 4 kB / 1.035 GB, free: 5.234 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002494/0.363, allocations: 105.5 kB / 1.035 GB, free: 5.125 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.363, allocations: 0 / 1.035 GB, free: 5.125 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.3631, allocations: 4 kB / 1.035 GB, free: 5.121 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.3631, allocations: 0 / 1.035 GB, free: 5.121 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.3633, allocations: 75.95 kB / 1.035 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008547/0.3641, allocations: 368.7 kB / 1.036 GB, free: 4.637 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001579/0.3643, allocations: 74.48 kB / 1.036 GB, free: 4.555 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.3643, allocations: 4 kB / 1.036 GB, free: 4.551 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002017/0.3645, allocations: 107.3 kB / 1.036 GB, free: 4.434 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=9): time 1.283e-06/0.3645, allocations: 0 / 1.036 GB, free: 4.434 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9): time 0.0005364/0.3651, allocations: 233.4 kB / 1.036 GB, free: 4.199 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.3651, allocations: 55.41 kB / 1.036 GB, free: 4.133 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.3653, allocations: 129.4 kB / 1.036 GB, free: 4 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.3653, allocations: 33.7 kB / 1.036 GB, free: 3.961 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.026e-05/0.3654, allocations: 96.36 kB / 1.036 GB, free: 3.859 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/0.3654, allocations: 27.8 kB / 1.037 GB, free: 3.832 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.116e-05/0.3654, allocations: 4.109 kB / 1.037 GB, free: 3.828 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.3655, allocations: 328.6 kB / 1.037 GB, free: 3.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.3657, allocations: 43.97 kB / 1.037 GB, free: 3.457 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.3658, allocations: 76.27 kB / 1.037 GB, free: 3.367 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001284/0.3659, allocations: 55.97 kB / 1.037 GB, free: 3.312 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.366, allocations: 0 / 1.037 GB, free: 3.312 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003584/0.3663, allocations: 165.4 kB / 1.037 GB, free: 3.145 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.3663, allocations: 8 kB / 1.037 GB, free: 3.137 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.3664, allocations: 0 / 1.037 GB, free: 3.137 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.3664, allocations: 4 kB / 1.037 GB, free: 3.133 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.3665, allocations: 20.42 kB / 1.037 GB, free: 3.113 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.3665, allocations: 15.88 kB / 1.037 GB, free: 3.098 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.3666, allocations: 19.94 kB / 1.037 GB, free: 3.078 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.3667, allocations: 8 kB / 1.037 GB, free: 3.07 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.win.curSeed,win.curSeed,$PRE.win.on,win.on,occ.y,$PRE.win.pOpen,win.pOpen,$PRE.win.pClose,win.pClose,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001035/0.3668, allocations: 123.7 kB / 1.037 GB, free: 2.941 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.931e-05/0.3668, allocations: 11.91 kB / 1.037 GB, free: 2.93 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.489e-05/0.3668, allocations: 8.719 kB / 1.037 GB, free: 2.918 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3669, allocations: 0 / 1.037 GB, free: 2.918 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.3669, allocations: 4 kB / 1.037 GB, free: 2.914 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3669, allocations: 7.953 kB / 1.037 GB, free: 2.906 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005877/0.3675, allocations: 462.4 kB / 1.038 GB, free: 2.398 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3675, allocations: 4 kB / 1.038 GB, free: 2.395 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.7e-05/0.3676, allocations: 19.98 kB / 1.038 GB, free: 2.375 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.3676, allocations: 0 / 1.038 GB, free: 2.375 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.3676, allocations: 7.922 kB / 1.038 GB, free: 2.367 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.3676, allocations: 3.953 kB / 1.038 GB, free: 2.363 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3676, allocations: 0 / 1.038 GB, free: 2.363 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004079/0.368, allocations: 275.3 kB / 1.038 GB, free: 2.078 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.342e-05/0.3681, allocations: 85.02 kB / 1.038 GB, free: 1.977 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.3681, allocations: 0 / 1.038 GB, free: 1.977 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.3682, allocations: 11.98 kB / 1.038 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.099e-05/0.3683, allocations: 15.94 kB / 1.038 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.3683, allocations: 4 kB / 1.038 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 7.016e-05/0.3684, allocations: 107 kB / 1.038 GB, free: 1.844 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3684, allocations: 4 kB / 1.038 GB, free: 1.84 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003629/0.3688, allocations: 59.84 kB / 1.038 GB, free: 1.781 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.pOpen,win.pClose,win.curSeed) * Number of discrete states: 1 (win.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0004225/0.3692, allocations: 180.9 kB / 1.039 GB, free: 1.609 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003347/0.3696, allocations: 119.9 kB / 1.039 GB, free: 1.492 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3696, allocations: 0 / 1.039 GB, free: 1.492 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.3698, allocations: 63.91 kB / 1.039 GB, free: 1.43 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001944/0.37, allocations: 16.05 kB / 1.039 GB, free: 1.414 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005378/0.3705, allocations: 253.3 kB / 1.039 GB, free: 1.129 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.3708, allocations: 0.7043 MB / 1.04 GB, free: 408 kB / 0.6823 GB Notification: Performance of simCode: alias equations: time 5.196e-05/0.3708, allocations: 4 kB / 1.04 GB, free: 404 kB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.285e-05/0.3709, allocations: 11.44 kB / 1.04 GB, free: 396 kB / 0.6823 GB Notification: Performance of SimCode: time 2.4e-07/0.3709, allocations: 0 / 1.04 GB, free: 396 kB / 0.6823 GB Notification: Performance of Templates: time 0.004609/0.3755, allocations: 1.984 MB / 1.042 GB, free: 14.43 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.pOpen,win.on Variables in the result:TIn.amplitude,TIn.freqHz,TIn.offset,TIn.phase,TIn.startTime,TOut.amplitude,TOut.freqHz,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,occ.y,time,win.ACloseIn,win.ACloseOut,win.AOpenIn,win.AOpenOut,win.BClose,win.BOpen,win.TOut,win.occ,win.on,win.pOpen,win.samplePeriod,win.seed,win.t0