Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.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.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") [: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.191/1.191, allocations: 249.4 MB / 256.7 MB, free: 6.922 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.0009191/0.0009191, allocations: 189.2 kB / 316 MB, free: 3.516 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.029/1.029, allocations: 205.2 MB / 0.5667 GB, free: 15.6 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.0007793/0.0007793, allocations: 86.34 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.272e-06/6.292e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.141, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3998/0.5409, allocations: 134 MB / 1.015 GB, free: 4.699 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.5411, allocations: 79.39 kB / 1.015 GB, free: 4.656 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.007949/0.5491, allocations: 2.642 MB / 1.018 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.675e-06/0.5491, allocations: 7.938 kB / 1.018 GB, free: 2.457 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.0004229/0.5495, allocations: 418.1 kB / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.5495, allocations: 12.03 kB / 1.018 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.25e-05/0.5496, allocations: 7.906 kB / 1.018 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.5497, allocations: 170.9 kB / 1.019 GB, free: 1.781 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.5497, allocations: 4 kB / 1.019 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.552e-05/0.5497, allocations: 4 kB / 1.019 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.151e-05/0.5498, allocations: 21.44 kB / 1.019 GB, free: 1.762 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.246e-05/0.5499, allocations: 56.55 kB / 1.019 GB, free: 1.707 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.5499, allocations: 0 / 1.019 GB, free: 1.707 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.5499, allocations: 7.891 kB / 1.019 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.55, allocations: 3.938 kB / 1.019 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003855/0.5503, allocations: 285.6 kB / 1.019 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.064e-05/0.5504, allocations: 36.89 kB / 1.019 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.001e-05/0.5505, allocations: 23.8 kB / 1.019 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.885e-05/0.5505, allocations: 4.062 kB / 1.019 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.104e-05/0.5506, allocations: 74.2 kB / 1.019 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.5506, allocations: 0 / 1.019 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001929/0.5508, allocations: 75.39 kB / 1.019 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.5508, allocations: 54.78 kB / 1.019 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.425e-05/0.5509, allocations: 114.2 kB / 1.019 GB, free: 1.023 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.5509, allocations: 29.7 kB / 1.019 GB, free: 0.9883 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.862e-05/0.551, allocations: 80.33 kB / 1.019 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.551, allocations: 26.61 kB / 1.02 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.199e-06/0.551, allocations: 0 / 1.02 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.828e-05/0.5511, allocations: 318.6 kB / 1.02 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.484e-05/0.5511, allocations: 18.56 kB / 1.02 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.817e-05/0.5512, allocations: 43.23 kB / 1.02 GB, free: 0.5039 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.624e-05/0.5513, allocations: 26.67 kB / 1.02 GB, free: 496 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5513, allocations: 4 kB / 1.02 GB, free: 492 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001569/0.5514, allocations: 96.58 kB / 1.02 GB, free: 404 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/0.5514, allocations: 4 kB / 1.02 GB, free: 400 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.5515, allocations: 4 kB / 1.02 GB, free: 396 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.5515, allocations: 0 / 1.02 GB, free: 396 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.369e-05/0.5516, allocations: 15.98 kB / 1.02 GB, free: 380 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.5516, allocations: 0 / 1.02 GB, free: 380 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.561e-05/0.5517, allocations: 8.062 kB / 1.02 GB, free: 372 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.5517, allocations: 4 kB / 1.02 GB, free: 368 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.win.curSeed,win.curSeed,occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$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.745e-05/0.5518, allocations: 123 kB / 1.02 GB, free: 244 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.5518, allocations: 7.906 kB / 1.02 GB, free: 236 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.476e-05/0.5518, allocations: 4.375 kB / 1.02 GB, free: 228 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.5518, allocations: 0 / 1.02 GB, free: 228 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.5518, allocations: 0 / 1.02 GB, free: 228 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.5518, allocations: 0 / 1.02 GB, free: 228 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003017/0.5521, allocations: 325.6 kB / 1.02 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5521, allocations: 3.938 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.47e-05/0.5522, allocations: 7.984 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.5522, allocations: 0 / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.5522, allocations: 4 kB / 1.02 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5522, allocations: 0 / 1.02 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5522, allocations: 0 / 1.02 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001637/0.5524, allocations: 176.9 kB / 1.021 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.366e-05/0.5524, allocations: 93.05 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.5525, allocations: 3.938 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.542e-05/0.5526, allocations: 7.984 kB / 1.021 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.293e-05/0.5526, allocations: 7.906 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.5526, allocations: 3.984 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.364e-05/0.5527, allocations: 87.16 kB / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002644/0.5529, allocations: 63.16 kB / 1.021 GB, free: 15.43 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.0002755/0.5532, allocations: 161.5 kB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001321/0.5534, allocations: 60.28 kB / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.5534, allocations: 0 / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.714e-05/0.5534, allocations: 22.62 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001523/0.5536, allocations: 11.83 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002541/0.5538, allocations: 93.73 kB / 1.021 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002416/0.5541, allocations: 0.7036 MB / 1.022 GB, free: 14.37 MB / 0.6511 GB Notification: Performance of SimCode: time 2.51e-07/0.5541, allocations: 4 kB / 1.022 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of Templates: time 0.003423/0.5575, allocations: 1.632 MB / 1.024 GB, free: 12.74 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TIn,win.occ,win.p,win.on Variables in the result:TIn.amplitude,TIn.freqHz,TIn.offset,TIn.phase,TIn.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TIn,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0