Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,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.Zhang2012WindowsSouth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,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.Zhang2012WindowsSouth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.263/2.263, allocations: 390.4 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.001082/0.001082, allocations: 177.2 kB / 498.1 MB, free: 5.742 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.793/1.793, allocations: 223.2 MB / 0.7949 GB, free: 17.97 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.001215/0.001215, allocations: 93.41 kB / 0.9346 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000398/0.000398, allocations: 10.41 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3211, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2058/0.527, allocations: 151.2 MB / 1.371 GB, free: 10.93 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/0.5274, allocations: 79.95 kB / 1.371 GB, free: 10.85 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.009283/0.5367, allocations: 3.036 MB / 1.374 GB, free: 7.805 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.963e-06/0.5367, allocations: 0 / 1.374 GB, free: 7.805 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.5367, allocations: 4 kB / 1.374 GB, free: 7.801 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.0005986/0.5373, allocations: 424.7 kB / 1.374 GB, free: 7.332 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.5374, allocations: 12.02 kB / 1.374 GB, free: 7.32 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.533e-05/0.5374, allocations: 15.84 kB / 1.374 GB, free: 7.305 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.5376, allocations: 171 kB / 1.374 GB, free: 7.098 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.5376, allocations: 4 kB / 1.374 GB, free: 7.094 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.124e-05/0.5376, allocations: 7.938 kB / 1.374 GB, free: 7.086 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.5378, allocations: 69.66 kB / 1.374 GB, free: 7.012 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.5379, allocations: 0 / 1.374 GB, free: 7.012 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.5379, allocations: 11.94 kB / 1.374 GB, free: 7 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.5379, allocations: 0 / 1.374 GB, free: 7 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.538, allocations: 39.97 kB / 1.374 GB, free: 6.961 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006353/0.5387, allocations: 320.8 kB / 1.375 GB, free: 6.598 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.5388, allocations: 54.48 kB / 1.375 GB, free: 6.535 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.5388, allocations: 4 kB / 1.375 GB, free: 6.531 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001763/0.539, allocations: 87.39 kB / 1.375 GB, free: 6.434 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.539, allocations: 0 / 1.375 GB, free: 6.434 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0004085/0.5394, allocations: 149.6 kB / 1.375 GB, free: 6.281 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.5395, allocations: 55.41 kB / 1.375 GB, free: 6.215 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.778e-05/0.5396, allocations: 120.8 kB / 1.375 GB, free: 6.09 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.5396, allocations: 25.7 kB / 1.375 GB, free: 6.059 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.155e-05/0.5397, allocations: 96.31 kB / 1.375 GB, free: 5.957 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.5397, allocations: 11.81 kB / 1.375 GB, free: 5.945 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-06/0.5397, allocations: 4 kB / 1.375 GB, free: 5.941 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.5399, allocations: 314.8 kB / 1.376 GB, free: 5.625 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.263e-05/0.54, allocations: 31.98 kB / 1.376 GB, free: 5.594 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.543e-05/0.5401, allocations: 46.56 kB / 1.376 GB, free: 5.539 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.385e-05/0.5401, allocations: 31.98 kB / 1.376 GB, free: 5.508 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.5402, allocations: 3.938 kB / 1.376 GB, free: 5.504 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002419/0.5404, allocations: 129.5 kB / 1.376 GB, free: 5.371 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.5404, allocations: 4 kB / 1.376 GB, free: 5.367 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.5404, allocations: 0 / 1.376 GB, free: 5.367 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.5405, allocations: 4 kB / 1.376 GB, free: 5.363 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.508e-05/0.5406, allocations: 15.92 kB / 1.376 GB, free: 5.348 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.5406, allocations: 3.953 kB / 1.376 GB, free: 5.344 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.712e-05/0.5406, allocations: 11.94 kB / 1.376 GB, free: 5.332 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.5407, allocations: 12.05 kB / 1.376 GB, free: 5.32 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 0.0001002/0.5408, allocations: 113.8 kB / 1.376 GB, free: 5.199 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.451e-05/0.5408, allocations: 7.906 kB / 1.376 GB, free: 5.191 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/0.5408, allocations: 12.38 kB / 1.376 GB, free: 5.18 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.5408, allocations: 0 / 1.376 GB, free: 5.18 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.5409, allocations: 4 kB / 1.376 GB, free: 5.176 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.5409, allocations: 3.953 kB / 1.376 GB, free: 5.172 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000462/0.5413, allocations: 378.5 kB / 1.376 GB, free: 4.746 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.5413, allocations: 4 kB / 1.376 GB, free: 4.742 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.125e-05/0.5414, allocations: 7.984 kB / 1.376 GB, free: 4.734 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.5414, allocations: 0 / 1.376 GB, free: 4.734 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.5414, allocations: 4 kB / 1.376 GB, free: 4.73 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.5414, allocations: 3.953 kB / 1.376 GB, free: 4.727 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.5414, allocations: 0 / 1.376 GB, free: 4.727 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002809/0.5417, allocations: 223.3 kB / 1.377 GB, free: 4.492 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.219e-05/0.5418, allocations: 85.05 kB / 1.377 GB, free: 4.391 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.5418, allocations: 0 / 1.377 GB, free: 4.391 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.776e-05/0.5419, allocations: 8 kB / 1.377 GB, free: 4.383 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.54e-05/0.542, allocations: 15.94 kB / 1.377 GB, free: 4.367 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.542, allocations: 0 / 1.377 GB, free: 4.367 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.145e-05/0.542, allocations: 91.27 kB / 1.377 GB, free: 4.277 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.542, allocations: 0 / 1.377 GB, free: 4.277 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003052/0.5423, allocations: 59.83 kB / 1.377 GB, free: 4.219 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.0003658/0.5427, allocations: 186.1 kB / 1.377 GB, free: 4.039 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002363/0.543, allocations: 71.89 kB / 1.377 GB, free: 3.969 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.543, allocations: 0 / 1.377 GB, free: 3.969 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.306e-05/0.5431, allocations: 35.98 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.0001606/0.5432, allocations: 8.125 kB / 1.377 GB, free: 3.926 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003838/0.5436, allocations: 205.1 kB / 1.377 GB, free: 3.695 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.5439, allocations: 0.6943 MB / 1.378 GB, free: 2.977 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.715e-05/0.5439, allocations: 8.188 kB / 1.378 GB, free: 2.969 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.481e-05/0.544, allocations: 15.38 kB / 1.378 GB, free: 2.953 MB / 0.8698 GB Notification: Performance of SimCode: time 2.1e-07/0.544, allocations: 0 / 1.378 GB, free: 2.953 MB / 0.8698 GB Notification: Performance of Templates: time 0.003972/0.5479, allocations: 1.513 MB / 1.379 GB, free: 1.445 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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