Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.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.Haldi2009WindowsTInTout,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_latest_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_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.374/2.374, allocations: 390.5 MB / 398 MB, free: 10.97 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.00111/0.00111, allocations: 199.9 kB / 491.2 MB, free: 1.586 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.607/1.607, allocations: 221.5 MB / 0.7868 GB, free: 13.32 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.0008513/0.0008513, allocations: 94.19 kB / 0.9269 GB, free: 13.81 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.659e-05/1.661e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3476, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.087/1.435, allocations: 151.6 MB / 1.36 GB, free: 17.55 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/1.435, allocations: 78.72 kB / 1.36 GB, free: 17.55 MB / 0.823 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.01221/1.448, allocations: 3.624 MB / 1.364 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.665e-06/1.448, allocations: 0 / 1.364 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.119e-05/1.448, allocations: 0 / 1.364 GB, free: 33.04 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007681/1.448, allocations: 468.7 kB / 1.364 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.929e-05/1.449, allocations: 11.59 kB / 1.364 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.832e-05/1.449, allocations: 16.55 kB / 1.364 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001884/1.449, allocations: 181.2 kB / 1.365 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.811e-05/1.449, allocations: 3.875 kB / 1.365 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/1.449, allocations: 3.969 kB / 1.365 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001363/1.449, allocations: 39.3 kB / 1.365 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001723/1.449, allocations: 85.64 kB / 1.365 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/1.449, allocations: 0 / 1.365 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/1.449, allocations: 0 / 1.365 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/1.449, allocations: 0 / 1.365 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009817/1.45, allocations: 348.5 kB / 1.365 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/1.45, allocations: 59 kB / 1.365 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.124e-05/1.451, allocations: 41.38 kB / 1.365 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/1.451, allocations: 0 / 1.365 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001934/1.451, allocations: 87.72 kB / 1.365 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/1.451, allocations: 0 / 1.365 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0004395/1.451, allocations: 147.5 kB / 1.365 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/1.451, allocations: 60.53 kB / 1.365 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/1.451, allocations: 132.9 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/1.451, allocations: 25.7 kB / 1.366 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.222e-05/1.452, allocations: 101.1 kB / 1.366 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.07e-05/1.452, allocations: 24.39 kB / 1.366 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.776e-06/1.452, allocations: 0 / 1.366 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001971/1.452, allocations: 322.3 kB / 1.366 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.497e-05/1.452, allocations: 27.22 kB / 1.366 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.04e-05/1.452, allocations: 61.69 kB / 1.366 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.929e-05/1.452, allocations: 43.81 kB / 1.366 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/1.452, allocations: 0 / 1.366 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001999/1.452, allocations: 113.5 kB / 1.366 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/1.452, allocations: 7.688 kB / 1.366 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/1.452, allocations: 0 / 1.366 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/1.452, allocations: 5.344 kB / 1.366 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/1.452, allocations: 27.19 kB / 1.366 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/1.453, allocations: 7.828 kB / 1.366 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.647e-05/1.453, allocations: 10.41 kB / 1.366 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/1.453, allocations: 6.984 kB / 1.366 GB, free: 31.25 MB / 0.8386 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 () * 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.0001575/1.453, allocations: 105.9 kB / 1.366 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.019e-05/1.453, allocations: 11.72 kB / 1.366 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.296e-05/1.453, allocations: 12.38 kB / 1.366 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/1.453, allocations: 2.719 kB / 1.366 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/1.453, allocations: 0 / 1.366 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/1.453, allocations: 3.953 kB / 1.366 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004579/1.453, allocations: 405.9 kB / 1.367 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/1.453, allocations: 0 / 1.367 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.174e-05/1.453, allocations: 14.67 kB / 1.367 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/1.453, allocations: 4.656 kB / 1.367 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/1.453, allocations: 6.859 kB / 1.367 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/1.454, allocations: 0 / 1.367 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.454, allocations: 3.953 kB / 1.367 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002645/1.454, allocations: 243 kB / 1.367 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.678e-05/1.454, allocations: 84.58 kB / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.779e-05/1.454, allocations: 2.312 kB / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/1.454, allocations: 18.36 kB / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.321e-05/1.454, allocations: 6.375 kB / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/1.454, allocations: 10.2 kB / 1.367 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.895e-05/1.454, allocations: 104.3 kB / 1.367 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.454, allocations: 0 / 1.367 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003217/1.454, allocations: 60.53 kB / 1.367 GB, free: 30.51 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: 7 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.pOpen,win.pClose,win.curSeed) * Number of discrete states: 1 (win.on) * 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.000419/1.455, allocations: 169.4 kB / 1.368 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001763/1.455, allocations: 80.59 kB / 1.368 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/1.455, allocations: 0 / 1.368 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.557e-05/1.455, allocations: 44.62 kB / 1.368 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000204/1.455, allocations: 13.77 kB / 1.368 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003695/1.456, allocations: 132.3 kB / 1.368 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/1.456, allocations: 0.7049 MB / 1.368 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.793e-05/1.456, allocations: 5.516 kB / 1.368 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.902e-05/1.456, allocations: 12.73 kB / 1.369 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.456, allocations: 0 / 1.369 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of Templates: time 0.004569/1.461, allocations: 1.924 MB / 1.37 GB, free: 29.43 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout.csv","../files/Buildings_latest_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.f,TIn.offset,TIn.phase,TIn.startTime,TOut.amplitude,TOut.f,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