Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.9/1.9, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001079/0.001079, allocations: 189.2 kB / 487 MB, free: 5.355 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.214/1.214, allocations: 221.3 MB / 0.7819 GB, free: 1.441 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008491/0.0008491, allocations: 101.9 kB / 0.9213 GB, free: 2.695 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.774e-06/7.794e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2129, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6137/0.8266, allocations: 150.7 MB / 1.352 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.8269, allocations: 80.48 kB / 1.352 GB, free: 15.8 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.009778/0.8367, allocations: 2.931 MB / 1.355 GB, free: 15.65 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.8367, allocations: 1.5 kB / 1.355 GB, free: 15.65 MB / 0.8073 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.0004454/0.8372, allocations: 455.1 kB / 1.356 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.8372, allocations: 9.469 kB / 1.356 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.553e-05/0.8373, allocations: 8.906 kB / 1.356 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.129e-05/0.8374, allocations: 176.1 kB / 1.356 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.8374, allocations: 2 kB / 1.356 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.8374, allocations: 3.656 kB / 1.356 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.472e-05/0.8375, allocations: 36.83 kB / 1.356 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.8376, allocations: 73.12 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.8377, allocations: 1.094 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.8377, allocations: 0 / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/0.8377, allocations: 1.25 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004785/0.8382, allocations: 299.5 kB / 1.356 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 9.928e-05/0.8383, allocations: 51.14 kB / 1.356 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.392e-05/0.8383, allocations: 34.39 kB / 1.356 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.8384, allocations: 6.172 kB / 1.356 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001243/0.8385, allocations: 81.78 kB / 1.356 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=8): time 1.473e-06/0.8385, allocations: 3.938 kB / 1.356 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of matching and sorting (n=8): time 0.0003059/0.8388, allocations: 102.9 kB / 1.357 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.281e-05/0.8389, allocations: 53.34 kB / 1.357 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.205e-05/0.8389, allocations: 109.2 kB / 1.357 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.839, allocations: 27.05 kB / 1.357 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.597e-05/0.839, allocations: 91.92 kB / 1.357 GB, free: 14.31 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.839, allocations: 15.72 kB / 1.357 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-06/0.839, allocations: 0 / 1.357 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.438e-05/0.8391, allocations: 319.7 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.478e-05/0.8391, allocations: 24.31 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.816e-05/0.8392, allocations: 56.8 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.034e-05/0.8393, allocations: 23.94 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.8393, allocations: 0 / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001767/0.8394, allocations: 103.3 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.8395, allocations: 9.188 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.8395, allocations: 1.219 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.8395, allocations: 2.406 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.8396, allocations: 19.34 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.8396, allocations: 3.328 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.103e-05/0.8397, allocations: 9.094 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.8397, allocations: 8 kB / 1.357 GB, free: 13.89 MB / 0.8073 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.511e-05/0.8398, allocations: 118.5 kB / 1.358 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.8398, allocations: 9.766 kB / 1.358 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.751e-05/0.8399, allocations: 5.531 kB / 1.358 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.8399, allocations: 3.172 kB / 1.358 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.8399, allocations: 3.906 kB / 1.358 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.8399, allocations: 1 kB / 1.358 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003284/0.8402, allocations: 347.7 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.8402, allocations: 4 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.749e-05/0.8403, allocations: 11.53 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.624e-06/0.8403, allocations: 0.9062 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.8403, allocations: 2.625 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.8403, allocations: 1.125 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.8403, allocations: 0.5938 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002012/0.8405, allocations: 194 kB / 1.358 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.19e-05/0.8406, allocations: 88.56 kB / 1.358 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.914e-05/0.8406, allocations: 5.375 kB / 1.358 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.8407, allocations: 8.172 kB / 1.358 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.785e-05/0.8408, allocations: 9.891 kB / 1.358 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.8408, allocations: 11.61 kB / 1.358 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.045e-05/0.8408, allocations: 97.19 kB / 1.358 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003735/0.8412, allocations: 47.7 kB / 1.358 GB, free: 13.16 MB / 0.8073 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.0003545/0.8416, allocations: 176.2 kB / 1.359 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001659/0.8418, allocations: 66.23 kB / 1.359 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.8418, allocations: 0 / 1.359 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.499e-05/0.8419, allocations: 41.73 kB / 1.359 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001941/0.8421, allocations: 16.52 kB / 1.359 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003227/0.8424, allocations: 110.1 kB / 1.359 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000245/0.8426, allocations: 0.7041 MB / 1.359 GB, free: 28.26 MB / 0.823 GB Notification: Performance of SimCode: time 2.7e-07/0.8427, allocations: 0 / 1.359 GB, free: 28.26 MB / 0.823 GB Notification: Performance of Templates: time 0.00472/0.8474, allocations: 1.895 MB / 1.361 GB, free: 28.09 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Yun2008WindowsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Yun2008WindowsTOut.csv","../files/Buildings_9_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