Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.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.Yun2008WindowsTOut,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut") translateModel(Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut") [: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 1.944/1.944, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.001018/0.001018, allocations: 177.3 kB / 490.8 MB, free: 1.91 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.289/1.289, allocations: 221.4 MB / 0.7863 GB, free: 13.62 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.0009036/0.0009036, allocations: 97.94 kB / 0.9264 GB, free: 14.17 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.083e-06/7.113e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2561, allocations: 143 MB / 1.212 GB, free: 40.11 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7017/0.9578, allocations: 151.5 MB / 1.359 GB, free: 17.34 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.9581, allocations: 78.2 kB / 1.36 GB, free: 17.34 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.009743/0.9678, allocations: 2.936 MB / 1.362 GB, free: 17.19 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.705e-06/0.9679, allocations: 1.344 kB / 1.362 GB, free: 17.19 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005791/0.9685, allocations: 454.7 kB / 1.363 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.9685, allocations: 9.25 kB / 1.363 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.844e-05/0.9686, allocations: 10.28 kB / 1.363 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.523e-05/0.9687, allocations: 167.8 kB / 1.363 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.9687, allocations: 2.938 kB / 1.363 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.543e-05/0.9687, allocations: 5.281 kB / 1.363 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.682e-05/0.9688, allocations: 44.34 kB / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001283/0.969, allocations: 68.53 kB / 1.363 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.969, allocations: 0 / 1.363 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.969, allocations: 5.5 kB / 1.363 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.969, allocations: 1.406 kB / 1.363 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005094/0.9695, allocations: 297.3 kB / 1.363 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.902e-05/0.9696, allocations: 56.27 kB / 1.364 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.972e-05/0.9697, allocations: 35.05 kB / 1.364 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.9697, allocations: 3.016 kB / 1.364 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/0.9699, allocations: 82.61 kB / 1.364 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.233e-06/0.9699, allocations: 0 / 1.364 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002634/0.9701, allocations: 91.23 kB / 1.364 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.38e-05/0.9702, allocations: 56.16 kB / 1.364 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.741e-05/0.9703, allocations: 114.1 kB / 1.364 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.9703, allocations: 32.55 kB / 1.364 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.003e-05/0.9703, allocations: 83.95 kB / 1.364 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.9704, allocations: 22.28 kB / 1.364 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/0.9704, allocations: 4.875 kB / 1.364 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.9705, allocations: 319.6 kB / 1.364 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.306e-05/0.9706, allocations: 19.25 kB / 1.364 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.289e-05/0.9706, allocations: 58.45 kB / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.612e-05/0.9707, allocations: 24.59 kB / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.9707, allocations: 0 / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001691/0.9709, allocations: 104.3 kB / 1.365 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.9709, allocations: 5.562 kB / 1.365 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.9709, allocations: 0 / 1.365 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.9709, allocations: 6.688 kB / 1.365 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.971, allocations: 19.81 kB / 1.365 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.9711, allocations: 1.219 kB / 1.365 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.21e-05/0.9711, allocations: 12.69 kB / 1.365 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.9712, allocations: 5.047 kB / 1.365 GB, free: 31.43 MB / 0.8386 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 8.751e-05/0.9713, allocations: 117.5 kB / 1.365 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.921e-05/0.9713, allocations: 13.16 kB / 1.365 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.095e-05/0.9713, allocations: 10.84 kB / 1.365 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.9713, allocations: 1.344 kB / 1.365 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.9713, allocations: 1.312 kB / 1.365 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.9713, allocations: 3.938 kB / 1.365 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003546/0.9717, allocations: 344.8 kB / 1.365 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.9717, allocations: 8 kB / 1.365 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.723e-05/0.9718, allocations: 12.56 kB / 1.365 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.9718, allocations: 4 kB / 1.365 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.9718, allocations: 6.516 kB / 1.365 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.9718, allocations: 4.906 kB / 1.365 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.9718, allocations: 0 / 1.365 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002242/0.972, allocations: 189 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.204e-05/0.9721, allocations: 83.39 kB / 1.365 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.863e-05/0.9721, allocations: 0.9062 kB / 1.365 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.9722, allocations: 12.39 kB / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.9723, allocations: 9.25 kB / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.9723, allocations: 3.484 kB / 1.365 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.721e-05/0.9724, allocations: 91.16 kB / 1.365 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003282/0.9727, allocations: 56.95 kB / 1.365 GB, free: 30.69 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: 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.0004283/0.9731, allocations: 176 kB / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000184/0.9733, allocations: 63.95 kB / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.9733, allocations: 0 / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.855e-05/0.9734, allocations: 40.3 kB / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002107/0.9736, allocations: 5.641 kB / 1.366 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003854/0.974, allocations: 116.3 kB / 1.366 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004044/0.9744, allocations: 0.7101 MB / 1.367 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/0.9745, allocations: 0 / 1.367 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of Templates: time 0.006149/0.9806, allocations: 1.903 MB / 1.368 GB, free: 29.62 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Yun2008WindowsTOut.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.pOpen,win.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,occ.y,time,win.AClose,win.AOpen,win.BClose,win.BOpen,win.TOut,win.occ,win.on,win.pOpen,win.samplePeriod,win.seed,win.t0