Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,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.Zhang2012WindowsWest") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,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.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.329/2.329, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001075/0.001075, allocations: 186.9 kB / 0.4902 GB, free: 2.258 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.642/1.642, 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.000976/0.0009761, allocations: 106 kB / 0.9396 GB, free: 2.863 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004267/0.0004267, allocations: 9.688 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.32, allocations: 143 MB / 1.229 GB, free: 85.51 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.221/0.5411, allocations: 152 MB / 1.378 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.5414, allocations: 87.94 kB / 1.378 GB, free: 13.2 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.009531/0.551, allocations: 3.038 MB / 1.381 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.894e-06/0.551, allocations: 4 kB / 1.381 GB, free: 10.15 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.553e-06/0.551, allocations: 0 / 1.381 GB, free: 10.15 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.0005663/0.5516, allocations: 424.7 kB / 1.381 GB, free: 9.684 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.5516, allocations: 8.562 kB / 1.381 GB, free: 9.676 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.202e-05/0.5517, allocations: 11.86 kB / 1.381 GB, free: 9.664 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.5518, allocations: 171 kB / 1.381 GB, free: 9.457 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.115e-05/0.5519, allocations: 4 kB / 1.381 GB, free: 9.453 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.099e-05/0.5519, allocations: 8 kB / 1.381 GB, free: 9.445 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.5521, allocations: 69.64 kB / 1.381 GB, free: 9.371 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.5521, allocations: 0 / 1.381 GB, free: 9.371 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.5521, allocations: 0 / 1.381 GB, free: 9.371 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.5522, allocations: 7.938 kB / 1.381 GB, free: 9.363 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001301/0.5523, allocations: 43.97 kB / 1.381 GB, free: 9.32 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006577/0.553, allocations: 312.8 kB / 1.382 GB, free: 8.965 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.5531, allocations: 54.5 kB / 1.382 GB, free: 8.902 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.5531, allocations: 8.062 kB / 1.382 GB, free: 8.895 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001744/0.5533, allocations: 75.38 kB / 1.382 GB, free: 8.809 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.5533, allocations: 4 kB / 1.382 GB, free: 8.805 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004241/0.5538, allocations: 161.5 kB / 1.382 GB, free: 8.641 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.5538, allocations: 51.41 kB / 1.382 GB, free: 8.578 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.732e-05/0.5539, allocations: 109 kB / 1.382 GB, free: 8.465 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.306e-05/0.554, allocations: 29.7 kB / 1.382 GB, free: 8.43 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.255e-05/0.554, allocations: 92.23 kB / 1.382 GB, free: 8.332 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.5541, allocations: 23.73 kB / 1.382 GB, free: 8.309 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-06/0.5541, allocations: 0 / 1.382 GB, free: 8.309 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.5543, allocations: 319 kB / 1.383 GB, free: 7.988 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.013e-05/0.5544, allocations: 31.97 kB / 1.383 GB, free: 7.957 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.171e-05/0.5544, allocations: 51 kB / 1.383 GB, free: 7.898 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.615e-05/0.5546, allocations: 35.98 kB / 1.383 GB, free: 7.863 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.5546, allocations: 0 / 1.383 GB, free: 7.863 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002541/0.5548, allocations: 121.6 kB / 1.383 GB, free: 7.738 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.5549, allocations: 4 kB / 1.383 GB, free: 7.734 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.5549, allocations: 0 / 1.383 GB, free: 7.734 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.5549, allocations: 4 kB / 1.383 GB, free: 7.73 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.555, allocations: 15.92 kB / 1.383 GB, free: 7.715 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/0.555, allocations: 8.344 kB / 1.383 GB, free: 7.707 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.938e-05/0.5551, allocations: 11.91 kB / 1.383 GB, free: 7.695 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/0.5551, allocations: 8 kB / 1.383 GB, free: 7.688 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.0001035/0.5552, allocations: 121.8 kB / 1.383 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.749e-05/0.5552, allocations: 11.89 kB / 1.383 GB, free: 7.547 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.106e-05/0.5553, allocations: 8.375 kB / 1.383 GB, free: 7.539 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.5553, allocations: 0 / 1.383 GB, free: 7.539 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.5553, allocations: 0 / 1.383 GB, free: 7.539 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.5553, allocations: 3.953 kB / 1.383 GB, free: 7.535 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004844/0.5558, allocations: 390.5 kB / 1.383 GB, free: 7.098 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.5558, allocations: 0 / 1.383 GB, free: 7.098 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.991e-05/0.5559, allocations: 4 kB / 1.383 GB, free: 7.094 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.5559, allocations: 3.984 kB / 1.383 GB, free: 7.09 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.5559, allocations: 0 / 1.383 GB, free: 7.09 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.5559, allocations: 7.953 kB / 1.383 GB, free: 7.082 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.5559, allocations: 0 / 1.383 GB, free: 7.082 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000295/0.5562, allocations: 215.4 kB / 1.384 GB, free: 6.855 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.794e-05/0.5563, allocations: 89.08 kB / 1.384 GB, free: 6.75 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.5563, allocations: 0 / 1.384 GB, free: 6.75 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.649e-05/0.5564, allocations: 4 kB / 1.384 GB, free: 6.746 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.883e-05/0.5564, allocations: 11.94 kB / 1.384 GB, free: 6.734 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.5565, allocations: 8 kB / 1.384 GB, free: 6.727 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.59e-05/0.5565, allocations: 103.4 kB / 1.384 GB, free: 6.625 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5565, allocations: 0 / 1.384 GB, free: 6.625 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003063/0.5568, allocations: 47.94 kB / 1.384 GB, free: 6.578 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.000386/0.5572, allocations: 167.7 kB / 1.384 GB, free: 6.418 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002487/0.5575, allocations: 79.91 kB / 1.384 GB, free: 6.34 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.5575, allocations: 0 / 1.384 GB, free: 6.34 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.755e-05/0.5576, allocations: 35.97 kB / 1.384 GB, free: 6.305 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001739/0.5578, allocations: 8.328 kB / 1.384 GB, free: 6.297 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004368/0.5582, allocations: 209.2 kB / 1.384 GB, free: 6.062 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.5585, allocations: 0.6887 MB / 1.385 GB, free: 5.348 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.947e-05/0.5586, allocations: 8.172 kB / 1.385 GB, free: 5.34 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.062e-05/0.5586, allocations: 11.44 kB / 1.385 GB, free: 5.328 MB / 0.8855 GB Notification: Performance of SimCode: time 2.3e-07/0.5586, allocations: 4 kB / 1.385 GB, free: 5.324 MB / 0.8855 GB Notification: Performance of Templates: time 0.004145/0.5627, allocations: 1.526 MB / 1.387 GB, free: 3.801 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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