Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,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.Herkel2008WindowsSmall") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.503/1.503, allocations: 249.3 MB / 261.8 MB, free: 5.914 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.001014/0.001014, allocations: 186.1 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.716/1.716, allocations: 205.1 MB / 0.572 GB, free: 10.61 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.0008273/0.0008273, allocations: 82.53 kB / 0.6764 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.816e-05/2.818e-05, allocations: 3.984 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2363, allocations: 106.3 MB / 0.8918 GB, free: 6.645 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7803/1.017, allocations: 133.6 MB / 1.022 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/1.017, allocations: 84.12 kB / 1.022 GB, free: 1.023 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 - DAE generated: time 0.008827/1.026, allocations: 2.973 MB / 1.025 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.483e-06/1.026, allocations: 0 / 1.025 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.426e-06/1.026, allocations: 4 kB / 1.025 GB, free: 14.46 MB / 0.6511 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.0005164/1.026, allocations: 410.8 kB / 1.026 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/1.026, allocations: 15.97 kB / 1.026 GB, free: 14 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.063e-05/1.026, allocations: 7.906 kB / 1.026 GB, free: 14 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/1.027, allocations: 170.9 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.832e-05/1.027, allocations: 4 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/1.027, allocations: 7.562 kB / 1.026 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001467/1.027, allocations: 56.73 kB / 1.026 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.056e-06/1.027, allocations: 0 / 1.026 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/1.027, allocations: 3.312 kB / 1.026 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/1.027, allocations: 0 / 1.026 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.897e-05/1.027, allocations: 30.86 kB / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006355/1.028, allocations: 316.1 kB / 1.026 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 8.629e-05/1.028, allocations: 40.45 kB / 1.026 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.951e-05/1.028, allocations: 23.98 kB / 1.026 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/1.028, allocations: 7.984 kB / 1.026 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001355/1.028, allocations: 73.83 kB / 1.026 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/1.028, allocations: 0 / 1.026 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.0002378/1.028, allocations: 99.31 kB / 1.026 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/1.028, allocations: 59.36 kB / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.665e-05/1.028, allocations: 114.4 kB / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/1.028, allocations: 29.7 kB / 1.027 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.374e-05/1.028, allocations: 91.58 kB / 1.027 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/1.028, allocations: 19.81 kB / 1.027 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/1.028, allocations: 3.688 kB / 1.027 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000111/1.029, allocations: 322.1 kB / 1.027 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.12e-05/1.029, allocations: 11.81 kB / 1.027 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.446e-05/1.029, allocations: 52.25 kB / 1.027 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.309e-05/1.029, allocations: 22.94 kB / 1.027 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/1.029, allocations: 0 / 1.027 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001539/1.029, allocations: 101.5 kB / 1.027 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/1.029, allocations: 4 kB / 1.027 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/1.029, allocations: 0 / 1.027 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/1.029, allocations: 0 / 1.027 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.363e-05/1.029, allocations: 15.98 kB / 1.027 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/1.029, allocations: 0 / 1.027 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.394e-05/1.029, allocations: 15.23 kB / 1.027 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/1.029, allocations: 12.05 kB / 1.027 GB, free: 12.29 MB / 0.6511 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.965e-05/1.029, allocations: 115.5 kB / 1.027 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/1.029, allocations: 4 kB / 1.027 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/1.029, allocations: 7.688 kB / 1.027 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/1.029, allocations: 0 / 1.027 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.029, allocations: 4 kB / 1.027 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/1.029, allocations: 0 / 1.027 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003519/1.03, allocations: 372.9 kB / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/1.03, allocations: 0 / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.406e-05/1.03, allocations: 7.984 kB / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/1.03, allocations: 3.984 kB / 1.028 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/1.03, allocations: 11.5 kB / 1.028 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/1.03, allocations: 0 / 1.028 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.03, allocations: 3.953 kB / 1.028 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000195/1.03, allocations: 187.8 kB / 1.028 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.542e-05/1.03, allocations: 89 kB / 1.028 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/1.03, allocations: 0 / 1.028 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.454e-05/1.03, allocations: 4 kB / 1.028 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.368e-05/1.03, allocations: 11.94 kB / 1.028 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/1.03, allocations: 4 kB / 1.028 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.604e-05/1.03, allocations: 101.1 kB / 1.028 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.03, allocations: 3.938 kB / 1.028 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003014/1.031, allocations: 47.44 kB / 1.028 GB, free: 11.31 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.0003549/1.031, allocations: 163.1 kB / 1.028 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000153/1.031, allocations: 70.14 kB / 1.028 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/1.031, allocations: 0 / 1.028 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.401e-05/1.031, allocations: 27.12 kB / 1.029 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001753/1.031, allocations: 4.109 kB / 1.029 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000268/1.032, allocations: 98.91 kB / 1.029 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/1.032, allocations: 0.6965 MB / 1.029 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.64e-05/1.032, allocations: 4.188 kB / 1.029 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.413e-05/1.032, allocations: 7.438 kB / 1.029 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of SimCode: time 2.41e-07/1.032, allocations: 0 / 1.029 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of Templates: time 0.003976/1.036, allocations: 1.541 MB / 1.031 GB, free: 8.715 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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