Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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.Haldi2008WindowsTOut,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.Haldi2008WindowsTOut") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut,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.Haldi2008WindowsTOut") [: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.184/1.184, allocations: 249.4 MB / 256.7 MB, free: 6.973 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.0009402/0.0009402, allocations: 185.2 kB / 316 MB, free: 3.508 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.025/1.025, allocations: 205.2 MB / 0.5667 GB, free: 15.65 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.0007671/0.0007671, allocations: 94.14 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.6e-06/5.62e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1427, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.403/0.5457, allocations: 133.9 MB / 1.015 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.546, allocations: 87.03 kB / 1.015 GB, free: 4.625 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: time 0.007928/0.5539, allocations: 2.63 MB / 1.018 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.607e-06/0.5539, allocations: 4 kB / 1.018 GB, free: 2.434 MB / 0.6355 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.0004155/0.5543, allocations: 413 kB / 1.018 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.5544, allocations: 12.97 kB / 1.018 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.5544, allocations: 11.89 kB / 1.018 GB, free: 1.965 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.5545, allocations: 174.9 kB / 1.019 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.5546, allocations: 0 / 1.019 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.127e-05/0.5546, allocations: 7.984 kB / 1.019 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.886e-05/0.5547, allocations: 19.12 kB / 1.019 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.833e-05/0.5548, allocations: 52.92 kB / 1.019 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.5548, allocations: 4.875 kB / 1.019 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.5548, allocations: 3.906 kB / 1.019 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.5548, allocations: 7.984 kB / 1.019 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000383/0.5552, allocations: 284.6 kB / 1.019 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.294e-05/0.5553, allocations: 40.95 kB / 1.019 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.165e-05/0.5553, allocations: 26.98 kB / 1.019 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.5554, allocations: 0 / 1.019 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.621e-05/0.5554, allocations: 65.14 kB / 1.019 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.5554, allocations: 0 / 1.019 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001884/0.5556, allocations: 76.75 kB / 1.019 GB, free: 1.176 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.5557, allocations: 55.41 kB / 1.019 GB, free: 1.109 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.892e-05/0.5558, allocations: 117.1 kB / 1.019 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.5558, allocations: 32.83 kB / 1.019 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.942e-05/0.5558, allocations: 80.33 kB / 1.019 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.5559, allocations: 23.19 kB / 1.019 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-06/0.5559, allocations: 0 / 1.019 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.426e-05/0.556, allocations: 325.4 kB / 1.02 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.401e-05/0.556, allocations: 14.81 kB / 1.02 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.918e-05/0.5561, allocations: 40.44 kB / 1.02 GB, free: 496 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.861e-05/0.5561, allocations: 31.61 kB / 1.02 GB, free: 472 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.5561, allocations: 0 / 1.02 GB, free: 472 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001543/0.5563, allocations: 89.03 kB / 1.02 GB, free: 388 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.786e-06/0.5563, allocations: 8 kB / 1.02 GB, free: 380 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.5563, allocations: 0 / 1.02 GB, free: 380 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.5563, allocations: 4 kB / 1.02 GB, free: 376 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.625e-05/0.5564, allocations: 15.98 kB / 1.02 GB, free: 360 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.507e-06/0.5564, allocations: 4.062 kB / 1.02 GB, free: 356 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.855e-05/0.5565, allocations: 7.984 kB / 1.02 GB, free: 348 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.5565, allocations: 4 kB / 1.02 GB, free: 344 kB / 0.6355 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.359e-05/0.5566, allocations: 116.3 kB / 1.02 GB, free: 224 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.349e-05/0.5566, allocations: 3.906 kB / 1.02 GB, free: 220 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.613e-05/0.5567, allocations: 8.375 kB / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.5567, allocations: 0 / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.5567, allocations: 4 kB / 1.02 GB, free: 204 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.5567, allocations: 0 / 1.02 GB, free: 204 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002978/0.557, allocations: 327.3 kB / 1.02 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.557, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.626e-05/0.557, allocations: 7.938 kB / 1.02 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.557, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.5571, allocations: 4 kB / 1.02 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.5571, allocations: 0 / 1.02 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.5571, allocations: 0 / 1.02 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001597/0.5572, allocations: 172.4 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.285e-05/0.5573, allocations: 89 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.5573, allocations: 3.438 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.416e-05/0.5574, allocations: 7.938 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.703e-05/0.5575, allocations: 11.89 kB / 1.021 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.066e-06/0.5575, allocations: 0 / 1.021 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.61e-05/0.5575, allocations: 91.81 kB / 1.021 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002667/0.5578, allocations: 55.05 kB / 1.021 GB, free: 15.42 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.0002717/0.5581, allocations: 166.7 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001281/0.5582, allocations: 56.55 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.5582, allocations: 4.125 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.098e-05/0.5583, allocations: 30.98 kB / 1.021 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001527/0.5584, allocations: 0 / 1.021 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002594/0.5587, allocations: 105.8 kB / 1.021 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002517/0.5589, allocations: 0.7036 MB / 1.022 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of SimCode: time 2.61e-07/0.559, allocations: 0 / 1.022 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of Templates: time 0.003495/0.5625, allocations: 1.643 MB / 1.023 GB, free: 12.73 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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