Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.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.Herkel2008WindowsTiltedOpen,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.Herkel2008WindowsTiltedOpen") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen,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.Herkel2008WindowsTiltedOpen") [: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.202/1.202, allocations: 249.4 MB / 256.7 MB, free: 7.012 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.001008/0.001008, allocations: 188.3 kB / 316 MB, free: 3.5 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.032/1.032, allocations: 205.1 MB / 0.5667 GB, free: 15.71 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.0008241/0.0008241, allocations: 88.75 kB / 0.671 GB, free: 4.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.05e-06/5.069e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1386, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3909/0.5295, allocations: 133.9 MB / 1.015 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/0.5297, allocations: 78.7 kB / 1.015 GB, free: 4.664 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.007835/0.5376, allocations: 2.644 MB / 1.018 GB, free: 2.473 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.5376, allocations: 0.9375 kB / 1.018 GB, free: 2.473 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.0003956/0.538, allocations: 417.4 kB / 1.018 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.538, allocations: 8.031 kB / 1.018 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.014e-05/0.5381, allocations: 7.906 kB / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.814e-05/0.5382, allocations: 170.9 kB / 1.019 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.5382, allocations: 7.5 kB / 1.019 GB, free: 1.797 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.5382, allocations: 11.92 kB / 1.019 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.319e-05/0.5383, allocations: 18.75 kB / 1.019 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.615e-05/0.5384, allocations: 59.36 kB / 1.019 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.5384, allocations: 0 / 1.019 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.5384, allocations: 7.844 kB / 1.019 GB, free: 1.711 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.996e-06/0.5384, allocations: 0 / 1.019 GB, free: 1.711 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003458/0.5388, allocations: 275.1 kB / 1.019 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.397e-05/0.5388, allocations: 49.25 kB / 1.019 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.716e-05/0.5389, allocations: 19.3 kB / 1.019 GB, free: 1.359 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.5389, allocations: 0 / 1.019 GB, free: 1.359 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.99e-05/0.539, allocations: 73.45 kB / 1.019 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.539, allocations: 4 kB / 1.019 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001757/0.5392, allocations: 78.95 kB / 1.019 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.306e-05/0.5392, allocations: 51.41 kB / 1.019 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.007e-05/0.5393, allocations: 111.2 kB / 1.019 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.5393, allocations: 25.7 kB / 1.019 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.68e-05/0.5393, allocations: 92 kB / 1.019 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.5394, allocations: 19.06 kB / 1.019 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-06/0.5394, allocations: 3.938 kB / 1.019 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.124e-05/0.5395, allocations: 326.6 kB / 1.02 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.469e-05/0.5395, allocations: 18.56 kB / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.713e-05/0.5396, allocations: 34.75 kB / 1.02 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.553e-05/0.5396, allocations: 22.23 kB / 1.02 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.5396, allocations: 3.938 kB / 1.02 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001665/0.5398, allocations: 94.38 kB / 1.02 GB, free: 428 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 7.344e-06/0.5398, allocations: 8.062 kB / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.5398, allocations: 0 / 1.02 GB, free: 420 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.5399, allocations: 4 kB / 1.02 GB, free: 416 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.407e-05/0.5399, allocations: 15.36 kB / 1.02 GB, free: 404 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.54, allocations: 0 / 1.02 GB, free: 404 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.832e-05/0.54, allocations: 8 kB / 1.02 GB, free: 396 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.5401, allocations: 0 / 1.02 GB, free: 396 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.882e-05/0.5401, allocations: 116.8 kB / 1.02 GB, free: 272 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.406e-05/0.5401, allocations: 7.906 kB / 1.02 GB, free: 264 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.546e-05/0.5402, allocations: 11.86 kB / 1.02 GB, free: 252 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.5402, allocations: 7.984 kB / 1.02 GB, free: 244 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.5402, allocations: 0 / 1.02 GB, free: 244 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.5402, allocations: 0 / 1.02 GB, free: 244 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002729/0.5405, allocations: 311.1 kB / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5405, allocations: 0 / 1.02 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.886e-05/0.5405, allocations: 19.92 kB / 1.02 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.5406, allocations: 0 / 1.02 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.146e-06/0.5406, allocations: 0 / 1.02 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.5406, allocations: 4 kB / 1.02 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.5406, allocations: 0 / 1.02 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001555/0.5407, allocations: 180.9 kB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 2.798e-05/0.5408, allocations: 84.95 kB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.5408, allocations: 0 / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.354e-05/0.5409, allocations: 11.98 kB / 1.021 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.416e-05/0.5409, allocations: 7.906 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.5409, allocations: 7.984 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.869e-05/0.541, allocations: 90.47 kB / 1.021 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002577/0.5413, allocations: 51.86 kB / 1.021 GB, free: 15.45 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.0002564/0.5415, allocations: 168.9 kB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001086/0.5416, allocations: 45 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-06/0.5416, allocations: 0 / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.949e-05/0.5417, allocations: 31.11 kB / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001491/0.5418, allocations: 8.188 kB / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002401/0.5421, allocations: 99.48 kB / 1.021 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.5423, allocations: 0.7037 MB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/0.5423, allocations: 0 / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of Templates: time 0.003318/0.5457, allocations: 1.635 MB / 1.023 GB, free: 12.78 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsTiltedOpen.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.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