Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,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.Zhang2012WindowsWest") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,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.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.498/1.498, allocations: 249.3 MB / 261.8 MB, free: 5.863 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.001581/0.001581, allocations: 189.7 kB / 321.3 MB, free: 14.62 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.53/1.53, allocations: 205.2 MB / 0.572 GB, free: 10.57 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.000891/0.0008909, allocations: 86.48 kB / 0.6764 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.158e-05/3.159e-05, allocations: 0 / 0.7879 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2447, allocations: 106.3 MB / 0.8918 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.741/0.9857, allocations: 133.6 MB / 1.022 GB, free: 1.066 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.9861, allocations: 82.75 kB / 1.022 GB, free: 1.02 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.00932/0.9954, allocations: 2.973 MB / 1.025 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.643e-06/0.9954, allocations: 0 / 1.025 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.416e-06/0.9955, allocations: 8 kB / 1.025 GB, free: 14.46 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.0005127/0.996, allocations: 407 kB / 1.026 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.996, allocations: 15.97 kB / 1.026 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.575e-05/0.9961, allocations: 3.906 kB / 1.026 GB, free: 14 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.9962, allocations: 170.9 kB / 1.026 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.9963, allocations: 7.312 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.9963, allocations: 4 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001405/0.9965, allocations: 67.84 kB / 1.026 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.9965, allocations: 3.984 kB / 1.026 GB, free: 13.72 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.9965, allocations: 3.938 kB / 1.026 GB, free: 13.72 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.9965, allocations: 0 / 1.026 GB, free: 13.72 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.538e-05/0.9966, allocations: 23.55 kB / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006428/0.9972, allocations: 319.6 kB / 1.026 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 8.467e-05/0.9973, allocations: 37.52 kB / 1.026 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.23e-05/0.9974, allocations: 28.53 kB / 1.026 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.9974, allocations: 3.938 kB / 1.026 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001284/0.9975, allocations: 70.02 kB / 1.026 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.9976, allocations: 0 / 1.026 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.0002537/0.9978, allocations: 100.3 kB / 1.026 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.783e-05/0.9979, allocations: 63.36 kB / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.534e-05/0.998, allocations: 107.3 kB / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.9981, allocations: 33.45 kB / 1.027 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.405e-05/0.9982, allocations: 87.58 kB / 1.027 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.287e-05/0.9982, allocations: 23.55 kB / 1.027 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.9982, allocations: 3.938 kB / 1.027 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.9983, allocations: 318.7 kB / 1.027 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.422e-05/0.9984, allocations: 21.88 kB / 1.027 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.713e-05/0.9984, allocations: 48 kB / 1.027 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.314e-05/0.9985, allocations: 22.8 kB / 1.027 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.9985, allocations: 0 / 1.027 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001653/0.9987, allocations: 95.28 kB / 1.027 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.9987, allocations: 4 kB / 1.027 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.9987, allocations: 0 / 1.027 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.9987, allocations: 8.062 kB / 1.027 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.9988, allocations: 15.23 kB / 1.027 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.9989, allocations: 0 / 1.027 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.932e-05/0.9989, allocations: 15.84 kB / 1.027 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.999, allocations: 4 kB / 1.027 GB, free: 12.29 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 7.853e-05/0.999, allocations: 112.4 kB / 1.027 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/0.9991, allocations: 4 kB / 1.027 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.259e-05/0.9991, allocations: 12.5 kB / 1.027 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.9991, allocations: 4 kB / 1.027 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.9991, allocations: 0 / 1.027 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.9991, allocations: 3.984 kB / 1.027 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004399/0.9996, allocations: 367.6 kB / 1.028 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.9996, allocations: 4 kB / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.605e-05/0.9996, allocations: 7.984 kB / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.9997, allocations: 0 / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.9997, allocations: 4 kB / 1.028 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.9997, allocations: 4 kB / 1.028 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.9997, allocations: 3.953 kB / 1.028 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002169/0.9999, allocations: 197.1 kB / 1.028 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.132e-05/1, allocations: 81.02 kB / 1.028 GB, free: 11.47 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/1, allocations: 0 / 1.028 GB, free: 11.47 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.591e-05/1, allocations: 4 kB / 1.028 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.847e-05/1, allocations: 11.94 kB / 1.028 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/1, allocations: 11.94 kB / 1.028 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.434e-05/1, allocations: 96.62 kB / 1.028 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1, allocations: 3.938 kB / 1.028 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003287/1.001, allocations: 47.38 kB / 1.028 GB, free: 11.31 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.000522/1.001, allocations: 164.2 kB / 1.028 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001725/1.001, allocations: 66.47 kB / 1.028 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/1.001, allocations: 0 / 1.028 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.127e-05/1.001, allocations: 27 kB / 1.029 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/1.002, allocations: 7.359 kB / 1.029 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003987/1.002, allocations: 96.33 kB / 1.029 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/1.002, allocations: 0.6926 MB / 1.029 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.127e-05/1.002, allocations: 8.312 kB / 1.029 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.39e-05/1.002, allocations: 10.69 kB / 1.029 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of SimCode: time 4.51e-07/1.002, allocations: 3.938 kB / 1.029 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of Templates: time 0.004446/1.007, allocations: 1.537 MB / 1.031 GB, free: 8.711 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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