Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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.Haldi2008WindowsTOut,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.Haldi2008WindowsTOut") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut,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.Haldi2008WindowsTOut") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.364/1.364, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 182.4 kB / 326.5 MB, free: 2.242 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.811/1.811, allocations: 205.4 MB / 0.5775 GB, free: 20.17 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.0008453/0.0008453, allocations: 99.59 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003298/0.0003299, allocations: 11.97 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.191, allocations: 106.3 MB / 0.9001 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1577/0.3487, allocations: 133.7 MB / 1.031 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.349, allocations: 91.92 kB / 1.031 GB, free: 9.957 MB / 0.6823 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 - DAE generated: time 0.008665/0.3577, allocations: 2.976 MB / 1.034 GB, free: 6.977 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.364e-06/0.3578, allocations: 3.938 kB / 1.034 GB, free: 6.973 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.3578, allocations: 4 kB / 1.034 GB, free: 6.969 MB / 0.6823 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.0005262/0.3583, allocations: 428.7 kB / 1.034 GB, free: 6.496 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.3583, allocations: 8.031 kB / 1.034 GB, free: 6.488 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.987e-05/0.3584, allocations: 11.89 kB / 1.034 GB, free: 6.477 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.3585, allocations: 167 kB / 1.034 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.017e-05/0.3586, allocations: 7.984 kB / 1.034 GB, free: 6.266 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.862e-05/0.3586, allocations: 4 kB / 1.034 GB, free: 6.262 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001754/0.3588, allocations: 65.66 kB / 1.034 GB, free: 6.191 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.3588, allocations: 3.938 kB / 1.034 GB, free: 6.188 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.3588, allocations: 12 kB / 1.034 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.3588, allocations: 0 / 1.034 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.3589, allocations: 43.91 kB / 1.034 GB, free: 6.133 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006007/0.3596, allocations: 324.6 kB / 1.035 GB, free: 5.766 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.3597, allocations: 54.55 kB / 1.035 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.3597, allocations: 4 kB / 1.035 GB, free: 5.699 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.3599, allocations: 83.44 kB / 1.035 GB, free: 5.605 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.3599, allocations: 0 / 1.035 GB, free: 5.605 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0003929/0.3603, allocations: 145.5 kB / 1.035 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.3604, allocations: 59.36 kB / 1.035 GB, free: 5.387 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.107e-05/0.3605, allocations: 112.9 kB / 1.035 GB, free: 5.27 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.3605, allocations: 29.7 kB / 1.035 GB, free: 5.234 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.535e-05/0.3606, allocations: 92.31 kB / 1.035 GB, free: 5.137 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.3606, allocations: 19.88 kB / 1.035 GB, free: 5.117 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-06/0.3606, allocations: 0 / 1.035 GB, free: 5.117 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.3607, allocations: 318.8 kB / 1.036 GB, free: 4.797 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.963e-05/0.3608, allocations: 31.98 kB / 1.036 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.806e-05/0.3609, allocations: 50.5 kB / 1.036 GB, free: 4.707 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.718e-05/0.361, allocations: 33.86 kB / 1.036 GB, free: 4.676 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.361, allocations: 0 / 1.036 GB, free: 4.676 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002266/0.3613, allocations: 125.5 kB / 1.036 GB, free: 4.547 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.3613, allocations: 4 kB / 1.036 GB, free: 4.543 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3613, allocations: 0 / 1.036 GB, free: 4.543 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.3613, allocations: 7.938 kB / 1.036 GB, free: 4.535 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.3614, allocations: 11.98 kB / 1.036 GB, free: 4.523 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.3614, allocations: 0 / 1.036 GB, free: 4.523 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.493e-05/0.3615, allocations: 15.89 kB / 1.036 GB, free: 4.508 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.3615, allocations: 7.984 kB / 1.036 GB, free: 4.5 MB / 0.6823 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 9.232e-05/0.3616, allocations: 121.8 kB / 1.036 GB, free: 4.371 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.43e-05/0.3617, allocations: 7.906 kB / 1.036 GB, free: 4.363 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.798e-05/0.3617, allocations: 12.38 kB / 1.036 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-06/0.3617, allocations: 0 / 1.036 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3617, allocations: 4 kB / 1.036 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3617, allocations: 0 / 1.036 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004206/0.3621, allocations: 386.4 kB / 1.036 GB, free: 3.914 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3622, allocations: 4 kB / 1.036 GB, free: 3.91 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.099e-05/0.3622, allocations: 11.92 kB / 1.036 GB, free: 3.898 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3622, allocations: 0 / 1.036 GB, free: 3.898 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.3622, allocations: 0 / 1.036 GB, free: 3.898 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3622, allocations: 0 / 1.036 GB, free: 3.898 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3622, allocations: 3.953 kB / 1.036 GB, free: 3.895 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.3625, allocations: 219.4 kB / 1.037 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.3626, allocations: 85.02 kB / 1.037 GB, free: 3.562 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.3626, allocations: 0 / 1.037 GB, free: 3.562 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.454e-05/0.3627, allocations: 4 kB / 1.037 GB, free: 3.559 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.03e-05/0.3628, allocations: 15.97 kB / 1.037 GB, free: 3.543 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.3628, allocations: 3.953 kB / 1.037 GB, free: 3.539 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.08e-05/0.3628, allocations: 95.27 kB / 1.037 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3629, allocations: 0 / 1.037 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003258/0.3632, allocations: 55.92 kB / 1.037 GB, free: 3.391 MB / 0.6823 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.0004204/0.3636, allocations: 175.5 kB / 1.037 GB, free: 3.227 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002376/0.3639, allocations: 75.95 kB / 1.037 GB, free: 3.152 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.3639, allocations: 0 / 1.037 GB, free: 3.152 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.364, allocations: 44.06 kB / 1.037 GB, free: 3.109 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001804/0.3642, allocations: 8 kB / 1.037 GB, free: 3.102 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004227/0.3646, allocations: 205.2 kB / 1.037 GB, free: 2.863 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.3649, allocations: 0.6892 MB / 1.038 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.9e-05/0.3649, allocations: 8.172 kB / 1.038 GB, free: 2.141 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.485e-05/0.365, allocations: 11.44 kB / 1.038 GB, free: 2.133 MB / 0.6823 GB Notification: Performance of SimCode: time 3.3e-07/0.365, allocations: 4 kB / 1.038 GB, free: 2.129 MB / 0.6823 GB Notification: Performance of Templates: time 0.003779/0.3688, allocations: 1.521 MB / 1.04 GB, free: 0.6211 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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