Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.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.Yun2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn") translateModel(Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn") [: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.176/1.176, allocations: 249.4 MB / 256.7 MB, free: 7.008 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.001016/0.001016, allocations: 185 kB / 316 MB, free: 3.535 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.019/1.019, allocations: 205.2 MB / 0.5667 GB, free: 15.66 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.0007724/0.0007724, allocations: 100.5 kB / 0.671 GB, free: 4.781 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.101e-06/6.141e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.14, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4045/0.5445, allocations: 134.3 MB / 1.016 GB, free: 4.422 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/0.5448, allocations: 83.25 kB / 1.016 GB, free: 4.375 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.008904/0.5537, allocations: 2.897 MB / 1.019 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.5537, allocations: 0 / 1.019 GB, free: 1.957 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004611/0.5542, allocations: 460.5 kB / 1.019 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.5542, allocations: 8.031 kB / 1.019 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.789e-05/0.5542, allocations: 7.906 kB / 1.019 GB, free: 1.441 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.5544, allocations: 163.1 kB / 1.019 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.5544, allocations: 7.906 kB / 1.019 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.5544, allocations: 8.688 kB / 1.019 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.857e-05/0.5545, allocations: 37.73 kB / 1.019 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.5546, allocations: 64.16 kB / 1.019 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.5547, allocations: 0 / 1.019 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.5547, allocations: 7.938 kB / 1.019 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.5547, allocations: 4 kB / 1.019 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004739/0.5552, allocations: 303.9 kB / 1.02 GB, free: 0.8242 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.405e-05/0.5553, allocations: 54.59 kB / 1.02 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.319e-05/0.5553, allocations: 34.67 kB / 1.02 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.5553, allocations: 4 kB / 1.02 GB, free: 0.7461 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001034/0.5555, allocations: 82.17 kB / 1.02 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=8): time 1.283e-06/0.5555, allocations: 0 / 1.02 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8): time 0.0002386/0.5557, allocations: 93.2 kB / 1.02 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.746e-05/0.5557, allocations: 55.41 kB / 1.02 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.89e-05/0.5558, allocations: 111.1 kB / 1.02 GB, free: 424 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.5558, allocations: 33.7 kB / 1.02 GB, free: 384 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.35e-05/0.5559, allocations: 91.17 kB / 1.02 GB, free: 292 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.5559, allocations: 15.34 kB / 1.02 GB, free: 280 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.561e-06/0.5559, allocations: 3.938 kB / 1.02 GB, free: 276 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.556, allocations: 322.7 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.825e-05/0.5561, allocations: 14.38 kB / 1.02 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.673e-05/0.5561, allocations: 61.72 kB / 1.021 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.146e-05/0.5562, allocations: 31.36 kB / 1.021 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5562, allocations: 0 / 1.021 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001588/0.5564, allocations: 101.7 kB / 1.021 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.5564, allocations: 8 kB / 1.021 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.5564, allocations: 48 / 1.021 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.5564, allocations: 7.984 kB / 1.021 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.5565, allocations: 20.02 kB / 1.021 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.5565, allocations: 4 kB / 1.021 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.696e-05/0.5566, allocations: 4 kB / 1.021 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.5567, allocations: 11.42 kB / 1.021 GB, free: 15.72 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.win.curSeed,win.curSeed,$PRE.win.on,win.on,occ.y,$PRE.win.pOpen,win.pOpen,$PRE.win.pClose,win.pClose,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.765e-05/0.5567, allocations: 112.8 kB / 1.021 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.726e-05/0.5567, allocations: 7.906 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.821e-05/0.5568, allocations: 15.81 kB / 1.021 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.5568, allocations: 0 / 1.021 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5568, allocations: 3.938 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.5568, allocations: 0 / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003476/0.5572, allocations: 353.5 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.5572, allocations: 0 / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.645e-05/0.5572, allocations: 8 kB / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.5572, allocations: 0 / 1.021 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.5572, allocations: 7.984 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.5573, allocations: 8 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.5573, allocations: 0 / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002069/0.5575, allocations: 200.5 kB / 1.021 GB, free: 15 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 2.891e-05/0.5575, allocations: 84.95 kB / 1.022 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.595e-05/0.5575, allocations: 4 kB / 1.022 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.5577, allocations: 15.61 kB / 1.022 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.26e-05/0.5577, allocations: 4 kB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.5577, allocations: 7.984 kB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.109e-05/0.5578, allocations: 86.91 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002739/0.5581, allocations: 55.3 kB / 1.022 GB, free: 14.74 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: 7 (win.sampleTrigger,$whenCondition1,occ.y,win.on,win.pOpen,win.pClose,win.curSeed) * Number of discrete states: 1 (win.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000296/0.5584, allocations: 171 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001478/0.5585, allocations: 61.11 kB / 1.022 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5585, allocations: 0 / 1.022 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.187e-05/0.5586, allocations: 43.05 kB / 1.022 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001727/0.5588, allocations: 7.906 kB / 1.022 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002929/0.5591, allocations: 106.8 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002242/0.5593, allocations: 0.7154 MB / 1.023 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of SimCode: time 2.11e-07/0.5593, allocations: 0 / 1.023 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of Templates: time 0.003969/0.5633, allocations: 1.911 MB / 1.025 GB, free: 11.76 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Yun2008WindowsTIn.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TIn,win.occ,win.pOpen,win.on Variables in the result:TIn.amplitude,TIn.freqHz,TIn.offset,TIn.phase,TIn.startTime,occ.startTime,occ.startValue,occ.y,time,win.AClose,win.AOpen,win.BClose,win.BOpen,win.TIn,win.occ,win.on,win.pOpen,win.samplePeriod,win.seed,win.t0