Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.548/1.548, allocations: 249.3 MB / 261.9 MB, free: 5.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001261/0.001261, allocations: 170.7 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.731/1.731, allocations: 205.2 MB / 0.572 GB, free: 10.62 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.0008726/0.0008727, allocations: 92.16 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.536e-05/3.552e-05, allocations: 4 kB / 0.788 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2442, allocations: 106.3 MB / 0.8918 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.778/1.022, allocations: 133.6 MB / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003307/1.023, allocations: 77.77 kB / 1.022 GB, free: 1.09 MB / 0.6355 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.009194/1.032, allocations: 2.978 MB / 1.025 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.393e-06/1.032, allocations: 0 / 1.025 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 6.913e-06/1.032, allocations: 0 / 1.025 GB, free: 14.53 MB / 0.6511 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.0004932/1.032, allocations: 415.2 kB / 1.026 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/1.033, allocations: 11.97 kB / 1.026 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.897e-05/1.033, allocations: 7.906 kB / 1.026 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/1.033, allocations: 175.7 kB / 1.026 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/1.033, allocations: 0 / 1.026 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/1.033, allocations: 7.188 kB / 1.026 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001452/1.033, allocations: 61.28 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/1.033, allocations: 0 / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/1.033, allocations: 3.25 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/1.033, allocations: 8 kB / 1.026 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.691e-05/1.033, allocations: 21.94 kB / 1.026 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006864/1.034, allocations: 312.5 kB / 1.026 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001/1.034, allocations: 44.39 kB / 1.026 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.204e-05/1.034, allocations: 23.97 kB / 1.026 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/1.034, allocations: 4 kB / 1.026 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001514/1.034, allocations: 74.27 kB / 1.026 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/1.034, allocations: 0 / 1.026 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.000256/1.034, allocations: 101.8 kB / 1.026 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/1.034, allocations: 55.36 kB / 1.027 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/1.035, allocations: 118.2 kB / 1.027 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/1.035, allocations: 25.7 kB / 1.027 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.873e-05/1.035, allocations: 91.33 kB / 1.027 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.029e-05/1.035, allocations: 19.61 kB / 1.027 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-06/1.035, allocations: 0 / 1.027 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001354/1.035, allocations: 318.2 kB / 1.027 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.697e-05/1.035, allocations: 19.19 kB / 1.027 GB, free: 12.56 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.292e-05/1.035, allocations: 45 kB / 1.027 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.18e-05/1.035, allocations: 38.59 kB / 1.027 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.035, allocations: 0 / 1.027 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001639/1.035, allocations: 95.34 kB / 1.027 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/1.035, allocations: 4 kB / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/1.035, allocations: 0 / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/1.035, allocations: 7.984 kB / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/1.035, allocations: 11.94 kB / 1.027 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/1.035, allocations: 4.062 kB / 1.027 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/1.036, allocations: 19.84 kB / 1.027 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/1.036, allocations: 4 kB / 1.027 GB, free: 12.35 MB / 0.6511 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 () * 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.0001063/1.036, allocations: 108.2 kB / 1.027 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.429e-05/1.036, allocations: 4 kB / 1.027 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.046e-05/1.036, allocations: 12.5 kB / 1.027 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/1.036, allocations: 0 / 1.027 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/1.036, allocations: 0 / 1.027 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/1.036, allocations: 7.984 kB / 1.027 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004315/1.036, allocations: 362.2 kB / 1.028 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/1.036, allocations: 3.938 kB / 1.028 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.536e-05/1.036, allocations: 7.984 kB / 1.028 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/1.036, allocations: 4 kB / 1.028 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/1.036, allocations: 3.5 kB / 1.028 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/1.036, allocations: 4 kB / 1.028 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.036, allocations: 3.953 kB / 1.028 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002278/1.037, allocations: 194.8 kB / 1.028 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/1.037, allocations: 81.02 kB / 1.028 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/1.037, allocations: 4 kB / 1.028 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.667e-05/1.037, allocations: 7.984 kB / 1.028 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.29e-05/1.037, allocations: 9.875 kB / 1.028 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/1.037, allocations: 4 kB / 1.028 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.732e-05/1.037, allocations: 93.5 kB / 1.028 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.7e-07/1.037, allocations: 11.94 kB / 1.028 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003125/1.037, allocations: 47.56 kB / 1.028 GB, free: 11.37 MB / 0.6511 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 () * 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.0005125/1.038, allocations: 176.6 kB / 1.028 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001819/1.038, allocations: 53.5 kB / 1.028 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/1.038, allocations: 128 / 1.028 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.327e-05/1.038, allocations: 35.03 kB / 1.029 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/1.038, allocations: 7.5 kB / 1.029 GB, free: 11.13 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003519/1.039, allocations: 97.75 kB / 1.029 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/1.039, allocations: 0.6887 MB / 1.029 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.265e-05/1.039, allocations: 4.188 kB / 1.029 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.499e-05/1.039, allocations: 19.42 kB / 1.029 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of SimCode: time 3.71e-07/1.039, allocations: 0 / 1.029 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of Templates: time 0.004402/1.044, allocations: 1.525 MB / 1.031 GB, free: 8.777 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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