Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.378/2.378, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001047/0.001047, allocations: 176 kB / 0.4902 GB, free: 2.215 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.605/1.605, allocations: 223.2 MB / 0.7992 GB, free: 15.7 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.0009831/0.0009828, allocations: 96.2 kB / 0.9396 GB, free: 2.836 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003816/0.0003815, allocations: 8.688 kB / 1.09 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3359, allocations: 143 MB / 1.229 GB, free: 85.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2119/0.5478, allocations: 152 MB / 1.378 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.5481, allocations: 83.95 kB / 1.378 GB, free: 13.16 MB / 0.8855 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 - DAE generated: time 0.01071/0.5588, allocations: 3.038 MB / 1.381 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.665e-06/0.5589, allocations: 0 / 1.381 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.312e-05/0.5589, allocations: 8 kB / 1.381 GB, free: 10.11 MB / 0.8855 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.0007458/0.5596, allocations: 417.8 kB / 1.381 GB, free: 9.645 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.533e-05/0.5597, allocations: 8.562 kB / 1.381 GB, free: 9.637 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.453e-05/0.5598, allocations: 11.86 kB / 1.381 GB, free: 9.625 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001818/0.56, allocations: 167 kB / 1.381 GB, free: 9.422 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.432e-05/0.56, allocations: 7.984 kB / 1.381 GB, free: 9.414 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.428e-05/0.56, allocations: 4 kB / 1.381 GB, free: 9.41 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.5603, allocations: 77.58 kB / 1.381 GB, free: 9.328 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.5603, allocations: 0 / 1.381 GB, free: 9.328 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.664e-05/0.5604, allocations: 8 kB / 1.381 GB, free: 9.32 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.5604, allocations: 3.938 kB / 1.381 GB, free: 9.316 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.5605, allocations: 43.95 kB / 1.381 GB, free: 9.273 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008139/0.5614, allocations: 320.7 kB / 1.382 GB, free: 8.91 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.5615, allocations: 46.56 kB / 1.382 GB, free: 8.855 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.314e-05/0.5616, allocations: 4 kB / 1.382 GB, free: 8.852 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002346/0.5618, allocations: 79.5 kB / 1.382 GB, free: 8.762 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.5618, allocations: 0 / 1.382 GB, free: 8.762 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004993/0.5623, allocations: 161.5 kB / 1.382 GB, free: 8.598 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.031e-05/0.5624, allocations: 59.39 kB / 1.382 GB, free: 8.527 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.5625, allocations: 109 kB / 1.382 GB, free: 8.414 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.5625, allocations: 25.7 kB / 1.382 GB, free: 8.383 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.006e-05/0.5626, allocations: 96.23 kB / 1.382 GB, free: 8.281 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.793e-05/0.5627, allocations: 19.73 kB / 1.382 GB, free: 8.262 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.738e-06/0.5627, allocations: 4 kB / 1.382 GB, free: 8.258 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001811/0.5629, allocations: 311 kB / 1.383 GB, free: 7.945 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.561e-05/0.563, allocations: 35.98 kB / 1.383 GB, free: 7.91 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.5631, allocations: 54.92 kB / 1.383 GB, free: 7.848 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.994e-05/0.5632, allocations: 31.98 kB / 1.383 GB, free: 7.816 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.5632, allocations: 4 kB / 1.383 GB, free: 7.812 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002593/0.5635, allocations: 117.6 kB / 1.383 GB, free: 7.691 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/0.5635, allocations: 13.33 kB / 1.383 GB, free: 7.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.5636, allocations: 0 / 1.383 GB, free: 7.68 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/0.5636, allocations: 4 kB / 1.383 GB, free: 7.676 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.5637, allocations: 8 kB / 1.383 GB, free: 7.668 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.5637, allocations: 3.953 kB / 1.383 GB, free: 7.664 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.491e-05/0.5638, allocations: 19.95 kB / 1.383 GB, free: 7.645 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.5638, allocations: 4 kB / 1.383 GB, free: 7.641 MB / 0.8855 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 () * Number of clocked 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 0.0001317/0.564, allocations: 117.8 kB / 1.383 GB, free: 7.516 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.408e-05/0.564, allocations: 7.906 kB / 1.383 GB, free: 7.508 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.438e-05/0.564, allocations: 16.36 kB / 1.383 GB, free: 7.492 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.5641, allocations: 0 / 1.383 GB, free: 7.492 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.5641, allocations: 3.938 kB / 1.383 GB, free: 7.488 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.5641, allocations: 7.953 kB / 1.383 GB, free: 7.48 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005653/0.5647, allocations: 370.5 kB / 1.383 GB, free: 7.062 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.5647, allocations: 4 kB / 1.383 GB, free: 7.059 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.019e-05/0.5647, allocations: 4 kB / 1.383 GB, free: 7.055 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.5647, allocations: 0 / 1.383 GB, free: 7.055 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.5647, allocations: 7.984 kB / 1.383 GB, free: 7.047 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.5648, allocations: 7.953 kB / 1.383 GB, free: 7.039 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.5648, allocations: 3.938 kB / 1.383 GB, free: 7.035 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003243/0.5651, allocations: 215.3 kB / 1.384 GB, free: 6.809 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.556e-05/0.5652, allocations: 81.11 kB / 1.384 GB, free: 6.711 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.5652, allocations: 3.984 kB / 1.384 GB, free: 6.707 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.113e-05/0.5653, allocations: 16 kB / 1.384 GB, free: 6.691 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.557e-05/0.5654, allocations: 11.94 kB / 1.384 GB, free: 6.68 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.5654, allocations: 0 / 1.384 GB, free: 6.68 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.679e-05/0.5654, allocations: 91.27 kB / 1.384 GB, free: 6.59 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5655, allocations: 0 / 1.384 GB, free: 6.59 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003175/0.5658, allocations: 51.94 kB / 1.384 GB, free: 6.539 MB / 0.8855 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 () * Number of clocked 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.0004302/0.5662, allocations: 174.8 kB / 1.384 GB, free: 6.371 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002453/0.5665, allocations: 75.88 kB / 1.384 GB, free: 6.297 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5665, allocations: 0 / 1.384 GB, free: 6.297 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.5666, allocations: 44.05 kB / 1.384 GB, free: 6.254 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001798/0.5668, allocations: 17.98 kB / 1.384 GB, free: 6.238 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004106/0.5672, allocations: 197.2 kB / 1.384 GB, free: 6.016 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.5675, allocations: 0.6965 MB / 1.385 GB, free: 5.293 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.304e-05/0.5676, allocations: 4.188 kB / 1.385 GB, free: 5.289 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.711e-05/0.5676, allocations: 15.42 kB / 1.385 GB, free: 5.273 MB / 0.8855 GB Notification: Performance of SimCode: time 2.3e-07/0.5676, allocations: 0 / 1.385 GB, free: 5.273 MB / 0.8855 GB Notification: Performance of Templates: time 0.004656/0.5723, allocations: 1.51 MB / 1.387 GB, free: 3.766 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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