Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.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.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.286/2.286, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001009/0.001009, allocations: 190.6 kB / 0.4902 GB, free: 2.227 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.576/1.576, allocations: 223.1 MB / 0.7992 GB, free: 15.59 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.0009146/0.0009149, allocations: 104.9 kB / 0.9396 GB, free: 2.742 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003966/0.0003966, allocations: 12.59 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3158, allocations: 143 MB / 1.229 GB, free: 85.48 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2232/0.5391, allocations: 152.1 MB / 1.378 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003284/0.5395, allocations: 83.95 kB / 1.378 GB, free: 13.15 MB / 0.8855 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.01249/0.552, allocations: 3.038 MB / 1.381 GB, free: 10.1 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.364e-06/0.5521, allocations: 0 / 1.381 GB, free: 10.1 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.003e-05/0.5521, allocations: 4 kB / 1.381 GB, free: 10.1 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007905/0.5529, allocations: 420.7 kB / 1.381 GB, free: 9.633 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.019e-05/0.553, allocations: 12.56 kB / 1.381 GB, free: 9.621 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.748e-05/0.553, allocations: 7.859 kB / 1.381 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/0.5532, allocations: 175 kB / 1.381 GB, free: 9.402 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.319e-05/0.5533, allocations: 4 kB / 1.381 GB, free: 9.398 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.5533, allocations: 7.984 kB / 1.381 GB, free: 9.391 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002608/0.5536, allocations: 73.66 kB / 1.381 GB, free: 9.312 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.5536, allocations: 0 / 1.381 GB, free: 9.312 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.5537, allocations: 0 / 1.381 GB, free: 9.312 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.5537, allocations: 7.938 kB / 1.381 GB, free: 9.305 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.5539, allocations: 39.97 kB / 1.381 GB, free: 9.266 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008856/0.5548, allocations: 320.7 kB / 1.382 GB, free: 8.902 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.555, allocations: 46.56 kB / 1.382 GB, free: 8.848 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.555, allocations: 0 / 1.382 GB, free: 8.848 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002609/0.5553, allocations: 87.56 kB / 1.382 GB, free: 8.75 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 2.094e-06/0.5553, allocations: 0 / 1.382 GB, free: 8.75 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0005888/0.5559, allocations: 157.4 kB / 1.382 GB, free: 8.59 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.183e-05/0.556, allocations: 55.41 kB / 1.382 GB, free: 8.523 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.5561, allocations: 112.9 kB / 1.382 GB, free: 8.406 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.5562, allocations: 29.7 kB / 1.382 GB, free: 8.371 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.801e-05/0.5563, allocations: 92.23 kB / 1.382 GB, free: 8.273 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/0.5563, allocations: 27.66 kB / 1.382 GB, free: 8.246 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-06/0.5563, allocations: 0 / 1.382 GB, free: 8.246 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001762/0.5565, allocations: 319 kB / 1.383 GB, free: 7.926 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.5567, allocations: 31.97 kB / 1.383 GB, free: 7.895 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.5568, allocations: 51.42 kB / 1.383 GB, free: 7.832 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.557, allocations: 43.92 kB / 1.383 GB, free: 7.789 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.557, allocations: 4 kB / 1.383 GB, free: 7.785 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003849/0.5574, allocations: 113.6 kB / 1.383 GB, free: 7.668 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.5574, allocations: 8 kB / 1.383 GB, free: 7.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.5574, allocations: 0 / 1.383 GB, free: 7.66 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.559e-05/0.5575, allocations: 4 kB / 1.383 GB, free: 7.656 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.5576, allocations: 11.98 kB / 1.383 GB, free: 7.645 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.5576, allocations: 8.016 kB / 1.383 GB, free: 7.637 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.5578, allocations: 19.83 kB / 1.383 GB, free: 7.617 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.5578, allocations: 0 / 1.383 GB, free: 7.617 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.win.curSeed,win.curSeed,occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$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.0001478/0.5579, allocations: 125.8 kB / 1.383 GB, free: 7.484 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.558, allocations: 7.906 kB / 1.383 GB, free: 7.477 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.871e-05/0.558, allocations: 4.375 kB / 1.383 GB, free: 7.473 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.558, allocations: 0 / 1.383 GB, free: 7.473 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.5581, allocations: 8.047 kB / 1.383 GB, free: 7.465 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.5581, allocations: 7.953 kB / 1.383 GB, free: 7.457 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006887/0.5588, allocations: 382.5 kB / 1.383 GB, free: 7.027 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.5588, allocations: 0 / 1.383 GB, free: 7.027 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.978e-05/0.5589, allocations: 4 kB / 1.383 GB, free: 7.023 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.85e-06/0.5589, allocations: 0 / 1.383 GB, free: 7.023 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.5589, allocations: 4 kB / 1.383 GB, free: 7.02 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.305e-06/0.5589, allocations: 7.953 kB / 1.383 GB, free: 7.012 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.5589, allocations: 0 / 1.383 GB, free: 7.012 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004825/0.5594, allocations: 215.8 kB / 1.384 GB, free: 6.785 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.615e-05/0.5595, allocations: 81.11 kB / 1.384 GB, free: 6.688 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.626e-05/0.5595, allocations: 0 / 1.384 GB, free: 6.688 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.5597, allocations: 11.98 kB / 1.384 GB, free: 6.676 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.357e-05/0.5598, allocations: 11.89 kB / 1.384 GB, free: 6.664 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.5598, allocations: 4.031 kB / 1.384 GB, free: 6.66 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 8.89e-05/0.5599, allocations: 95.28 kB / 1.384 GB, free: 6.566 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5599, allocations: 0 / 1.384 GB, free: 6.566 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0005479/0.5604, allocations: 55.86 kB / 1.384 GB, free: 6.512 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: 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.0006388/0.5611, allocations: 180 kB / 1.384 GB, free: 6.34 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003508/0.5615, allocations: 75.89 kB / 1.384 GB, free: 6.266 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.5615, allocations: 4 kB / 1.384 GB, free: 6.262 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.5616, allocations: 36.11 kB / 1.384 GB, free: 6.227 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.5619, allocations: 8.547 kB / 1.384 GB, free: 6.219 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006814/0.5626, allocations: 205.1 kB / 1.384 GB, free: 5.988 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004574/0.5631, allocations: 0.6926 MB / 1.385 GB, free: 5.27 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.447e-05/0.5632, allocations: 4.188 kB / 1.385 GB, free: 5.266 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.749e-05/0.5632, allocations: 11.44 kB / 1.385 GB, free: 5.254 MB / 0.8855 GB Notification: Performance of SimCode: time 8.71e-07/0.5632, allocations: 0 / 1.385 GB, free: 5.254 MB / 0.8855 GB Notification: Performance of Templates: time 0.00636/0.5696, allocations: 1.53 MB / 1.387 GB, free: 3.727 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TIn,win.occ,win.p,win.on Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TIn,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0