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.53/2.53, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001194/0.001194, allocations: 173 kB / 498.1 MB, free: 5.766 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.691/1.691, allocations: 223.2 MB / 0.7949 GB, free: 17.95 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.0009208/0.0009209, allocations: 104.3 kB / 0.9346 GB, free: 6.27 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003543, allocations: 8.156 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3235, allocations: 142.3 MB / 1.223 GB, free: 114.4 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1926/0.5161, allocations: 151.2 MB / 1.371 GB, free: 10.93 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.5165, allocations: 83.89 kB / 1.371 GB, free: 10.84 MB / 0.8698 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.009063/0.5256, allocations: 3.028 MB / 1.374 GB, free: 7.809 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.723e-06/0.5256, allocations: 4 kB / 1.374 GB, free: 7.805 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.5256, allocations: 0 / 1.374 GB, free: 7.805 MB / 0.8698 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.0005423/0.5261, allocations: 420.7 kB / 1.374 GB, free: 7.34 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.5262, allocations: 8.031 kB / 1.374 GB, free: 7.332 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.653e-05/0.5262, allocations: 11.86 kB / 1.374 GB, free: 7.32 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.5264, allocations: 178.9 kB / 1.374 GB, free: 7.105 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.858e-05/0.5264, allocations: 8 kB / 1.374 GB, free: 7.098 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.5265, allocations: 11.94 kB / 1.374 GB, free: 7.086 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.5267, allocations: 69.66 kB / 1.374 GB, free: 7.012 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.5267, allocations: 0 / 1.374 GB, free: 7.012 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.5267, allocations: 0 / 1.374 GB, free: 7.012 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.5267, allocations: 3.938 kB / 1.374 GB, free: 7.008 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001315/0.5268, allocations: 47.97 kB / 1.374 GB, free: 6.961 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006286/0.5275, allocations: 312.8 kB / 1.375 GB, free: 6.605 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.5276, allocations: 54.5 kB / 1.375 GB, free: 6.543 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.5277, allocations: 4 kB / 1.375 GB, free: 6.539 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001608/0.5278, allocations: 83.47 kB / 1.375 GB, free: 6.445 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.5278, allocations: 0 / 1.375 GB, free: 6.445 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0004023/0.5283, allocations: 161.5 kB / 1.375 GB, free: 6.281 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.5283, allocations: 51.41 kB / 1.375 GB, free: 6.219 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.333e-05/0.5284, allocations: 112.9 kB / 1.375 GB, free: 6.102 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.5284, allocations: 29.7 kB / 1.375 GB, free: 6.066 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.512e-05/0.5285, allocations: 84.33 kB / 1.375 GB, free: 5.977 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.5285, allocations: 19.8 kB / 1.375 GB, free: 5.957 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.5285, allocations: 0 / 1.375 GB, free: 5.957 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.5287, allocations: 318.8 kB / 1.375 GB, free: 5.637 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.886e-05/0.5287, allocations: 35.97 kB / 1.376 GB, free: 5.602 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.216e-05/0.5288, allocations: 46.56 kB / 1.376 GB, free: 5.547 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.51e-05/0.529, allocations: 43.91 kB / 1.376 GB, free: 5.504 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.529, allocations: 0 / 1.376 GB, free: 5.504 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002336/0.5292, allocations: 117.5 kB / 1.376 GB, free: 5.383 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.5292, allocations: 4 kB / 1.376 GB, free: 5.379 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.5292, allocations: 4 kB / 1.376 GB, free: 5.375 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.5293, allocations: 0 / 1.376 GB, free: 5.375 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.867e-05/0.5294, allocations: 15.92 kB / 1.376 GB, free: 5.359 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.5294, allocations: 12.02 kB / 1.376 GB, free: 5.348 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.634e-05/0.5294, allocations: 7.938 kB / 1.376 GB, free: 5.34 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.5295, allocations: 8 kB / 1.376 GB, free: 5.332 MB / 0.8698 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 8.828e-05/0.5296, allocations: 113.8 kB / 1.376 GB, free: 5.211 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.822e-05/0.5296, allocations: 11.89 kB / 1.376 GB, free: 5.199 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.693e-05/0.5296, allocations: 8.375 kB / 1.376 GB, free: 5.191 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.5296, allocations: 0 / 1.376 GB, free: 5.191 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5296, allocations: 8 kB / 1.376 GB, free: 5.184 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.5297, allocations: 3.953 kB / 1.376 GB, free: 5.18 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000434/0.5301, allocations: 378.5 kB / 1.376 GB, free: 4.754 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.5301, allocations: 0 / 1.376 GB, free: 4.754 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.787e-05/0.5301, allocations: 4 kB / 1.376 GB, free: 4.75 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.5302, allocations: 3.984 kB / 1.376 GB, free: 4.746 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.5302, allocations: 8 kB / 1.376 GB, free: 4.738 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.5302, allocations: 3.953 kB / 1.376 GB, free: 4.734 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.5302, allocations: 0 / 1.376 GB, free: 4.734 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002768/0.5305, allocations: 215.4 kB / 1.377 GB, free: 4.508 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.753e-05/0.5305, allocations: 81.09 kB / 1.377 GB, free: 4.41 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.5306, allocations: 7.938 kB / 1.377 GB, free: 4.402 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.615e-05/0.5307, allocations: 8 kB / 1.377 GB, free: 4.395 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.98e-05/0.5307, allocations: 11.94 kB / 1.377 GB, free: 4.383 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.5307, allocations: 4 kB / 1.377 GB, free: 4.379 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.094e-05/0.5308, allocations: 91.92 kB / 1.377 GB, free: 4.289 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5308, allocations: 0 / 1.377 GB, free: 4.289 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00029/0.5311, allocations: 51.84 kB / 1.377 GB, free: 4.238 MB / 0.8698 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.0004078/0.5315, allocations: 188.1 kB / 1.377 GB, free: 4.059 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.000243/0.5317, allocations: 79.89 kB / 1.377 GB, free: 3.98 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.5317, allocations: 0 / 1.377 GB, free: 3.98 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.5319, allocations: 48.08 kB / 1.377 GB, free: 3.934 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001581/0.532, allocations: 4 kB / 1.377 GB, free: 3.93 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003967/0.5324, allocations: 201.1 kB / 1.377 GB, free: 3.703 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.5327, allocations: 0.6981 MB / 1.378 GB, free: 2.98 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.657e-05/0.5328, allocations: 4.172 kB / 1.378 GB, free: 2.977 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.868e-05/0.5328, allocations: 11.44 kB / 1.378 GB, free: 2.965 MB / 0.8698 GB Notification: Performance of SimCode: time 2.7e-07/0.5328, allocations: 3.938 kB / 1.378 GB, free: 2.961 MB / 0.8698 GB Notification: Performance of Templates: time 0.003935/0.5367, allocations: 1.515 MB / 1.379 GB, free: 1.449 MB / 0.8698 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