Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.Herkel2008WindowsSmall,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.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_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.422/2.422, allocations: 393.5 MB / 408.4 MB, free: 11 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.001145/0.001145, allocations: 183.9 kB / 0.4902 GB, free: 2.293 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.63/1.63, allocations: 223.1 MB / 0.7992 GB, free: 15.68 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.0008609/0.000861, allocations: 99.08 kB / 0.9396 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004203/0.0004205, allocations: 7.688 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2944, allocations: 143 MB / 1.229 GB, free: 85.48 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2016/0.496, allocations: 152 MB / 1.378 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002892/0.4964, allocations: 83.89 kB / 1.378 GB, free: 13.18 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.009791/0.5062, allocations: 3.046 MB / 1.381 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.465e-06/0.5062, allocations: 4 kB / 1.381 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 4.002e-05/0.5063, allocations: 0 / 1.381 GB, free: 10.12 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.0006179/0.5069, allocations: 420.7 kB / 1.381 GB, free: 9.656 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.507, allocations: 8.562 kB / 1.381 GB, free: 9.648 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.263e-05/0.507, allocations: 11.86 kB / 1.381 GB, free: 9.637 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.5072, allocations: 167.1 kB / 1.381 GB, free: 9.434 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.398e-05/0.5072, allocations: 4 kB / 1.381 GB, free: 9.43 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.086e-05/0.5072, allocations: 12 kB / 1.381 GB, free: 9.418 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000191/0.5074, allocations: 65.66 kB / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.5075, allocations: 0 / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.5075, allocations: 0 / 1.381 GB, free: 9.348 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.5075, allocations: 3.938 kB / 1.381 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.5076, allocations: 47.91 kB / 1.381 GB, free: 9.297 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006466/0.5083, allocations: 320.8 kB / 1.382 GB, free: 8.934 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.5084, allocations: 46.56 kB / 1.382 GB, free: 8.879 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.5085, allocations: 4 kB / 1.382 GB, free: 8.875 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001718/0.5086, allocations: 83.44 kB / 1.382 GB, free: 8.781 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.924e-06/0.5086, allocations: 0 / 1.382 GB, free: 8.781 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004475/0.5091, allocations: 153.6 kB / 1.382 GB, free: 8.625 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.5092, allocations: 59.39 kB / 1.382 GB, free: 8.555 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.5093, allocations: 105 kB / 1.382 GB, free: 8.445 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.5093, allocations: 33.7 kB / 1.382 GB, free: 8.406 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.299e-05/0.5094, allocations: 88.23 kB / 1.382 GB, free: 8.312 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.949e-05/0.5094, allocations: 23.73 kB / 1.382 GB, free: 8.289 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.592e-06/0.5094, allocations: 0 / 1.382 GB, free: 8.289 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.5096, allocations: 319 kB / 1.383 GB, free: 7.969 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.333e-05/0.5097, allocations: 31.98 kB / 1.383 GB, free: 7.938 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.5098, allocations: 54.92 kB / 1.383 GB, free: 7.875 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.5099, allocations: 35.98 kB / 1.383 GB, free: 7.84 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.5099, allocations: 4 kB / 1.383 GB, free: 7.836 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002637/0.5102, allocations: 117.9 kB / 1.383 GB, free: 7.715 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.5102, allocations: 4 kB / 1.383 GB, free: 7.711 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.5102, allocations: 4 kB / 1.383 GB, free: 7.707 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.5102, allocations: 0 / 1.383 GB, free: 7.707 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.5103, allocations: 15.98 kB / 1.383 GB, free: 7.691 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.5104, allocations: 15.95 kB / 1.383 GB, free: 7.676 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.29e-05/0.5104, allocations: 7.906 kB / 1.383 GB, free: 7.668 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.5105, allocations: 4 kB / 1.383 GB, free: 7.664 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.0001049/0.5106, allocations: 128.1 kB / 1.383 GB, free: 7.531 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.88e-05/0.5106, allocations: 11.89 kB / 1.383 GB, free: 7.52 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.991e-05/0.5106, allocations: 8.359 kB / 1.383 GB, free: 7.512 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.5107, allocations: 0 / 1.383 GB, free: 7.512 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.5107, allocations: 8 kB / 1.383 GB, free: 7.504 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.5107, allocations: 3.953 kB / 1.383 GB, free: 7.5 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004532/0.5111, allocations: 378.5 kB / 1.383 GB, free: 7.074 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.5112, allocations: 0 / 1.383 GB, free: 7.074 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.616e-05/0.5112, allocations: 7.938 kB / 1.383 GB, free: 7.066 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.5112, allocations: 0 / 1.383 GB, free: 7.066 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.5112, allocations: 11.98 kB / 1.383 GB, free: 7.055 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.5112, allocations: 3.953 kB / 1.383 GB, free: 7.051 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.5113, allocations: 0 / 1.383 GB, free: 7.051 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002907/0.5115, allocations: 215.4 kB / 1.384 GB, free: 6.824 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.046e-05/0.5116, allocations: 77.11 kB / 1.384 GB, free: 6.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.5116, allocations: 7.984 kB / 1.384 GB, free: 6.723 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.132e-05/0.5117, allocations: 4 kB / 1.384 GB, free: 6.719 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.5118, allocations: 11.94 kB / 1.384 GB, free: 6.707 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.5118, allocations: 4 kB / 1.384 GB, free: 6.703 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.515e-05/0.5119, allocations: 99.42 kB / 1.384 GB, free: 6.605 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5119, allocations: 0 / 1.384 GB, free: 6.605 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003115/0.5122, allocations: 43.94 kB / 1.384 GB, free: 6.562 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.0004039/0.5126, allocations: 183.7 kB / 1.384 GB, free: 6.387 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000268/0.5129, allocations: 71.97 kB / 1.384 GB, free: 6.316 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5129, allocations: 0 / 1.384 GB, free: 6.316 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.513, allocations: 44.05 kB / 1.384 GB, free: 6.273 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001892/0.5132, allocations: 7.922 kB / 1.384 GB, free: 6.266 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000478/0.5137, allocations: 197.2 kB / 1.384 GB, free: 6.043 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.514, allocations: 0.6935 MB / 1.385 GB, free: 5.324 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.69e-05/0.514, allocations: 4.188 kB / 1.385 GB, free: 5.32 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.728e-05/0.5141, allocations: 19.42 kB / 1.385 GB, free: 5.301 MB / 0.8855 GB Notification: Performance of SimCode: time 4.01e-07/0.5141, allocations: 0 / 1.385 GB, free: 5.301 MB / 0.8855 GB Notification: Performance of Templates: time 0.004537/0.5186, allocations: 1.523 MB / 1.387 GB, free: 3.781 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","../files/Buildings_latest_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.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