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.404/2.404, 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.001227/0.001227, allocations: 182.2 kB / 0.4902 GB, free: 2.301 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.592/1.592, allocations: 223.2 MB / 0.7992 GB, free: 14.74 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.0009736/0.0009736, allocations: 106.1 kB / 0.9396 GB, free: 1.961 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003332, allocations: 10.97 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2584, allocations: 143 MB / 1.229 GB, free: 105.9 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1818/0.4403, allocations: 152.3 MB / 1.378 GB, free: 1.332 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000357/0.4407, allocations: 79.94 kB / 1.378 GB, free: 1.254 MB / 0.8698 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.01239/0.4532, allocations: 3.662 MB / 1.382 GB, free: 13.58 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.366e-06/0.4532, allocations: 4 kB / 1.382 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.666e-06/0.4532, allocations: 0 / 1.382 GB, free: 13.57 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007158/0.4539, allocations: 482.5 kB / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.454, allocations: 8.562 kB / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.412e-05/0.4541, allocations: 11.86 kB / 1.382 GB, free: 13.02 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.4542, allocations: 180.6 kB / 1.382 GB, free: 12.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.228e-05/0.4543, allocations: 8 kB / 1.382 GB, free: 12.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.03e-05/0.4543, allocations: 8 kB / 1.382 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002648/0.4546, allocations: 101.5 kB / 1.382 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.4546, allocations: 0 / 1.382 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.4546, allocations: 4 kB / 1.382 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.4546, allocations: 0 / 1.382 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002092/0.4548, allocations: 75.95 kB / 1.382 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009383/0.4558, allocations: 384.5 kB / 1.383 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.456, allocations: 74.48 kB / 1.383 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.456, allocations: 4 kB / 1.383 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.4563, allocations: 115.3 kB / 1.383 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=9): time 1.853e-06/0.4563, allocations: 0 / 1.383 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9): time 0.000583/0.4569, allocations: 229.4 kB / 1.383 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.4569, allocations: 59.41 kB / 1.383 GB, free: 11.67 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.457, allocations: 123.8 kB / 1.383 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.4571, allocations: 33.7 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.774e-05/0.4571, allocations: 100.3 kB / 1.384 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/0.4572, allocations: 15.97 kB / 1.384 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.099e-05/0.4572, allocations: 4 kB / 1.384 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4573, allocations: 322.8 kB / 1.384 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.4574, allocations: 47.97 kB / 1.384 GB, free: 11.01 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.4576, allocations: 83.95 kB / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.4577, allocations: 51.98 kB / 1.384 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.4577, allocations: 0 / 1.384 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003549/0.4581, allocations: 165.4 kB / 1.384 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.4581, allocations: 8 kB / 1.384 GB, free: 10.69 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.4581, allocations: 112 / 1.384 GB, free: 10.69 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.4582, allocations: 7.938 kB / 1.384 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.4583, allocations: 19.94 kB / 1.384 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.4583, allocations: 4 kB / 1.384 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.4585, allocations: 27.92 kB / 1.384 GB, free: 10.63 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.4585, allocations: 4 kB / 1.384 GB, free: 10.62 MB / 0.8855 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.0001283/0.4586, allocations: 121.8 kB / 1.384 GB, free: 10.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.342e-05/0.4586, allocations: 11.91 kB / 1.384 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.321e-05/0.4587, allocations: 12.7 kB / 1.384 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.4587, allocations: 4 kB / 1.384 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.4587, allocations: 3.953 kB / 1.384 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.4587, allocations: 4 kB / 1.384 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005968/0.4593, allocations: 466.8 kB / 1.385 GB, free: 9.949 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.4593, allocations: 0 / 1.385 GB, free: 9.949 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.819e-05/0.4594, allocations: 15.98 kB / 1.385 GB, free: 9.934 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.4594, allocations: 96 / 1.385 GB, free: 9.934 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.4594, allocations: 7.891 kB / 1.385 GB, free: 9.926 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.4595, allocations: 0 / 1.385 GB, free: 9.926 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.4595, allocations: 48 / 1.385 GB, free: 9.926 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004084/0.4599, allocations: 287.2 kB / 1.385 GB, free: 9.629 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.459e-05/0.4599, allocations: 85.02 kB / 1.385 GB, free: 9.527 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.543e-05/0.46, allocations: 4 kB / 1.385 GB, free: 9.523 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.4601, allocations: 15.94 kB / 1.385 GB, free: 9.508 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.4602, allocations: 11.92 kB / 1.385 GB, free: 9.496 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.4602, allocations: 8.062 kB / 1.385 GB, free: 9.488 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.025e-05/0.4603, allocations: 109.1 kB / 1.385 GB, free: 9.383 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4603, allocations: 4 kB / 1.385 GB, free: 9.379 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000384/0.4607, allocations: 51.94 kB / 1.385 GB, free: 9.328 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: 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.0004899/0.4611, allocations: 173.5 kB / 1.386 GB, free: 9.164 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003555/0.4615, allocations: 123.9 kB / 1.386 GB, free: 9.043 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4615, allocations: 0 / 1.386 GB, free: 9.043 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.4617, allocations: 67.89 kB / 1.386 GB, free: 8.977 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00021/0.4619, allocations: 13.05 kB / 1.386 GB, free: 8.965 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005219/0.4624, allocations: 253.4 kB / 1.386 GB, free: 8.684 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.4627, allocations: 0.7004 MB / 1.387 GB, free: 7.957 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.801e-05/0.4628, allocations: 11.92 kB / 1.387 GB, free: 7.945 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.753e-05/0.4629, allocations: 11.44 kB / 1.387 GB, free: 7.934 MB / 0.8855 GB Notification: Performance of SimCode: time 4.41e-07/0.4629, allocations: 3.938 kB / 1.387 GB, free: 7.93 MB / 0.8855 GB Notification: Performance of Templates: time 0.00509/0.468, allocations: 1.977 MB / 1.389 GB, free: 5.965 MB / 0.8855 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