Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,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.Zhang2012WindowsAll") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,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.Zhang2012WindowsAll") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.291/2.291, allocations: 390.3 MB / 405.3 MB, free: 13.52 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: 193 kB / 498.1 MB, free: 5.734 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.641/1.641, allocations: 223.2 MB / 0.7949 GB, free: 18.95 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.0009754/0.0009754, allocations: 100.2 kB / 0.9346 GB, free: 7.246 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004248/0.0004248, allocations: 12.31 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3318, allocations: 142.3 MB / 1.223 GB, free: 89.65 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2033/0.5351, allocations: 151.2 MB / 1.371 GB, free: 2.219 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.5355, allocations: 87.94 kB / 1.371 GB, free: 2.133 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.008931/0.5444, allocations: 3.036 MB / 1.374 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.833e-06/0.5444, allocations: 0 / 1.374 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.246e-06/0.5444, allocations: 4 kB / 1.374 GB, free: 15.09 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.000554/0.545, allocations: 420.7 kB / 1.374 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.5451, allocations: 11.97 kB / 1.374 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.904e-05/0.5451, allocations: 11.86 kB / 1.374 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.5452, allocations: 163.1 kB / 1.374 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.609e-05/0.5453, allocations: 8 kB / 1.374 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.712e-05/0.5453, allocations: 4 kB / 1.374 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.5455, allocations: 73.64 kB / 1.374 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.5455, allocations: 0 / 1.374 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.5455, allocations: 8 kB / 1.374 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.5455, allocations: 0 / 1.374 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.5457, allocations: 43.97 kB / 1.374 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006111/0.5463, allocations: 324.7 kB / 1.375 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.5464, allocations: 46.56 kB / 1.375 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.5464, allocations: 3.938 kB / 1.375 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001581/0.5466, allocations: 83.41 kB / 1.375 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 6.071e-06/0.5466, allocations: 3.984 kB / 1.375 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0003978/0.547, allocations: 157.5 kB / 1.375 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.5471, allocations: 51.41 kB / 1.375 GB, free: 13.51 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.869e-05/0.5472, allocations: 121.2 kB / 1.375 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.5472, allocations: 25.7 kB / 1.375 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.817e-05/0.5473, allocations: 96.39 kB / 1.375 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.5473, allocations: 11.75 kB / 1.375 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-06/0.5473, allocations: 4 kB / 1.375 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.5474, allocations: 319 kB / 1.376 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.493e-05/0.5475, allocations: 31.98 kB / 1.376 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.493e-05/0.5476, allocations: 54.59 kB / 1.376 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.834e-05/0.5477, allocations: 39.92 kB / 1.376 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.5477, allocations: 4 kB / 1.376 GB, free: 12.78 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002279/0.548, allocations: 113.5 kB / 1.376 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.548, allocations: 8 kB / 1.376 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.548, allocations: 0 / 1.376 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.548, allocations: 3.984 kB / 1.376 GB, free: 12.65 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.415e-05/0.5481, allocations: 8 kB / 1.376 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.5481, allocations: 12.02 kB / 1.376 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.711e-05/0.5482, allocations: 11.98 kB / 1.376 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.5482, allocations: 4 kB / 1.376 GB, free: 12.62 MB / 0.8855 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 8.678e-05/0.5483, allocations: 117.8 kB / 1.376 GB, free: 12.49 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.534e-05/0.5484, allocations: 7.906 kB / 1.376 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.749e-05/0.5484, allocations: 8.375 kB / 1.376 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.5484, allocations: 7.984 kB / 1.376 GB, free: 12.47 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.5484, allocations: 0 / 1.376 GB, free: 12.47 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.5484, allocations: 7.953 kB / 1.376 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004031/0.5488, allocations: 374.5 kB / 1.376 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.5488, allocations: 3.938 kB / 1.376 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.797e-05/0.5489, allocations: 7.938 kB / 1.376 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.5489, allocations: 0 / 1.376 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.5489, allocations: 8 kB / 1.376 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.5489, allocations: 7.953 kB / 1.376 GB, free: 12.01 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.5489, allocations: 3.984 kB / 1.376 GB, free: 12.01 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002566/0.5492, allocations: 215.9 kB / 1.377 GB, free: 11.78 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.917e-05/0.5492, allocations: 77.11 kB / 1.377 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.5493, allocations: 4 kB / 1.377 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.813e-05/0.5494, allocations: 15.98 kB / 1.377 GB, free: 11.67 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.5494, allocations: 3.953 kB / 1.377 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.5494, allocations: 7.984 kB / 1.377 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.542e-05/0.5495, allocations: 95.2 kB / 1.377 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5495, allocations: 0 / 1.377 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002851/0.5498, allocations: 51.84 kB / 1.377 GB, free: 11.51 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.0003683/0.5501, allocations: 182.7 kB / 1.377 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002162/0.5504, allocations: 71.95 kB / 1.377 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.5504, allocations: 0 / 1.377 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.769e-05/0.5505, allocations: 44.05 kB / 1.377 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001635/0.5506, allocations: 4 kB / 1.377 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003739/0.551, allocations: 205.1 kB / 1.377 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.5513, allocations: 0.7004 MB / 1.378 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.43e-05/0.5513, allocations: 192 / 1.378 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.732e-05/0.5514, allocations: 11.44 kB / 1.378 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of SimCode: time 1.8e-07/0.5514, allocations: 0 / 1.378 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of Templates: time 0.003975/0.5553, allocations: 1.509 MB / 1.379 GB, free: 8.742 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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