Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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.Haldi2008WindowsTOut,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.Haldi2008WindowsTOut") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut,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.Haldi2008WindowsTOut") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.471/2.471, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001083/0.001083, allocations: 183.4 kB / 498.1 MB, free: 5.742 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.547/1.547, allocations: 223.2 MB / 0.7948 GB, free: 17.9 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.001001/0.001001, allocations: 94.36 kB / 0.9346 GB, free: 6.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003399/0.00034, allocations: 11.45 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3191, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2547/0.5739, allocations: 151.2 MB / 1.371 GB, free: 10.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003456/0.5743, allocations: 87.94 kB / 1.371 GB, free: 10.82 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.01297/0.5873, allocations: 3.028 MB / 1.374 GB, free: 7.781 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.014e-06/0.5873, allocations: 4 kB / 1.374 GB, free: 7.777 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.525e-06/0.5873, allocations: 0 / 1.374 GB, free: 7.777 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.0006898/0.588, allocations: 425.2 kB / 1.374 GB, free: 7.309 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.5881, allocations: 15.97 kB / 1.374 GB, free: 7.293 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.647e-05/0.5881, allocations: 11.86 kB / 1.374 GB, free: 7.281 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.5883, allocations: 163 kB / 1.374 GB, free: 7.082 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.289e-05/0.5884, allocations: 7.938 kB / 1.374 GB, free: 7.074 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.5884, allocations: 12 kB / 1.374 GB, free: 7.062 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002391/0.5886, allocations: 69.64 kB / 1.374 GB, free: 6.988 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.5887, allocations: 0 / 1.374 GB, free: 6.988 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.5887, allocations: 0 / 1.374 GB, free: 6.988 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.5887, allocations: 4 kB / 1.374 GB, free: 6.984 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.5889, allocations: 39.97 kB / 1.374 GB, free: 6.945 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007918/0.5897, allocations: 320.8 kB / 1.375 GB, free: 6.582 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.5899, allocations: 50.5 kB / 1.375 GB, free: 6.523 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.5899, allocations: 4 kB / 1.375 GB, free: 6.52 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002284/0.5902, allocations: 83.41 kB / 1.375 GB, free: 6.426 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.724e-06/0.5902, allocations: 0 / 1.375 GB, free: 6.426 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0005631/0.5908, allocations: 153.6 kB / 1.375 GB, free: 6.27 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.834e-05/0.5908, allocations: 59.41 kB / 1.375 GB, free: 6.199 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.591, allocations: 116.8 kB / 1.375 GB, free: 6.078 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.591, allocations: 29.7 kB / 1.375 GB, free: 6.043 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.447e-05/0.5911, allocations: 88.33 kB / 1.375 GB, free: 5.949 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.5911, allocations: 11.81 kB / 1.375 GB, free: 5.938 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.106e-05/0.5912, allocations: 4 kB / 1.375 GB, free: 5.934 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.5913, allocations: 318.8 kB / 1.375 GB, free: 5.613 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.5914, allocations: 31.98 kB / 1.376 GB, free: 5.582 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.5916, allocations: 54.48 kB / 1.376 GB, free: 5.52 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.5917, allocations: 31.98 kB / 1.376 GB, free: 5.488 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5917, allocations: 4 kB / 1.376 GB, free: 5.484 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003497/0.5921, allocations: 113.5 kB / 1.376 GB, free: 5.367 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.5921, allocations: 8 kB / 1.376 GB, free: 5.359 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.5922, allocations: 4 kB / 1.376 GB, free: 5.355 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/0.5922, allocations: 3.984 kB / 1.376 GB, free: 5.352 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.5923, allocations: 19.88 kB / 1.376 GB, free: 5.332 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.5923, allocations: 8.016 kB / 1.376 GB, free: 5.324 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.5925, allocations: 11.92 kB / 1.376 GB, free: 5.312 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.5925, allocations: 4 kB / 1.376 GB, free: 5.309 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 0.0001276/0.5926, allocations: 117.8 kB / 1.376 GB, free: 5.184 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.359e-05/0.5927, allocations: 7.906 kB / 1.376 GB, free: 5.176 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.199e-05/0.5927, allocations: 4.375 kB / 1.376 GB, free: 5.172 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.5927, allocations: 7.984 kB / 1.376 GB, free: 5.164 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.5927, allocations: 4 kB / 1.376 GB, free: 5.16 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.5927, allocations: 7.938 kB / 1.376 GB, free: 5.152 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006423/0.5934, allocations: 382.5 kB / 1.376 GB, free: 4.723 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.5934, allocations: 0 / 1.376 GB, free: 4.723 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.615e-05/0.5935, allocations: 8 kB / 1.376 GB, free: 4.715 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.5935, allocations: 0 / 1.376 GB, free: 4.715 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.5935, allocations: 4 kB / 1.376 GB, free: 4.711 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.5935, allocations: 3.953 kB / 1.376 GB, free: 4.707 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.5935, allocations: 3.984 kB / 1.376 GB, free: 4.703 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004018/0.594, allocations: 219.8 kB / 1.377 GB, free: 4.473 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.778e-05/0.594, allocations: 81.11 kB / 1.377 GB, free: 4.375 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.431e-05/0.594, allocations: 4 kB / 1.377 GB, free: 4.371 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.5942, allocations: 7.984 kB / 1.377 GB, free: 4.363 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.5943, allocations: 7.953 kB / 1.377 GB, free: 4.355 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.5943, allocations: 3.984 kB / 1.377 GB, free: 4.352 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 7.232e-05/0.5944, allocations: 95.27 kB / 1.377 GB, free: 4.258 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.913e-06/0.5944, allocations: 0 / 1.377 GB, free: 4.258 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0005322/0.5949, allocations: 55.84 kB / 1.377 GB, free: 4.203 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.0004898/0.5954, allocations: 181.7 kB / 1.377 GB, free: 4.031 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003213/0.5958, allocations: 79.89 kB / 1.377 GB, free: 3.953 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5958, allocations: 0 / 1.377 GB, free: 3.953 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001372/0.5959, allocations: 40.11 kB / 1.377 GB, free: 3.914 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.5962, allocations: 6.094 kB / 1.377 GB, free: 3.91 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005021/0.5967, allocations: 209.1 kB / 1.377 GB, free: 3.676 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.597, allocations: 0.6926 MB / 1.378 GB, free: 2.957 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 6.465e-05/0.5971, allocations: 4.188 kB / 1.378 GB, free: 2.953 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.588e-05/0.5971, allocations: 7.438 kB / 1.378 GB, free: 2.945 MB / 0.8698 GB Notification: Performance of SimCode: time 3.41e-07/0.5971, allocations: 4 kB / 1.378 GB, free: 2.941 MB / 0.8698 GB Notification: Performance of Templates: time 0.005579/0.6027, allocations: 1.515 MB / 1.379 GB, free: 1.426 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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