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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.145/1.145, allocations: 249.4 MB / 256.7 MB, free: 15.8 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.0009572/0.0009572, allocations: 184.5 kB / 316 MB, free: 7.195 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.174/1.174, allocations: 205.1 MB / 0.5667 GB, free: 23.88 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.0007787/0.0007787, allocations: 87.27 kB / 0.671 GB, free: 0.9883 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 6.782e-06/6.792e-06, allocations: 4 kB / 0.7807 GB, free: 0.5039 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3227, allocations: 106.3 MB / 0.8846 GB, free: 76.32 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1265/0.4492, allocations: 132.9 MB / 1.014 GB, free: 7.227 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.4494, allocations: 79.95 kB / 1.014 GB, free: 7.148 MB / 0.6667 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: time 0.007917/0.4573, allocations: 2.647 MB / 1.017 GB, free: 4.496 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.4574, allocations: 0 / 1.017 GB, free: 4.496 MB / 0.6667 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.0003953/0.4578, allocations: 410.4 kB / 1.017 GB, free: 4.047 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.4578, allocations: 8.031 kB / 1.017 GB, free: 4.039 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.451e-05/0.4578, allocations: 7.906 kB / 1.017 GB, free: 4.031 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.4579, allocations: 174.9 kB / 1.018 GB, free: 3.82 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.458, allocations: 4 kB / 1.018 GB, free: 3.816 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.458, allocations: 0 / 1.018 GB, free: 3.816 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.287e-05/0.4581, allocations: 27.92 kB / 1.018 GB, free: 3.789 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.528e-05/0.4582, allocations: 61.66 kB / 1.018 GB, free: 3.723 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.4582, allocations: 3.906 kB / 1.018 GB, free: 3.719 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.4582, allocations: 0 / 1.018 GB, free: 3.719 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.4582, allocations: 0 / 1.018 GB, free: 3.719 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003775/0.4586, allocations: 277.3 kB / 1.018 GB, free: 3.41 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 6.813e-05/0.4587, allocations: 46.52 kB / 1.018 GB, free: 3.355 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.073e-05/0.4587, allocations: 20.97 kB / 1.018 GB, free: 3.332 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.4588, allocations: 11.98 kB / 1.018 GB, free: 3.32 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.502e-05/0.4588, allocations: 67.39 kB / 1.018 GB, free: 3.242 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.4588, allocations: 0 / 1.018 GB, free: 3.242 MB / 0.6667 GB Notification: Performance of matching and sorting (n=7): time 0.0001932/0.459, allocations: 81.59 kB / 1.018 GB, free: 3.156 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.4591, allocations: 51.41 kB / 1.018 GB, free: 3.094 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.797e-05/0.4592, allocations: 112.9 kB / 1.018 GB, free: 2.977 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.4592, allocations: 25.7 kB / 1.018 GB, free: 2.945 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 3.8e-05/0.4592, allocations: 92.31 kB / 1.018 GB, free: 2.848 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.242e-05/0.4593, allocations: 15.75 kB / 1.018 GB, free: 2.832 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-06/0.4593, allocations: 0 / 1.018 GB, free: 2.832 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 8.122e-05/0.4594, allocations: 326.7 kB / 1.019 GB, free: 2.504 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.647e-05/0.4594, allocations: 23.94 kB / 1.019 GB, free: 2.48 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.459e-05/0.4594, allocations: 34.58 kB / 1.019 GB, free: 2.438 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.61e-05/0.4595, allocations: 19.98 kB / 1.019 GB, free: 2.418 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.4595, allocations: 0 / 1.019 GB, free: 2.418 MB / 0.6667 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001574/0.4597, allocations: 101.6 kB / 1.019 GB, free: 2.312 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.707e-06/0.4597, allocations: 7.938 kB / 1.019 GB, free: 2.305 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.676e-06/0.4597, allocations: 0 / 1.019 GB, free: 2.305 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.4597, allocations: 4 kB / 1.019 GB, free: 2.301 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.302e-05/0.4598, allocations: 11.98 kB / 1.019 GB, free: 2.289 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.4598, allocations: 0 / 1.019 GB, free: 2.289 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.871e-05/0.4599, allocations: 8 kB / 1.019 GB, free: 2.281 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.4599, allocations: 4 kB / 1.019 GB, free: 2.277 MB / 0.6667 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 6.015e-05/0.46, allocations: 119 kB / 1.019 GB, free: 2.156 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.46, allocations: 11.91 kB / 1.019 GB, free: 2.145 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.46, allocations: 8.359 kB / 1.019 GB, free: 2.137 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.46, allocations: 4 kB / 1.019 GB, free: 2.133 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.4601, allocations: 0 / 1.019 GB, free: 2.133 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.4601, allocations: 0 / 1.019 GB, free: 2.133 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.4603, allocations: 315 kB / 1.019 GB, free: 1.781 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.4603, allocations: 4 kB / 1.019 GB, free: 1.777 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.591e-05/0.4604, allocations: 8 kB / 1.019 GB, free: 1.77 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.4604, allocations: 3.938 kB / 1.019 GB, free: 1.766 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.4604, allocations: 7.984 kB / 1.019 GB, free: 1.758 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.4604, allocations: 0 / 1.019 GB, free: 1.758 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.4604, allocations: 0 / 1.019 GB, free: 1.758 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001672/0.4606, allocations: 171.4 kB / 1.02 GB, free: 1.574 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 2.746e-05/0.4606, allocations: 81.02 kB / 1.02 GB, free: 1.477 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.4607, allocations: 8 kB / 1.02 GB, free: 1.469 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.594e-05/0.4608, allocations: 11.98 kB / 1.02 GB, free: 1.457 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.14e-05/0.4608, allocations: 3.906 kB / 1.02 GB, free: 1.453 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.387e-06/0.4608, allocations: 4 kB / 1.02 GB, free: 1.449 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.23e-05/0.4609, allocations: 91.27 kB / 1.02 GB, free: 1.359 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0002554/0.4611, allocations: 47.88 kB / 1.02 GB, free: 1.312 MB / 0.6667 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.0002822/0.4614, allocations: 174.2 kB / 1.02 GB, free: 1.145 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.000117/0.4615, allocations: 51.98 kB / 1.02 GB, free: 1.094 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.203e-06/0.4616, allocations: 0 / 1.02 GB, free: 1.094 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 5.005e-05/0.4616, allocations: 35.86 kB / 1.02 GB, free: 1.059 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001556/0.4618, allocations: 4 kB / 1.02 GB, free: 1.055 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002543/0.462, allocations: 103.8 kB / 1.02 GB, free: 0.9297 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002178/0.4623, allocations: 0.6997 MB / 1.021 GB, free: 208 kB / 0.6667 GB Notification: Performance of SimCode: time 2.1e-07/0.4623, allocations: 0 / 1.021 GB, free: 208 kB / 0.6667 GB Notification: Performance of Templates: time 0.003355/0.4656, allocations: 1.641 MB / 1.022 GB, free: 14.57 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