Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.375/1.375, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001039/0.001039, allocations: 188.4 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.762/1.762, allocations: 205.4 MB / 0.5775 GB, free: 20.3 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.0009171/0.0009171, allocations: 100 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003117, allocations: 11.22 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2196, allocations: 106.3 MB / 0.9001 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1817/0.4013, allocations: 133.7 MB / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.4016, allocations: 87.94 kB / 1.031 GB, free: 10 MB / 0.6823 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.008886/0.4105, allocations: 2.99 MB / 1.034 GB, free: 7.004 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.044e-06/0.4106, allocations: 0 / 1.034 GB, free: 7.004 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.4106, allocations: 0 / 1.034 GB, free: 7.004 MB / 0.6823 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.0005167/0.4111, allocations: 420.7 kB / 1.034 GB, free: 6.539 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.4111, allocations: 12.03 kB / 1.034 GB, free: 6.527 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.4112, allocations: 7.906 kB / 1.034 GB, free: 6.52 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.4113, allocations: 163 kB / 1.034 GB, free: 6.32 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.4114, allocations: 15.94 kB / 1.034 GB, free: 6.305 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.4114, allocations: 4 kB / 1.034 GB, free: 6.301 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.4116, allocations: 69.59 kB / 1.034 GB, free: 6.227 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.4116, allocations: 3.984 kB / 1.034 GB, free: 6.223 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.4116, allocations: 7.984 kB / 1.034 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.4116, allocations: 4 kB / 1.034 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001298/0.4118, allocations: 43.92 kB / 1.034 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.4124, allocations: 328.6 kB / 1.035 GB, free: 5.797 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.4125, allocations: 50.56 kB / 1.035 GB, free: 5.738 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.4125, allocations: 0 / 1.035 GB, free: 5.738 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/0.4127, allocations: 83.42 kB / 1.035 GB, free: 5.645 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.4127, allocations: 4 kB / 1.035 GB, free: 5.641 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.000389/0.4131, allocations: 149.6 kB / 1.035 GB, free: 5.488 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.4132, allocations: 59.36 kB / 1.035 GB, free: 5.418 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.274e-05/0.4133, allocations: 113 kB / 1.035 GB, free: 5.301 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.4133, allocations: 25.7 kB / 1.035 GB, free: 5.27 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.612e-05/0.4134, allocations: 92.33 kB / 1.035 GB, free: 5.172 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/0.4134, allocations: 7.812 kB / 1.035 GB, free: 5.164 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.063e-06/0.4134, allocations: 8 kB / 1.035 GB, free: 5.156 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.4135, allocations: 318.8 kB / 1.036 GB, free: 4.836 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.21e-05/0.4136, allocations: 31.92 kB / 1.036 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.905e-05/0.4137, allocations: 50.55 kB / 1.036 GB, free: 4.746 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.724e-05/0.4138, allocations: 33.88 kB / 1.036 GB, free: 4.715 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4138, allocations: 0 / 1.036 GB, free: 4.715 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002368/0.4141, allocations: 117.5 kB / 1.036 GB, free: 4.594 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.4141, allocations: 8 kB / 1.036 GB, free: 4.586 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.4141, allocations: 0 / 1.036 GB, free: 4.586 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.4141, allocations: 0 / 1.036 GB, free: 4.586 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.664e-05/0.4142, allocations: 20.05 kB / 1.036 GB, free: 4.566 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.4142, allocations: 3.938 kB / 1.036 GB, free: 4.562 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.901e-05/0.4143, allocations: 15.94 kB / 1.036 GB, free: 4.547 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.4143, allocations: 4 kB / 1.036 GB, free: 4.543 MB / 0.6823 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 9.686e-05/0.4144, allocations: 117.8 kB / 1.036 GB, free: 4.418 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.61e-05/0.4145, allocations: 7.906 kB / 1.036 GB, free: 4.41 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.357e-05/0.4145, allocations: 12.38 kB / 1.036 GB, free: 4.398 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.4145, allocations: 4 kB / 1.036 GB, free: 4.395 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.4145, allocations: 0 / 1.036 GB, free: 4.395 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.4145, allocations: 7.984 kB / 1.036 GB, free: 4.387 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004493/0.415, allocations: 386.4 kB / 1.036 GB, free: 3.953 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.415, allocations: 0 / 1.036 GB, free: 3.953 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.085e-05/0.415, allocations: 8 kB / 1.036 GB, free: 3.945 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.4151, allocations: 4 kB / 1.036 GB, free: 3.941 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.4151, allocations: 7.938 kB / 1.036 GB, free: 3.934 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4151, allocations: 0 / 1.036 GB, free: 3.934 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4151, allocations: 3.953 kB / 1.036 GB, free: 3.93 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002723/0.4154, allocations: 215.4 kB / 1.037 GB, free: 3.703 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.324e-05/0.4154, allocations: 89.02 kB / 1.037 GB, free: 3.598 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.697e-05/0.4154, allocations: 0 / 1.037 GB, free: 3.598 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.952e-05/0.4155, allocations: 11.98 kB / 1.037 GB, free: 3.586 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.024e-05/0.4156, allocations: 4 kB / 1.037 GB, free: 3.582 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.4156, allocations: 7.938 kB / 1.037 GB, free: 3.574 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.86e-05/0.4157, allocations: 91.88 kB / 1.037 GB, free: 3.484 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4157, allocations: 0 / 1.037 GB, free: 3.484 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002856/0.416, allocations: 55.92 kB / 1.037 GB, free: 3.43 MB / 0.6823 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.0003901/0.4164, allocations: 175.1 kB / 1.037 GB, free: 3.266 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002348/0.4166, allocations: 75.88 kB / 1.037 GB, free: 3.191 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4166, allocations: 0 / 1.037 GB, free: 3.191 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.933e-05/0.4167, allocations: 40.11 kB / 1.037 GB, free: 3.152 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000178/0.4169, allocations: 15.12 kB / 1.037 GB, free: 3.141 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004265/0.4174, allocations: 205.1 kB / 1.037 GB, free: 2.902 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.4177, allocations: 0.6926 MB / 1.038 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.42e-05/0.4177, allocations: 8.125 kB / 1.038 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.619e-05/0.4178, allocations: 11.44 kB / 1.038 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of SimCode: time 2.5e-07/0.4178, allocations: 0 / 1.038 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of Templates: time 0.004116/0.4219, allocations: 1.512 MB / 1.039 GB, free: 0.6641 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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