Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.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.Herkel2008WindowsTiltedOpen,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.932/1.932, allocations: 387.2 MB / 394.5 MB, free: 13.72 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.001114/0.001115, allocations: 187.8 kB / 487 MB, free: 5.383 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.26/1.26, allocations: 221.3 MB / 0.7819 GB, free: 1.406 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.0009342/0.0009342, allocations: 93.8 kB / 0.9213 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.973e-06/6.983e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2122, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6096/0.8218, allocations: 150.4 MB / 1.352 GB, free: 15.99 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.8221, allocations: 81.05 kB / 1.352 GB, free: 15.99 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.00884/0.8309, allocations: 2.686 MB / 1.355 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.832e-06/0.8309, allocations: 0.7188 kB / 1.355 GB, free: 15.85 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004219/0.8314, allocations: 414.1 kB / 1.355 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.8314, allocations: 10.22 kB / 1.355 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.922e-05/0.8315, allocations: 12.11 kB / 1.355 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.758e-05/0.8315, allocations: 172.3 kB / 1.355 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/0.8316, allocations: 1.969 kB / 1.355 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.8316, allocations: 4.828 kB / 1.355 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.131e-05/0.8317, allocations: 20.95 kB / 1.355 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/0.8318, allocations: 58.36 kB / 1.355 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.8318, allocations: 0 / 1.355 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.8318, allocations: 5.609 kB / 1.355 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.8318, allocations: 0.75 kB / 1.355 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003896/0.8322, allocations: 282.9 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.972e-05/0.8323, allocations: 48.61 kB / 1.356 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.275e-05/0.8324, allocations: 22.98 kB / 1.356 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.8324, allocations: 2.094 kB / 1.356 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.524e-05/0.8325, allocations: 65.83 kB / 1.356 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.8325, allocations: 0 / 1.356 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0002103/0.8327, allocations: 81.28 kB / 1.356 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.927e-05/0.8327, allocations: 54.22 kB / 1.356 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.055e-05/0.8328, allocations: 117 kB / 1.356 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.8328, allocations: 26.52 kB / 1.356 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.736e-05/0.8329, allocations: 96.16 kB / 1.356 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.744e-05/0.8329, allocations: 11.69 kB / 1.356 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-06/0.8329, allocations: 0 / 1.356 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.964e-05/0.8329, allocations: 320.3 kB / 1.357 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.874e-05/0.833, allocations: 17.22 kB / 1.357 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.879e-05/0.833, allocations: 43.25 kB / 1.357 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.335e-05/0.8331, allocations: 21.09 kB / 1.357 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.8331, allocations: 0 / 1.357 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001682/0.8333, allocations: 91.23 kB / 1.357 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/0.8333, allocations: 4.688 kB / 1.357 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.8333, allocations: 1.359 kB / 1.357 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.8333, allocations: 1.688 kB / 1.357 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.8334, allocations: 20.06 kB / 1.357 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.331e-06/0.8335, allocations: 5.344 kB / 1.357 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.404e-05/0.8335, allocations: 10.86 kB / 1.357 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.8336, allocations: 3.688 kB / 1.357 GB, free: 14.15 MB / 0.8073 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.333e-05/0.8336, allocations: 104.5 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.721e-05/0.8337, allocations: 8.047 kB / 1.357 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.16e-05/0.8337, allocations: 13.67 kB / 1.357 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.8337, allocations: 5.125 kB / 1.357 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.8337, allocations: 3.078 kB / 1.357 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.8337, allocations: 0.9062 kB / 1.357 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002965/0.834, allocations: 323.5 kB / 1.357 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.834, allocations: 0.9062 kB / 1.357 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.999e-05/0.8341, allocations: 7.047 kB / 1.357 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.8341, allocations: 0 / 1.357 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.8341, allocations: 1.641 kB / 1.357 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.8341, allocations: 9.547 kB / 1.357 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.8341, allocations: 0 / 1.357 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001669/0.8343, allocations: 172 kB / 1.357 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.291e-05/0.8343, allocations: 88.42 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.8344, allocations: 2.219 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.878e-05/0.8345, allocations: 5.078 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.106e-05/0.8345, allocations: 8.344 kB / 1.357 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.8345, allocations: 2.812 kB / 1.357 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.701e-05/0.8346, allocations: 101.2 kB / 1.358 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003169/0.8349, allocations: 50.16 kB / 1.358 GB, free: 13.41 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: 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.000356/0.8353, allocations: 162.6 kB / 1.358 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001526/0.8354, allocations: 57.88 kB / 1.358 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.8354, allocations: 0 / 1.358 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.745e-05/0.8355, allocations: 24.84 kB / 1.358 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001783/0.8357, allocations: 3.906 kB / 1.358 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000301/0.836, allocations: 98.84 kB / 1.358 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001869/0.8362, allocations: 0.706 MB / 1.359 GB, free: 12.53 MB / 0.8073 GB Notification: Performance of SimCode: time 3.01e-07/0.8362, allocations: 4.125 kB / 1.359 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of Templates: time 0.004284/0.8405, allocations: 1.641 MB / 1.36 GB, free: 12.37 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsTiltedOpen_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsTiltedOpen.csv","../files/Buildings_9_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.f,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