Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.939/1.939, allocations: 387.2 MB / 394.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 185.2 kB / 487 MB, free: 5.348 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 221.3 MB / 0.7819 GB, free: 1.32 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009247/0.0009248, allocations: 93.55 kB / 0.9213 GB, free: 2.566 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.402e-06/6.602e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2213, allocations: 142.3 MB / 1.205 GB, free: 26.19 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5799/0.8012, allocations: 150.4 MB / 1.352 GB, free: 15.81 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.8015, allocations: 82.08 kB / 1.352 GB, free: 15.81 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.008873/0.8104, allocations: 2.69 MB / 1.355 GB, free: 15.68 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.8104, allocations: 0.7812 kB / 1.355 GB, free: 15.68 MB / 0.8073 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.0004233/0.8108, allocations: 411.5 kB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.8109, allocations: 9.375 kB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.114e-05/0.8109, allocations: 9.656 kB / 1.355 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.886e-05/0.811, allocations: 171 kB / 1.355 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.811, allocations: 1.656 kB / 1.355 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.114e-05/0.8111, allocations: 4.781 kB / 1.355 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.659e-05/0.8111, allocations: 23.97 kB / 1.355 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.8113, allocations: 58.3 kB / 1.355 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.8113, allocations: 5.328 kB / 1.355 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.8113, allocations: 1.125 kB / 1.355 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.8113, allocations: 0.9375 kB / 1.355 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004116/0.8117, allocations: 282 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.948e-05/0.8118, allocations: 44.7 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.486e-05/0.8119, allocations: 23.23 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.8119, allocations: 2.141 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.603e-05/0.812, allocations: 70.16 kB / 1.356 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.812, allocations: 0 / 1.356 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0002199/0.8122, allocations: 81.69 kB / 1.356 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.8122, allocations: 58.31 kB / 1.356 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.579e-05/0.8123, allocations: 112.5 kB / 1.356 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.8123, allocations: 30.8 kB / 1.356 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.688e-05/0.8124, allocations: 86.97 kB / 1.356 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/0.8124, allocations: 19.48 kB / 1.356 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.122e-06/0.8124, allocations: 0 / 1.356 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.576e-05/0.8125, allocations: 320 kB / 1.357 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.025e-05/0.8125, allocations: 17.66 kB / 1.357 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.928e-05/0.8126, allocations: 38.8 kB / 1.357 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.557e-05/0.8126, allocations: 21.91 kB / 1.357 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.8126, allocations: 0.75 kB / 1.357 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001624/0.8128, allocations: 88.17 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.8128, allocations: 5.188 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.8128, allocations: 0.9375 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.8129, allocations: 2.219 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.813, allocations: 19.38 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.813, allocations: 1.969 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.273e-05/0.8131, allocations: 10.06 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.8131, allocations: 4.062 kB / 1.357 GB, free: 13.98 MB / 0.8073 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 5.537e-05/0.8131, allocations: 111.6 kB / 1.357 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.612e-05/0.8132, allocations: 6.797 kB / 1.357 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.866e-05/0.8132, allocations: 17.34 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.8132, allocations: 2.156 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.8132, allocations: 2.125 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.8132, allocations: 0.8438 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002757/0.8135, allocations: 320.3 kB / 1.357 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.8135, allocations: 0 / 1.357 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.019e-05/0.8136, allocations: 10.19 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.8136, allocations: 0.625 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.8136, allocations: 3.344 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.8136, allocations: 7.906 kB / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.8136, allocations: 0.9062 kB / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000158/0.8138, allocations: 171.5 kB / 1.357 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.315e-05/0.8138, allocations: 83.59 kB / 1.357 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.8138, allocations: 0.75 kB / 1.357 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.662e-05/0.8139, allocations: 6.562 kB / 1.357 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.528e-05/0.814, allocations: 12.02 kB / 1.357 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.814, allocations: 3.906 kB / 1.357 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.093e-05/0.814, allocations: 88.41 kB / 1.358 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003006/0.8143, allocations: 58.42 kB / 1.358 GB, free: 13.25 MB / 0.8073 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.0003152/0.8147, allocations: 175.2 kB / 1.358 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001385/0.8148, allocations: 56.53 kB / 1.358 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-06/0.8148, allocations: 0 / 1.358 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.839e-05/0.8149, allocations: 32.41 kB / 1.358 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001739/0.8151, allocations: 4.922 kB / 1.358 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002911/0.8154, allocations: 101.6 kB / 1.358 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.8155, allocations: 0.7018 MB / 1.359 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of SimCode: time 2.1e-07/0.8155, allocations: 4 kB / 1.359 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of Templates: time 0.004251/0.8198, allocations: 1.635 MB / 1.36 GB, free: 12.19 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","../files/Buildings_9_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.f,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