Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.366/1.366, allocations: 251.9 MB / 266.9 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001046/0.001046, allocations: 166.7 kB / 326.5 MB, free: 2.262 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.759/1.759, allocations: 205.4 MB / 0.5775 GB, free: 20.26 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009105/0.0009104, allocations: 96.64 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.00032/0.00032, allocations: 14.16 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2246, allocations: 106.3 MB / 0.9001 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1654/0.3901, allocations: 133.7 MB / 1.031 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/0.3904, allocations: 87.88 kB / 1.031 GB, free: 9.969 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.009123/0.3995, allocations: 2.989 MB / 1.034 GB, free: 6.977 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.211e-05/0.3996, allocations: 0 / 1.034 GB, free: 6.977 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.833e-06/0.3996, allocations: 3.938 kB / 1.034 GB, free: 6.973 MB / 0.6823 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.0005342/0.4001, allocations: 428.7 kB / 1.034 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.4002, allocations: 16.03 kB / 1.034 GB, free: 6.484 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.394e-05/0.4003, allocations: 7.906 kB / 1.034 GB, free: 6.477 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.4004, allocations: 167 kB / 1.034 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.4004, allocations: 3.984 kB / 1.034 GB, free: 6.27 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.836e-05/0.4004, allocations: 4 kB / 1.034 GB, free: 6.266 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002038/0.4007, allocations: 73.59 kB / 1.034 GB, free: 6.188 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.4007, allocations: 3.984 kB / 1.034 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.4007, allocations: 4 kB / 1.034 GB, free: 6.18 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.4007, allocations: 4 kB / 1.034 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.4008, allocations: 47.84 kB / 1.034 GB, free: 6.129 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006561/0.4015, allocations: 328.6 kB / 1.035 GB, free: 5.758 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.4016, allocations: 50.56 kB / 1.035 GB, free: 5.699 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.4017, allocations: 0 / 1.035 GB, free: 5.699 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001755/0.4019, allocations: 87.44 kB / 1.035 GB, free: 5.602 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.4019, allocations: 4 kB / 1.035 GB, free: 5.598 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0004091/0.4023, allocations: 137.5 kB / 1.035 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.4023, allocations: 59.36 kB / 1.035 GB, free: 5.387 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.4024, allocations: 113 kB / 1.035 GB, free: 5.27 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.4025, allocations: 29.7 kB / 1.035 GB, free: 5.234 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.976e-05/0.4025, allocations: 92.33 kB / 1.035 GB, free: 5.137 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.213e-05/0.4026, allocations: 19.88 kB / 1.035 GB, free: 5.117 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.321e-06/0.4026, allocations: 0 / 1.035 GB, free: 5.117 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4027, allocations: 318.8 kB / 1.036 GB, free: 4.797 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.746e-05/0.4028, allocations: 23.98 kB / 1.036 GB, free: 4.773 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.311e-05/0.4029, allocations: 58.48 kB / 1.036 GB, free: 4.707 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.17e-05/0.403, allocations: 37.86 kB / 1.036 GB, free: 4.672 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.403, allocations: 0 / 1.036 GB, free: 4.672 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002413/0.4033, allocations: 117.8 kB / 1.036 GB, free: 4.551 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.4033, allocations: 12.05 kB / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.4033, allocations: 0 / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.4033, allocations: 0 / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.772e-05/0.4034, allocations: 16 kB / 1.036 GB, free: 4.523 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.333e-06/0.4035, allocations: 3.938 kB / 1.036 GB, free: 4.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.643e-05/0.4035, allocations: 11.94 kB / 1.036 GB, free: 4.508 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.4035, allocations: 4 kB / 1.036 GB, free: 4.504 MB / 0.6823 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.0001014/0.4036, allocations: 121.8 kB / 1.036 GB, free: 4.375 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.508e-05/0.4037, allocations: 7.906 kB / 1.036 GB, free: 4.367 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.11e-05/0.4037, allocations: 16.36 kB / 1.036 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.4037, allocations: 0 / 1.036 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.4037, allocations: 0 / 1.036 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.4037, allocations: 0 / 1.036 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000442/0.4042, allocations: 390.4 kB / 1.036 GB, free: 3.914 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4042, allocations: 0 / 1.036 GB, free: 3.914 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.946e-05/0.4042, allocations: 11.94 kB / 1.036 GB, free: 3.902 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.4043, allocations: 0 / 1.036 GB, free: 3.902 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.4043, allocations: 3.984 kB / 1.036 GB, free: 3.898 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4043, allocations: 0 / 1.036 GB, free: 3.898 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4043, allocations: 3.953 kB / 1.036 GB, free: 3.895 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.4046, allocations: 215.4 kB / 1.037 GB, free: 3.668 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.748e-05/0.4046, allocations: 85.02 kB / 1.037 GB, free: 3.566 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.4046, allocations: 0 / 1.037 GB, free: 3.566 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.574e-05/0.4047, allocations: 11.92 kB / 1.037 GB, free: 3.555 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.435e-05/0.4048, allocations: 7.984 kB / 1.037 GB, free: 3.547 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.699e-06/0.4048, allocations: 3.953 kB / 1.037 GB, free: 3.543 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.118e-05/0.4049, allocations: 95.86 kB / 1.037 GB, free: 3.449 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4049, allocations: 4 kB / 1.037 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003214/0.4052, allocations: 51.94 kB / 1.037 GB, free: 3.395 MB / 0.6823 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.0003955/0.4056, allocations: 174.6 kB / 1.037 GB, free: 3.23 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002556/0.4059, allocations: 79.94 kB / 1.037 GB, free: 3.152 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4059, allocations: 0 / 1.037 GB, free: 3.152 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.343e-05/0.406, allocations: 39.92 kB / 1.037 GB, free: 3.113 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000174/0.4062, allocations: 8.312 kB / 1.037 GB, free: 3.105 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004047/0.4066, allocations: 205.2 kB / 1.037 GB, free: 2.867 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.4069, allocations: 0.6887 MB / 1.038 GB, free: 2.152 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.596e-05/0.4069, allocations: 4.188 kB / 1.038 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.06e-05/0.4069, allocations: 15.42 kB / 1.038 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of SimCode: time 3.51e-07/0.4069, allocations: 0 / 1.038 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of Templates: time 0.004053/0.411, allocations: 1.527 MB / 1.04 GB, free: 0.6172 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.freqHz,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