Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,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.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_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.403/2.403, allocations: 387.1 MB / 399.7 MB, free: 9.48 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.001383/0.001383, allocations: 168.9 kB / 492.3 MB, free: 0.6172 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.725/1.725, allocations: 221.3 MB / 0.7871 GB, free: 12.97 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.0008914/0.0008909, allocations: 99.88 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.981e-05/2.984e-05, allocations: 6.422 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2967, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9829/1.28, allocations: 151.2 MB / 1.36 GB, free: 19.12 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/1.28, allocations: 83.11 kB / 1.36 GB, free: 19.12 MB / 0.823 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 - DAE generated: time 0.008558/1.289, allocations: 3.017 MB / 1.363 GB, free: 34.66 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.442e-06/1.289, allocations: 0 / 1.363 GB, free: 34.66 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.674e-06/1.289, allocations: 0 / 1.363 GB, free: 34.66 MB / 0.8386 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.0004121/1.289, allocations: 417.1 kB / 1.363 GB, free: 34.25 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.905e-05/1.289, allocations: 7.719 kB / 1.363 GB, free: 34.25 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.884e-05/1.289, allocations: 10.41 kB / 1.363 GB, free: 34.25 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.61e-05/1.289, allocations: 174.6 kB / 1.364 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/1.289, allocations: 5.344 kB / 1.364 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/1.289, allocations: 3.844 kB / 1.364 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001388/1.289, allocations: 59.78 kB / 1.364 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/1.289, allocations: 3.938 kB / 1.364 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/1.289, allocations: 5.5 kB / 1.364 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/1.289, allocations: 7.75 kB / 1.364 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.143e-05/1.29, allocations: 23.64 kB / 1.364 GB, free: 34 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005519/1.29, allocations: 309.1 kB / 1.364 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.628e-05/1.29, allocations: 44.2 kB / 1.364 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.409e-05/1.29, allocations: 24.47 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/1.29, allocations: 3.938 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001125/1.29, allocations: 69.83 kB / 1.364 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/1.29, allocations: 0 / 1.364 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.000216/1.291, allocations: 107.1 kB / 1.364 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/1.291, allocations: 55.36 kB / 1.364 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.394e-05/1.291, allocations: 118.6 kB / 1.364 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/1.291, allocations: 29.58 kB / 1.364 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.087e-05/1.291, allocations: 91.62 kB / 1.365 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.671e-05/1.291, allocations: 16.48 kB / 1.365 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.111e-06/1.291, allocations: 0 / 1.365 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.854e-05/1.291, allocations: 320.9 kB / 1.365 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.819e-05/1.291, allocations: 22.47 kB / 1.365 GB, free: 33 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.705e-05/1.291, allocations: 41.56 kB / 1.365 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.216e-05/1.291, allocations: 33.14 kB / 1.365 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.291, allocations: 0 / 1.365 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001365/1.291, allocations: 91.95 kB / 1.365 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/1.291, allocations: 9.094 kB / 1.365 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/1.291, allocations: 0 / 1.365 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/1.291, allocations: 0 / 1.365 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.206e-05/1.291, allocations: 18.17 kB / 1.365 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/1.291, allocations: 4 kB / 1.365 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.206e-05/1.291, allocations: 12.8 kB / 1.365 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/1.292, allocations: 9.797 kB / 1.365 GB, free: 32.92 MB / 0.8386 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.809e-05/1.292, allocations: 107.9 kB / 1.365 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.458e-05/1.292, allocations: 11.8 kB / 1.365 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.889e-05/1.292, allocations: 9.297 kB / 1.365 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/1.292, allocations: 3.906 kB / 1.365 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/1.292, allocations: 4 kB / 1.365 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/1.292, allocations: 0 / 1.365 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003227/1.292, allocations: 369.1 kB / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/1.292, allocations: 0 / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.074e-05/1.292, allocations: 5.391 kB / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/1.292, allocations: 1.125 kB / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/1.292, allocations: 0.5625 kB / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/1.292, allocations: 7.906 kB / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/1.292, allocations: 3.953 kB / 1.366 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001912/1.292, allocations: 199 kB / 1.366 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.454e-05/1.292, allocations: 77.11 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.951e-05/1.292, allocations: 5.469 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.258e-05/1.292, allocations: 4.891 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-05/1.292, allocations: 9.25 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/1.292, allocations: 8.891 kB / 1.366 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.444e-05/1.293, allocations: 97.31 kB / 1.366 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.293, allocations: 0 / 1.366 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002755/1.293, allocations: 52.52 kB / 1.366 GB, free: 32.15 MB / 0.8386 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.00033/1.293, allocations: 161.8 kB / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000135/1.293, allocations: 63.28 kB / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/1.293, allocations: 4.125 kB / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.499e-05/1.293, allocations: 27.53 kB / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/1.294, allocations: 14.34 kB / 1.366 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002455/1.294, allocations: 98.89 kB / 1.366 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/1.294, allocations: 0.6938 MB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.775e-05/1.294, allocations: 1.609 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.429e-05/1.294, allocations: 20.59 kB / 1.367 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of SimCode: time 3.41e-07/1.294, allocations: 0 / 1.367 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of Templates: time 0.003537/1.298, allocations: 1.534 MB / 1.369 GB, free: 31.11 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","../files/Buildings_9_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