Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth") [: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.186/1.186, allocations: 249.4 MB / 256.7 MB, free: 6.992 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.0009943/0.0009943, allocations: 184.3 kB / 316 MB, free: 3.523 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.024/1.024, allocations: 205.2 MB / 0.5667 GB, free: 15.59 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.0007968/0.0007968, allocations: 88 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.093e-06/7.113e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1421, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4021/0.5442, allocations: 134 MB / 1.015 GB, free: 4.785 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001853/0.5444, allocations: 85.03 kB / 1.015 GB, free: 4.738 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.007912/0.5523, allocations: 2.638 MB / 1.018 GB, free: 2.543 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.5524, allocations: 0 / 1.018 GB, free: 2.543 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004253/0.5528, allocations: 421.5 kB / 1.018 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.5528, allocations: 12.03 kB / 1.018 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.652e-05/0.5529, allocations: 7.906 kB / 1.018 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.553, allocations: 174.9 kB / 1.019 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.241e-05/0.553, allocations: 4 kB / 1.019 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.553, allocations: 7.984 kB / 1.019 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.321e-05/0.5531, allocations: 22.38 kB / 1.019 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.949e-05/0.5532, allocations: 56.22 kB / 1.019 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.5532, allocations: 0.875 kB / 1.019 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.5533, allocations: 3.906 kB / 1.019 GB, free: 1.781 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.5533, allocations: 3.938 kB / 1.019 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003794/0.5537, allocations: 276 kB / 1.019 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.273e-05/0.5537, allocations: 40.77 kB / 1.019 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.801e-05/0.5538, allocations: 20.3 kB / 1.019 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.5538, allocations: 8 kB / 1.019 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.03e-05/0.5539, allocations: 69.39 kB / 1.019 GB, free: 1.355 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.435e-06/0.5539, allocations: 0 / 1.019 GB, free: 1.355 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001982/0.5541, allocations: 83.45 kB / 1.019 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.5541, allocations: 51.41 kB / 1.019 GB, free: 1.219 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.466e-05/0.5542, allocations: 114 kB / 1.019 GB, free: 1.109 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.5542, allocations: 29.7 kB / 1.019 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.665e-05/0.5543, allocations: 87.45 kB / 1.019 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.5543, allocations: 19.73 kB / 1.019 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-06/0.5543, allocations: 0 / 1.019 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.5544, allocations: 318.3 kB / 1.02 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.562e-05/0.5545, allocations: 19.06 kB / 1.02 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.597e-05/0.5545, allocations: 40.88 kB / 1.02 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.586e-05/0.5546, allocations: 19.8 kB / 1.02 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.5546, allocations: 4 kB / 1.02 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001559/0.5548, allocations: 96.39 kB / 1.02 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/0.5548, allocations: 4.75 kB / 1.02 GB, free: 500 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.5548, allocations: 4 kB / 1.02 GB, free: 496 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.5548, allocations: 6.984 kB / 1.02 GB, free: 492 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.229e-05/0.5549, allocations: 11.94 kB / 1.02 GB, free: 480 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.5549, allocations: 4 kB / 1.02 GB, free: 476 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.704e-05/0.555, allocations: 12.05 kB / 1.02 GB, free: 464 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.555, allocations: 4 kB / 1.02 GB, free: 460 kB / 0.6355 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.388e-05/0.5551, allocations: 108.6 kB / 1.02 GB, free: 348 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.453e-05/0.5551, allocations: 11.84 kB / 1.02 GB, free: 336 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.594e-05/0.5551, allocations: 8.375 kB / 1.02 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.5551, allocations: 0 / 1.02 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.5551, allocations: 3.984 kB / 1.02 GB, free: 320 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.5551, allocations: 0 / 1.02 GB, free: 320 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002906/0.5554, allocations: 326.6 kB / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.5555, allocations: 0 / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.482e-05/0.5555, allocations: 4 kB / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.5555, allocations: 0 / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.5555, allocations: 3.984 kB / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5555, allocations: 80 / 1.02 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.5555, allocations: 7.984 kB / 1.02 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001645/0.5557, allocations: 181.4 kB / 1.021 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 2.943e-05/0.5557, allocations: 81.02 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.5558, allocations: 4 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.244e-05/0.5559, allocations: 4 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.133e-05/0.5559, allocations: 11.02 kB / 1.021 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-06/0.5559, allocations: 4 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.392e-05/0.556, allocations: 90.98 kB / 1.021 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002608/0.5562, allocations: 50.94 kB / 1.021 GB, free: 15.53 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: 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.0002744/0.5565, allocations: 168.4 kB / 1.021 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001258/0.5567, allocations: 56.42 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.5567, allocations: 0 / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.903e-05/0.5567, allocations: 27.25 kB / 1.021 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001564/0.5569, allocations: 11.3 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002594/0.5572, allocations: 97.88 kB / 1.021 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.5574, allocations: 0.7036 MB / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of SimCode: time 2.51e-07/0.5574, allocations: 0 / 1.022 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of Templates: time 0.003577/0.561, allocations: 1.636 MB / 1.023 GB, free: 12.84 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.freqHz,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