Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,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.Zhang2012WindowsAll") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,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.Zhang2012WindowsAll") [: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.979/1.979, allocations: 387.2 MB / 394.5 MB, free: 13.59 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.001161/0.001161, allocations: 197.2 kB / 487 MB, free: 5.309 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.239/1.239, allocations: 221.3 MB / 0.7819 GB, free: 1.391 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.0009063/0.0009063, allocations: 101.2 kB / 0.9213 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.84e-06/5.851e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2045, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6167/0.8212, allocations: 150.4 MB / 1.352 GB, free: 15.67 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003278/0.8216, allocations: 78.75 kB / 1.352 GB, free: 15.67 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.0094/0.831, allocations: 2.688 MB / 1.355 GB, free: 15.54 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.8311, allocations: 1 kB / 1.355 GB, free: 15.54 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.0004384/0.8315, allocations: 414.8 kB / 1.355 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.8316, allocations: 8.656 kB / 1.355 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.384e-05/0.8316, allocations: 8.797 kB / 1.355 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.639e-05/0.8317, allocations: 174.8 kB / 1.355 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.8317, allocations: 2.391 kB / 1.355 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.889e-05/0.8318, allocations: 3.938 kB / 1.355 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.599e-05/0.8319, allocations: 21.02 kB / 1.355 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.832, allocations: 54.8 kB / 1.355 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.832, allocations: 0.6562 kB / 1.355 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.832, allocations: 8.344 kB / 1.355 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.832, allocations: 0.9062 kB / 1.355 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004269/0.8324, allocations: 276.6 kB / 1.356 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.54e-05/0.8325, allocations: 44.12 kB / 1.356 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.633e-05/0.8326, allocations: 26.61 kB / 1.356 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.8326, allocations: 1.281 kB / 1.356 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.593e-05/0.8327, allocations: 70.64 kB / 1.356 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.8327, allocations: 0 / 1.356 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0002181/0.8329, allocations: 78.72 kB / 1.356 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/0.833, allocations: 57.89 kB / 1.356 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.053e-05/0.833, allocations: 115.7 kB / 1.356 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.8331, allocations: 31.41 kB / 1.356 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.74e-05/0.8331, allocations: 91.5 kB / 1.356 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.8331, allocations: 11.33 kB / 1.356 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.7e-06/0.8331, allocations: 0 / 1.356 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.829e-05/0.8332, allocations: 319.4 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.989e-05/0.8332, allocations: 20.05 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.018e-05/0.8333, allocations: 36.34 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.411e-05/0.8333, allocations: 25.16 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.8334, allocations: 0 / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001599/0.8335, allocations: 91.69 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.8335, allocations: 5.844 kB / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.8335, allocations: 0 / 1.357 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.8336, allocations: 6.672 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.8337, allocations: 16 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.8337, allocations: 1.656 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.243e-05/0.8338, allocations: 14.53 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.8338, allocations: 3.094 kB / 1.357 GB, free: 13.84 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 5.383e-05/0.8338, allocations: 108.6 kB / 1.357 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.656e-05/0.8339, allocations: 7.953 kB / 1.357 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.8339, allocations: 15.44 kB / 1.357 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.8339, allocations: 1.438 kB / 1.357 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.8339, allocations: 0.8438 kB / 1.357 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.8339, allocations: 4.516 kB / 1.357 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.8342, allocations: 317.3 kB / 1.357 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.8342, allocations: 5.531 kB / 1.357 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.726e-05/0.8343, allocations: 10.36 kB / 1.357 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.8343, allocations: 0 / 1.357 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.8343, allocations: 2.984 kB / 1.357 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.8343, allocations: 5.344 kB / 1.357 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.8343, allocations: 0 / 1.357 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001534/0.8345, allocations: 175.5 kB / 1.357 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.26e-05/0.8345, allocations: 84.38 kB / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.8345, allocations: 0.9375 kB / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.996e-05/0.8346, allocations: 5.891 kB / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.8347, allocations: 5.375 kB / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.8347, allocations: 4.781 kB / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.397e-05/0.8347, allocations: 95.17 kB / 1.358 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003188/0.835, allocations: 55.08 kB / 1.358 GB, free: 13.11 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.0003523/0.8354, allocations: 166.1 kB / 1.358 GB, free: 13 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001358/0.8356, allocations: 50.5 kB / 1.358 GB, free: 13 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.8356, allocations: 4.125 kB / 1.358 GB, free: 13 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.995e-05/0.8356, allocations: 29.36 kB / 1.358 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001816/0.8358, allocations: 12.41 kB / 1.358 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003015/0.8361, allocations: 104.7 kB / 1.358 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.8363, allocations: 0.7024 MB / 1.359 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of SimCode: time 2.81e-07/0.8363, allocations: 0 / 1.359 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of Templates: time 0.004472/0.8408, allocations: 1.633 MB / 1.36 GB, free: 12.05 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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