Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") [: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.178/1.178, allocations: 249.4 MB / 256.7 MB, free: 7.102 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.0009647/0.0009646, allocations: 189.2 kB / 316 MB, free: 3.52 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.016/1.016, allocations: 205.1 MB / 0.5667 GB, free: 15.66 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.0007797/0.0007798, allocations: 105.6 kB / 0.671 GB, free: 4.785 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.771e-06/5.791e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1322, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4002/0.5324, allocations: 133.9 MB / 1.015 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002069/0.5327, allocations: 81.69 kB / 1.015 GB, free: 4.691 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.007932/0.5406, allocations: 2.639 MB / 1.018 GB, free: 2.5 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.5407, allocations: 4 kB / 1.018 GB, free: 2.496 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.0004154/0.5411, allocations: 417 kB / 1.018 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.5411, allocations: 8.031 kB / 1.018 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.83e-05/0.5412, allocations: 7.906 kB / 1.018 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.5413, allocations: 178.8 kB / 1.019 GB, free: 1.816 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.5413, allocations: 4 kB / 1.019 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.5413, allocations: 4 kB / 1.019 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.223e-05/0.5414, allocations: 20.88 kB / 1.019 GB, free: 1.797 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.794e-05/0.5415, allocations: 56.92 kB / 1.019 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.5415, allocations: 7.922 kB / 1.019 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.5415, allocations: 3.906 kB / 1.019 GB, free: 1.73 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.5416, allocations: 0 / 1.019 GB, free: 1.73 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003844/0.5419, allocations: 282.6 kB / 1.019 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.703e-05/0.542, allocations: 37.64 kB / 1.019 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.436e-05/0.5421, allocations: 22.48 kB / 1.019 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.5421, allocations: 4 kB / 1.019 GB, free: 1.379 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.971e-05/0.5422, allocations: 65.52 kB / 1.019 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.5422, allocations: 4 kB / 1.019 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001971/0.5424, allocations: 87.2 kB / 1.019 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.67e-05/0.5424, allocations: 51.41 kB / 1.019 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.669e-05/0.5425, allocations: 113.5 kB / 1.019 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.5425, allocations: 25.7 kB / 1.019 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.389e-05/0.5426, allocations: 87.64 kB / 1.019 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.272e-05/0.5426, allocations: 19.73 kB / 1.019 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-06/0.5426, allocations: 3.125 kB / 1.019 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.372e-05/0.5427, allocations: 322.7 kB / 1.02 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.515e-05/0.5427, allocations: 15.5 kB / 1.02 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.615e-05/0.5428, allocations: 40.69 kB / 1.02 GB, free: 0.5469 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.739e-05/0.5428, allocations: 30.11 kB / 1.02 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.5429, allocations: 0 / 1.02 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000146/0.543, allocations: 87.78 kB / 1.02 GB, free: 456 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.543, allocations: 8.062 kB / 1.02 GB, free: 448 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.543, allocations: 0 / 1.02 GB, free: 448 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.543, allocations: 4 kB / 1.02 GB, free: 444 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.7e-05/0.5431, allocations: 11.98 kB / 1.02 GB, free: 432 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.5432, allocations: 3.938 kB / 1.02 GB, free: 428 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.712e-05/0.5432, allocations: 11.98 kB / 1.02 GB, free: 416 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.5433, allocations: 0 / 1.02 GB, free: 416 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.259e-05/0.5433, allocations: 115.8 kB / 1.02 GB, free: 296 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.5433, allocations: 7.906 kB / 1.02 GB, free: 288 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.562e-05/0.5434, allocations: 7.938 kB / 1.02 GB, free: 280 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.696e-06/0.5434, allocations: 4 kB / 1.02 GB, free: 276 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.5434, allocations: 0 / 1.02 GB, free: 276 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.5434, allocations: 3.984 kB / 1.02 GB, free: 272 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002975/0.5437, allocations: 321.5 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.5437, allocations: 0 / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.67e-05/0.5438, allocations: 12 kB / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.5438, allocations: 0 / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.5438, allocations: 0 / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.5438, allocations: 7.984 kB / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.5438, allocations: 0 / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001585/0.544, allocations: 178.9 kB / 1.021 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.544, allocations: 85 kB / 1.021 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.544, allocations: 0 / 1.021 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.379e-05/0.5441, allocations: 12 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.467e-05/0.5442, allocations: 7.891 kB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/0.5442, allocations: 4 kB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.621e-05/0.5442, allocations: 98.02 kB / 1.021 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002672/0.5445, allocations: 47.88 kB / 1.021 GB, free: 15.48 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.0002914/0.5448, allocations: 168 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001193/0.5449, allocations: 54.3 kB / 1.021 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.5449, allocations: 0 / 1.021 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.155e-05/0.545, allocations: 25.25 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001635/0.5452, allocations: 7.984 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002523/0.5454, allocations: 94.44 kB / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002452/0.5457, allocations: 0.7076 MB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of SimCode: time 2.31e-07/0.5457, allocations: 0 / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of Templates: time 0.003429/0.5491, allocations: 1.631 MB / 1.023 GB, free: 12.8 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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