Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 2.031/2.031, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.001293/0.001293, allocations: 191.8 kB / 490.8 MB, free: 1.957 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.287/1.287, allocations: 221.4 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 98.47 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.704e-06/7.744e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2463, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6453/0.8916, allocations: 151.2 MB / 1.359 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.8919, allocations: 82.2 kB / 1.359 GB, free: 17.45 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.00893/0.9008, allocations: 2.693 MB / 1.362 GB, free: 17.3 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.644e-06/0.9008, allocations: 1.156 kB / 1.362 GB, free: 17.3 MB / 0.823 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.0006083/0.9015, allocations: 407.4 kB / 1.362 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.9015, allocations: 12.59 kB / 1.362 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.276e-05/0.9015, allocations: 9.406 kB / 1.362 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.9017, allocations: 167.4 kB / 1.363 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.9017, allocations: 10.77 kB / 1.363 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.979e-05/0.9017, allocations: 11.48 kB / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.154e-05/0.9018, allocations: 25.41 kB / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.9019, allocations: 55.72 kB / 1.363 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.9019, allocations: 0 / 1.363 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.902, allocations: 0 / 1.363 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.902, allocations: 1 kB / 1.363 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000426/0.9024, allocations: 281.1 kB / 1.363 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.797e-05/0.9025, allocations: 41 kB / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.57e-05/0.9025, allocations: 24.78 kB / 1.363 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.9026, allocations: 1.406 kB / 1.363 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.402e-05/0.9027, allocations: 67.28 kB / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.9027, allocations: 0 / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002271/0.9029, allocations: 73.52 kB / 1.363 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.549e-05/0.9029, allocations: 61.06 kB / 1.363 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.233e-05/0.903, allocations: 111.5 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.903, allocations: 26.77 kB / 1.363 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.504e-05/0.9031, allocations: 88.62 kB / 1.363 GB, free: 32 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.9031, allocations: 14.91 kB / 1.363 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.9031, allocations: 4.969 kB / 1.363 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.9033, allocations: 318.3 kB / 1.364 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.69e-05/0.9033, allocations: 19.02 kB / 1.364 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.643e-05/0.9033, allocations: 40.88 kB / 1.364 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.388e-05/0.9034, allocations: 22.36 kB / 1.364 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.9034, allocations: 0 / 1.364 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001591/0.9036, allocations: 89.45 kB / 1.364 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.9036, allocations: 8.531 kB / 1.364 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.9036, allocations: 1.125 kB / 1.364 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.9036, allocations: 1.531 kB / 1.364 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.9038, allocations: 20.88 kB / 1.364 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.9038, allocations: 1.438 kB / 1.364 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.008e-05/0.9038, allocations: 10.81 kB / 1.364 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.9039, allocations: 3 kB / 1.364 GB, free: 31.6 MB / 0.8386 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 8.167e-05/0.904, allocations: 112.5 kB / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.543e-05/0.904, allocations: 7.125 kB / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.288e-05/0.904, allocations: 14.5 kB / 1.364 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.904, allocations: 1.094 kB / 1.364 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.904, allocations: 1.031 kB / 1.364 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.904, allocations: 0 / 1.364 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.9043, allocations: 323.7 kB / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.9043, allocations: 0 / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.79e-05/0.9044, allocations: 11.2 kB / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.9044, allocations: 0 / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.9044, allocations: 7.016 kB / 1.364 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.9044, allocations: 4 kB / 1.364 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.9044, allocations: 0 / 1.364 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001853/0.9046, allocations: 181.7 kB / 1.365 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.525e-05/0.9047, allocations: 84.2 kB / 1.365 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/0.9047, allocations: 1.031 kB / 1.365 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.778e-05/0.9048, allocations: 9.672 kB / 1.365 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.9049, allocations: 8.172 kB / 1.365 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.9049, allocations: 4.188 kB / 1.365 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.104e-05/0.9049, allocations: 88.53 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003471/0.9053, allocations: 55.81 kB / 1.365 GB, free: 30.86 MB / 0.8386 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.0003856/0.9057, allocations: 179 kB / 1.365 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001454/0.9058, allocations: 50.08 kB / 1.365 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.9058, allocations: 0 / 1.365 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.93e-05/0.9059, allocations: 32.42 kB / 1.365 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001882/0.9061, allocations: 3.422 kB / 1.365 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000313/0.9064, allocations: 95.31 kB / 1.365 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002997/0.9067, allocations: 0.7045 MB / 1.366 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/0.9067, allocations: 0 / 1.366 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of Templates: time 0.004267/0.911, allocations: 1.636 MB / 1.367 GB, free: 29.81 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","../files/Buildings_latest_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