Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.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.Herkel2008WindowsCompletelyOpen,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.Herkel2008WindowsCompletelyOpen") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen,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.Herkel2008WindowsCompletelyOpen") [: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.161/1.161, allocations: 249.4 MB / 256.7 MB, free: 0.7578 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009663/0.0009663, allocations: 191.2 kB / 316 MB, free: 8.922 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.006/1.006, allocations: 205.1 MB / 0.5667 GB, free: 13.49 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000764/0.000764, allocations: 95.45 kB / 0.671 GB, free: 51.6 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 5.711e-06/5.891e-06, allocations: 0 / 0.7807 GB, free: 9.945 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3957, allocations: 106.3 MB / 0.8846 GB, free: 89.2 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.137/0.5327, allocations: 132.9 MB / 1.014 GB, free: 12.76 MB / 0.659 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.5329, allocations: 80.45 kB / 1.014 GB, free: 12.68 MB / 0.659 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.008152/0.5411, allocations: 2.645 MB / 1.017 GB, free: 10.09 MB / 0.659 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.5411, allocations: 2.875 kB / 1.017 GB, free: 10.09 MB / 0.659 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.0004215/0.5416, allocations: 418 kB / 1.017 GB, free: 9.637 MB / 0.659 GB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.5416, allocations: 8.031 kB / 1.017 GB, free: 9.629 MB / 0.659 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.675e-05/0.5416, allocations: 9.281 kB / 1.017 GB, free: 9.621 MB / 0.659 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.5418, allocations: 174.9 kB / 1.018 GB, free: 9.41 MB / 0.659 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.5418, allocations: 0 / 1.018 GB, free: 9.41 MB / 0.659 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.5418, allocations: 4 kB / 1.018 GB, free: 9.406 MB / 0.659 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.796e-05/0.5419, allocations: 26.7 kB / 1.018 GB, free: 9.383 MB / 0.659 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.548e-05/0.542, allocations: 61.61 kB / 1.018 GB, free: 9.316 MB / 0.659 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.542, allocations: 0 / 1.018 GB, free: 9.316 MB / 0.659 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.542, allocations: 3.906 kB / 1.018 GB, free: 9.312 MB / 0.659 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.542, allocations: 0 / 1.018 GB, free: 9.312 MB / 0.659 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004127/0.5424, allocations: 280.6 kB / 1.018 GB, free: 9.004 MB / 0.659 GB Notification: Performance of preOpt comSubExp (simulation): time 7.286e-05/0.5425, allocations: 39.61 kB / 1.018 GB, free: 8.957 MB / 0.659 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.654e-05/0.5426, allocations: 22.53 kB / 1.018 GB, free: 8.934 MB / 0.659 GB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.5426, allocations: 4.984 kB / 1.018 GB, free: 8.93 MB / 0.659 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.086e-05/0.5427, allocations: 68.59 kB / 1.018 GB, free: 8.852 MB / 0.659 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.5427, allocations: 0 / 1.018 GB, free: 8.852 MB / 0.659 GB Notification: Performance of matching and sorting (n=7): time 0.000217/0.5429, allocations: 77.58 kB / 1.018 GB, free: 8.77 MB / 0.659 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.543, allocations: 56.41 kB / 1.018 GB, free: 8.703 MB / 0.659 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.085e-05/0.5431, allocations: 105 kB / 1.018 GB, free: 8.594 MB / 0.659 GB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.5431, allocations: 30.95 kB / 1.018 GB, free: 8.559 MB / 0.659 GB Notification: Performance of collectInitialEqns (initialization): time 3.797e-05/0.5431, allocations: 84.33 kB / 1.018 GB, free: 8.469 MB / 0.659 GB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.5432, allocations: 23.73 kB / 1.018 GB, free: 8.445 MB / 0.659 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-06/0.5432, allocations: 1.438 kB / 1.018 GB, free: 8.445 MB / 0.659 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.5433, allocations: 319.4 kB / 1.019 GB, free: 8.125 MB / 0.659 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.777e-05/0.5433, allocations: 20.98 kB / 1.019 GB, free: 8.105 MB / 0.659 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.85e-05/0.5434, allocations: 35.14 kB / 1.019 GB, free: 8.062 MB / 0.659 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.35e-05/0.5435, allocations: 28.78 kB / 1.019 GB, free: 8.035 MB / 0.659 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.5435, allocations: 0.6875 kB / 1.019 GB, free: 8.035 MB / 0.659 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001524/0.5436, allocations: 90.95 kB / 1.019 GB, free: 7.945 MB / 0.659 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.5436, allocations: 10.75 kB / 1.019 GB, free: 7.938 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.5437, allocations: 3.984 kB / 1.019 GB, free: 7.934 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.5437, allocations: 7.375 kB / 1.019 GB, free: 7.93 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.5438, allocations: 13.78 kB / 1.019 GB, free: 7.918 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.5438, allocations: 0 / 1.019 GB, free: 7.918 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.893e-05/0.5439, allocations: 11.98 kB / 1.019 GB, free: 7.906 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.5439, allocations: 4 kB / 1.019 GB, free: 7.902 MB / 0.659 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.476e-05/0.544, allocations: 110.2 kB / 1.019 GB, free: 7.789 MB / 0.659 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.481e-05/0.544, allocations: 9.312 kB / 1.019 GB, free: 7.781 MB / 0.659 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.76e-05/0.544, allocations: 8.375 kB / 1.019 GB, free: 7.773 MB / 0.659 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.544, allocations: 7.984 kB / 1.019 GB, free: 7.766 MB / 0.659 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.544, allocations: 0 / 1.019 GB, free: 7.766 MB / 0.659 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.544, allocations: 1.281 kB / 1.019 GB, free: 7.766 MB / 0.659 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002965/0.5443, allocations: 319.7 kB / 1.019 GB, free: 7.41 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.5444, allocations: 0.75 kB / 1.019 GB, free: 7.41 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.613e-05/0.5444, allocations: 12.06 kB / 1.019 GB, free: 7.398 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.5444, allocations: 0 / 1.019 GB, free: 7.398 MB / 0.659 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.5444, allocations: 3.984 kB / 1.019 GB, free: 7.395 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.5444, allocations: 0 / 1.019 GB, free: 7.395 MB / 0.659 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.5444, allocations: 2 kB / 1.019 GB, free: 7.395 MB / 0.659 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001942/0.5446, allocations: 181 kB / 1.02 GB, free: 7.203 MB / 0.659 GB Notification: Performance of postOpt removeConstants (simulation): time 3.041e-05/0.5447, allocations: 81.02 kB / 1.02 GB, free: 7.105 MB / 0.659 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.5447, allocations: 0 / 1.02 GB, free: 7.105 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.175e-05/0.5448, allocations: 8 kB / 1.02 GB, free: 7.098 MB / 0.659 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.5448, allocations: 14.66 kB / 1.02 GB, free: 7.086 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.5449, allocations: 4 kB / 1.02 GB, free: 7.082 MB / 0.659 GB Notification: Performance of sort global known variables: time 3.801e-05/0.5449, allocations: 92.03 kB / 1.02 GB, free: 6.992 MB / 0.659 GB Notification: Performance of remove unused functions: time 0.000273/0.5452, allocations: 51.88 kB / 1.02 GB, free: 6.941 MB / 0.659 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.0003119/0.5455, allocations: 161.2 kB / 1.02 GB, free: 6.793 MB / 0.659 GB Notification: Performance of simCode: created initialization part: time 0.0001281/0.5456, allocations: 55.92 kB / 1.02 GB, free: 6.738 MB / 0.659 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.5456, allocations: 0 / 1.02 GB, free: 6.738 MB / 0.659 GB Notification: Performance of simCode: created simulation system equations: time 4.934e-05/0.5457, allocations: 24 kB / 1.02 GB, free: 6.715 MB / 0.659 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001643/0.5459, allocations: 9.578 kB / 1.02 GB, free: 6.707 MB / 0.659 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000271/0.5461, allocations: 112.3 kB / 1.02 GB, free: 6.578 MB / 0.659 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.5464, allocations: 0.7037 MB / 1.021 GB, free: 5.848 MB / 0.659 GB Notification: Performance of SimCode: time 2.21e-07/0.5464, allocations: 0 / 1.021 GB, free: 5.848 MB / 0.659 GB Notification: Performance of Templates: time 0.003492/0.5499, allocations: 1.639 MB / 1.022 GB, free: 4.262 MB / 0.659 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsCompletelyOpen.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.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