Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.368/2.368, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001184/0.001185, allocations: 173.1 kB / 498.1 MB, free: 5.719 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.562/1.562, allocations: 223.2 MB / 0.7948 GB, free: 17.91 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.0009532/0.0009536, allocations: 105.9 kB / 0.9346 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004067/0.0004069, allocations: 6.875 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3032, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1918/0.4951, allocations: 151.2 MB / 1.371 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.4955, allocations: 87.88 kB / 1.371 GB, free: 10.73 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.01066/0.5061, allocations: 3.032 MB / 1.374 GB, free: 7.691 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.769e-06/0.5062, allocations: 7.938 kB / 1.374 GB, free: 7.684 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.214e-05/0.5062, allocations: 0 / 1.374 GB, free: 7.684 MB / 0.8698 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.0008017/0.507, allocations: 420.7 kB / 1.374 GB, free: 7.219 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 7.058e-05/0.5071, allocations: 12.03 kB / 1.374 GB, free: 7.207 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.347e-05/0.5072, allocations: 11.86 kB / 1.374 GB, free: 7.195 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001829/0.5074, allocations: 182.9 kB / 1.374 GB, free: 6.977 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.686e-05/0.5074, allocations: 8 kB / 1.374 GB, free: 6.969 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.419e-05/0.5075, allocations: 4 kB / 1.374 GB, free: 6.965 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002242/0.5077, allocations: 65.66 kB / 1.374 GB, free: 6.895 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.5077, allocations: 0 / 1.374 GB, free: 6.895 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.5077, allocations: 4 kB / 1.374 GB, free: 6.891 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.5078, allocations: 0 / 1.374 GB, free: 6.891 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001374/0.5079, allocations: 47.97 kB / 1.374 GB, free: 6.844 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006993/0.5086, allocations: 308.8 kB / 1.375 GB, free: 6.492 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.5088, allocations: 62.5 kB / 1.375 GB, free: 6.422 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.5088, allocations: 3.984 kB / 1.375 GB, free: 6.418 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002061/0.509, allocations: 79.48 kB / 1.375 GB, free: 6.328 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.509, allocations: 0 / 1.375 GB, free: 6.328 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0004192/0.5094, allocations: 157.5 kB / 1.375 GB, free: 6.168 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.5095, allocations: 51.41 kB / 1.375 GB, free: 6.105 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.568e-05/0.5096, allocations: 112.9 kB / 1.375 GB, free: 5.988 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.5096, allocations: 29.7 kB / 1.375 GB, free: 5.953 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.967e-05/0.5097, allocations: 92.31 kB / 1.375 GB, free: 5.855 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.5097, allocations: 15.81 kB / 1.375 GB, free: 5.84 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-06/0.5098, allocations: 0 / 1.375 GB, free: 5.84 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.5099, allocations: 322.8 kB / 1.375 GB, free: 5.516 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.022e-05/0.51, allocations: 27.98 kB / 1.376 GB, free: 5.488 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.662e-05/0.5101, allocations: 47 kB / 1.376 GB, free: 5.434 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.204e-05/0.5102, allocations: 43.91 kB / 1.376 GB, free: 5.391 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.5102, allocations: 0 / 1.376 GB, free: 5.391 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002214/0.5104, allocations: 117.5 kB / 1.376 GB, free: 5.27 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.5104, allocations: 9.781 kB / 1.376 GB, free: 5.262 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.5104, allocations: 0 / 1.376 GB, free: 5.262 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.5105, allocations: 4 kB / 1.376 GB, free: 5.258 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.685e-05/0.5106, allocations: 15.92 kB / 1.376 GB, free: 5.242 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.5106, allocations: 3.953 kB / 1.376 GB, free: 5.238 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.718e-05/0.5107, allocations: 15.94 kB / 1.376 GB, free: 5.223 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.5107, allocations: 4 kB / 1.376 GB, free: 5.219 MB / 0.8698 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.482e-05/0.5108, allocations: 121.8 kB / 1.376 GB, free: 5.09 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.61e-05/0.5108, allocations: 7.906 kB / 1.376 GB, free: 5.082 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.843e-05/0.5108, allocations: 8.375 kB / 1.376 GB, free: 5.074 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.5108, allocations: 0 / 1.376 GB, free: 5.074 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.5108, allocations: 3.938 kB / 1.376 GB, free: 5.07 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.5109, allocations: 3.953 kB / 1.376 GB, free: 5.066 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004393/0.5113, allocations: 386.9 kB / 1.376 GB, free: 4.633 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.5113, allocations: 0 / 1.376 GB, free: 4.633 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.967e-05/0.5114, allocations: 7.984 kB / 1.376 GB, free: 4.625 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.5114, allocations: 0 / 1.376 GB, free: 4.625 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.5114, allocations: 0 / 1.376 GB, free: 4.625 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.5114, allocations: 7.953 kB / 1.376 GB, free: 4.617 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.5114, allocations: 0 / 1.376 GB, free: 4.617 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.5117, allocations: 223.4 kB / 1.377 GB, free: 4.383 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.765e-05/0.5117, allocations: 85.09 kB / 1.377 GB, free: 4.281 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.5118, allocations: 0 / 1.377 GB, free: 4.281 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.427e-05/0.5118, allocations: 4 kB / 1.377 GB, free: 4.277 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.749e-05/0.5119, allocations: 15.94 kB / 1.377 GB, free: 4.262 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.5119, allocations: 4 kB / 1.377 GB, free: 4.258 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.469e-05/0.512, allocations: 95.42 kB / 1.377 GB, free: 4.164 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.11e-07/0.512, allocations: 4 kB / 1.377 GB, free: 4.16 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003184/0.5123, allocations: 55.83 kB / 1.377 GB, free: 4.105 MB / 0.8698 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.0003828/0.5127, allocations: 175.4 kB / 1.377 GB, free: 3.938 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002409/0.5129, allocations: 79.97 kB / 1.377 GB, free: 3.859 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.513, allocations: 0 / 1.377 GB, free: 3.859 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.711e-05/0.5131, allocations: 43.95 kB / 1.377 GB, free: 3.816 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.5133, allocations: 7.938 kB / 1.377 GB, free: 3.809 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000382/0.5137, allocations: 205.2 kB / 1.377 GB, free: 3.578 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.5139, allocations: 0.6894 MB / 1.378 GB, free: 2.863 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.675e-05/0.5139, allocations: 8.172 kB / 1.378 GB, free: 2.855 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.617e-05/0.514, allocations: 11.44 kB / 1.378 GB, free: 2.844 MB / 0.8698 GB Notification: Performance of SimCode: time 2.3e-07/0.514, allocations: 0 / 1.378 GB, free: 2.844 MB / 0.8698 GB Notification: Performance of Templates: time 0.004057/0.5181, allocations: 1.521 MB / 1.379 GB, free: 1.328 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsTiltedOpen.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.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