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.433/2.433, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001111/0.001112, allocations: 187.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.653/1.653, allocations: 221.3 MB / 0.7915 GB, free: 5.406 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.0008656/0.0008653, allocations: 91.91 kB / 0.9317 GB, free: 5.723 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.788e-05/2.792e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2867, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9283/1.215, allocations: 152.3 MB / 1.367 GB, free: 1.816 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/1.215, allocations: 83.69 kB / 1.368 GB, free: 1.77 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.0114/1.227, allocations: 3.65 MB / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.483e-06/1.227, allocations: 0 / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.566e-06/1.227, allocations: 0 / 1.371 GB, free: 14.62 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.0006075/1.227, allocations: 461 kB / 1.372 GB, free: 14.12 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/1.228, allocations: 8.031 kB / 1.372 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.249e-05/1.228, allocations: 19.77 kB / 1.372 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/1.228, allocations: 184.4 kB / 1.372 GB, free: 13.87 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/1.228, allocations: 7.875 kB / 1.372 GB, free: 13.87 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/1.228, allocations: 4 kB / 1.372 GB, free: 13.86 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/1.228, allocations: 81.7 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/1.228, allocations: 4 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/1.228, allocations: 3 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/1.228, allocations: 0 / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.668e-05/1.228, allocations: 43.62 kB / 1.372 GB, free: 13.76 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008583/1.229, allocations: 380.8 kB / 1.372 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/1.229, allocations: 63.88 kB / 1.372 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.208e-05/1.229, allocations: 39.98 kB / 1.372 GB, free: 13.29 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/1.229, allocations: 0 / 1.372 GB, free: 13.29 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001723/1.229, allocations: 91.75 kB / 1.372 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.552e-06/1.229, allocations: 0 / 1.372 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0003607/1.23, allocations: 151.1 kB / 1.373 GB, free: 13.09 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.006e-05/1.23, allocations: 63.19 kB / 1.373 GB, free: 13.02 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/1.23, allocations: 134 kB / 1.373 GB, free: 12.89 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/1.23, allocations: 25.7 kB / 1.373 GB, free: 12.86 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.072e-05/1.23, allocations: 102.8 kB / 1.373 GB, free: 12.76 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/1.23, allocations: 23.12 kB / 1.373 GB, free: 12.74 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-06/1.23, allocations: 3.5 kB / 1.373 GB, free: 12.74 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001401/1.23, allocations: 321.9 kB / 1.373 GB, free: 12.42 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.249e-05/1.23, allocations: 26.31 kB / 1.373 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.362e-05/1.231, allocations: 66.56 kB / 1.373 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.346e-05/1.231, allocations: 37.23 kB / 1.373 GB, free: 12.32 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/1.231, allocations: 0 / 1.373 GB, free: 12.32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002258/1.231, allocations: 133.5 kB / 1.373 GB, free: 12.2 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/1.231, allocations: 5.25 kB / 1.373 GB, free: 12.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/1.231, allocations: 8.094 kB / 1.373 GB, free: 12.19 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/1.231, allocations: 3.953 kB / 1.373 GB, free: 12.19 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/1.231, allocations: 27.8 kB / 1.374 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/1.231, allocations: 0 / 1.374 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.509e-05/1.231, allocations: 11.98 kB / 1.374 GB, free: 12.15 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/1.231, allocations: 8 kB / 1.374 GB, free: 12.14 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 9.005e-05/1.231, allocations: 113.4 kB / 1.374 GB, free: 12.03 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.816e-05/1.231, allocations: 7.906 kB / 1.374 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.232e-05/1.231, allocations: 16.17 kB / 1.374 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/1.231, allocations: 4 kB / 1.374 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/1.231, allocations: 3.953 kB / 1.374 GB, free: 12.01 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/1.231, allocations: 0 / 1.374 GB, free: 12.01 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004818/1.232, allocations: 432.6 kB / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/1.232, allocations: 4 kB / 1.374 GB, free: 11.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.069e-05/1.232, allocations: 23.73 kB / 1.374 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/1.232, allocations: 0 / 1.374 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/1.232, allocations: 3.953 kB / 1.374 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/1.232, allocations: 0 / 1.374 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/1.232, allocations: 0 / 1.374 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003032/1.232, allocations: 249.2 kB / 1.374 GB, free: 11.34 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/1.232, allocations: 85.02 kB / 1.374 GB, free: 11.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/1.232, allocations: 64 / 1.374 GB, free: 11.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/1.233, allocations: 23.94 kB / 1.374 GB, free: 11.21 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.6e-05/1.233, allocations: 11.05 kB / 1.374 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/1.233, allocations: 0 / 1.374 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.166e-05/1.233, allocations: 110.3 kB / 1.375 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.923e-06/1.233, allocations: 0 / 1.375 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003072/1.233, allocations: 65.42 kB / 1.375 GB, free: 11.05 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.0003721/1.233, allocations: 167.5 kB / 1.375 GB, free: 10.89 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001962/1.234, allocations: 88.55 kB / 1.375 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/1.234, allocations: 0 / 1.375 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.39e-05/1.234, allocations: 40.59 kB / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/1.234, allocations: 15.48 kB / 1.375 GB, free: 10.79 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003635/1.234, allocations: 143.1 kB / 1.375 GB, free: 10.64 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/1.235, allocations: 0.7015 MB / 1.376 GB, free: 9.918 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.289e-05/1.235, allocations: 4 kB / 1.376 GB, free: 9.914 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.618e-05/1.235, allocations: 15.42 kB / 1.376 GB, free: 9.898 MB / 0.8386 GB Notification: Performance of SimCode: time 3.81e-07/1.235, allocations: 0 / 1.376 GB, free: 9.898 MB / 0.8386 GB Notification: Performance of Templates: time 0.004822/1.24, allocations: 1.987 MB / 1.378 GB, free: 7.934 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