Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.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.Herkel2008WindowsCompletelyOpen,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.Herkel2008WindowsCompletelyOpen") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen,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.Herkel2008WindowsCompletelyOpen") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.557/2.557, allocations: 393.5 MB / 408.4 MB, free: 11.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.001391/0.001391, allocations: 184 kB / 0.4902 GB, free: 2.281 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.521/1.521, allocations: 223.1 MB / 0.7992 GB, free: 14.75 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.0009359/0.0009359, allocations: 100.8 kB / 0.9396 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.0003611, allocations: 14.25 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.284, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2414/0.5255, allocations: 152 MB / 1.378 GB, free: 1.578 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003263/0.5259, allocations: 87.94 kB / 1.378 GB, free: 1.492 MB / 0.8698 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.01271/0.5386, allocations: 3.019 MB / 1.381 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.184e-06/0.5387, allocations: 0 / 1.381 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.5387, allocations: 4 kB / 1.381 GB, free: 14.46 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.0007355/0.5394, allocations: 432.6 kB / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.5395, allocations: 8.562 kB / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.245e-05/0.5396, allocations: 7.953 kB / 1.381 GB, free: 13.97 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.5398, allocations: 170.9 kB / 1.381 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/0.5398, allocations: 8 kB / 1.381 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.5398, allocations: 4 kB / 1.381 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002397/0.5401, allocations: 69.66 kB / 1.381 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.5401, allocations: 4 kB / 1.381 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.244e-05/0.5402, allocations: 3.984 kB / 1.381 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.5402, allocations: 3.938 kB / 1.381 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.5404, allocations: 51.91 kB / 1.381 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008951/0.5413, allocations: 312.8 kB / 1.382 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.5415, allocations: 62.55 kB / 1.382 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.5415, allocations: 0 / 1.382 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/0.5417, allocations: 75.5 kB / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.943e-06/0.5418, allocations: 3.938 kB / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0005799/0.5424, allocations: 153.7 kB / 1.382 GB, free: 12.94 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.5424, allocations: 51.41 kB / 1.382 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.5426, allocations: 109 kB / 1.382 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.5426, allocations: 29.7 kB / 1.382 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.518e-05/0.5427, allocations: 92.3 kB / 1.382 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.711e-05/0.5427, allocations: 15.89 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-06/0.5427, allocations: 0 / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.5429, allocations: 326.8 kB / 1.383 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.543, allocations: 31.92 kB / 1.383 GB, free: 12.26 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.5431, allocations: 50.94 kB / 1.383 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001418/0.5433, allocations: 43.98 kB / 1.383 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.5433, allocations: 0 / 1.383 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003449/0.5437, allocations: 117.5 kB / 1.383 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.5437, allocations: 4 kB / 1.383 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.5437, allocations: 0 / 1.383 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.5437, allocations: 4 kB / 1.383 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.5439, allocations: 16.05 kB / 1.383 GB, free: 12.01 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.5439, allocations: 3.953 kB / 1.383 GB, free: 12.01 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.659e-05/0.544, allocations: 11.91 kB / 1.383 GB, free: 12 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/0.544, allocations: 11.98 kB / 1.383 GB, free: 11.98 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.000119/0.5442, allocations: 125.7 kB / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.026e-05/0.5442, allocations: 4 kB / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.205e-05/0.5442, allocations: 8.375 kB / 1.383 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.5442, allocations: 4 kB / 1.383 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.5443, allocations: 0 / 1.383 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.5443, allocations: 3.953 kB / 1.383 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006109/0.5449, allocations: 382.4 kB / 1.383 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5449, allocations: 0 / 1.383 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.462e-05/0.545, allocations: 11.92 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.545, allocations: 4 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.545, allocations: 0 / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.545, allocations: 7.953 kB / 1.383 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.545, allocations: 0 / 1.383 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003931/0.5454, allocations: 211.5 kB / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.97e-05/0.5455, allocations: 89.02 kB / 1.384 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.5455, allocations: 0 / 1.384 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.5457, allocations: 7.984 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.593e-05/0.5457, allocations: 11.95 kB / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.5458, allocations: 0 / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.692e-05/0.5458, allocations: 95.27 kB / 1.384 GB, free: 10.94 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5459, allocations: 0 / 1.384 GB, free: 10.94 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004813/0.5463, allocations: 51.92 kB / 1.384 GB, free: 10.89 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.0004965/0.5468, allocations: 178.4 kB / 1.384 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003069/0.5472, allocations: 76.19 kB / 1.384 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5472, allocations: 0 / 1.384 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001354/0.5473, allocations: 44.2 kB / 1.384 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.5476, allocations: 10.88 kB / 1.384 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005138/0.5481, allocations: 201.3 kB / 1.384 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.5484, allocations: 0.6965 MB / 1.385 GB, free: 9.641 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.294e-05/0.5485, allocations: 8.172 kB / 1.385 GB, free: 9.633 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.639e-05/0.5485, allocations: 11.44 kB / 1.385 GB, free: 9.621 MB / 0.8855 GB Notification: Performance of SimCode: time 4.61e-07/0.5485, allocations: 0 / 1.385 GB, free: 9.621 MB / 0.8855 GB Notification: Performance of Templates: time 0.005483/0.554, allocations: 1.519 MB / 1.387 GB, free: 8.113 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsCompletelyOpen.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.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