Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,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.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_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.34/1.34, allocations: 251.9 MB / 266.9 MB, free: 10.99 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.001118/0.001118, allocations: 185.2 kB / 326.5 MB, free: 2.234 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.78/1.78, allocations: 205.4 MB / 0.5775 GB, free: 20.52 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.0009456/0.0009454, allocations: 94.67 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004242/0.0004242, allocations: 10.16 kB / 0.7962 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2415, allocations: 106.4 MB / 0.9001 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1699/0.4115, allocations: 133.7 MB / 1.031 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/0.4118, allocations: 79.95 kB / 1.031 GB, free: 10.48 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.009338/0.4212, allocations: 2.99 MB / 1.034 GB, free: 7.48 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.114e-06/0.4212, allocations: 0 / 1.034 GB, free: 7.48 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.4212, allocations: 0 / 1.034 GB, free: 7.48 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.0005449/0.4218, allocations: 428.7 kB / 1.034 GB, free: 7.008 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.4218, allocations: 8.031 kB / 1.034 GB, free: 7 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.4219, allocations: 7.906 kB / 1.034 GB, free: 6.992 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.422, allocations: 171 kB / 1.034 GB, free: 6.785 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.92e-05/0.422, allocations: 7.984 kB / 1.034 GB, free: 6.777 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.4221, allocations: 8 kB / 1.034 GB, free: 6.77 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.4223, allocations: 77.62 kB / 1.034 GB, free: 6.688 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.4223, allocations: 3.938 kB / 1.034 GB, free: 6.684 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.4223, allocations: 0 / 1.034 GB, free: 6.684 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.4223, allocations: 0 / 1.034 GB, free: 6.684 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.4224, allocations: 43.97 kB / 1.034 GB, free: 6.641 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006079/0.4231, allocations: 324.6 kB / 1.035 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.4232, allocations: 50.56 kB / 1.035 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.4232, allocations: 4.125 kB / 1.035 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001707/0.4234, allocations: 79.38 kB / 1.035 GB, free: 6.121 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.813e-06/0.4234, allocations: 0 / 1.035 GB, free: 6.121 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0004084/0.4238, allocations: 153.5 kB / 1.035 GB, free: 5.965 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.4239, allocations: 63.34 kB / 1.035 GB, free: 5.891 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.482e-05/0.424, allocations: 112.9 kB / 1.035 GB, free: 5.773 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.424, allocations: 29.7 kB / 1.035 GB, free: 5.738 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.637e-05/0.4241, allocations: 84.33 kB / 1.035 GB, free: 5.648 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/0.4241, allocations: 19.8 kB / 1.035 GB, free: 5.629 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.4241, allocations: 0 / 1.035 GB, free: 5.629 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.4242, allocations: 318.8 kB / 1.036 GB, free: 5.309 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.066e-05/0.4243, allocations: 31.98 kB / 1.036 GB, free: 5.277 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.4244, allocations: 50.98 kB / 1.036 GB, free: 5.219 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.824e-05/0.4245, allocations: 35.92 kB / 1.036 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.4245, allocations: 0 / 1.036 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002975/0.4248, allocations: 125.5 kB / 1.036 GB, free: 5.055 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.4249, allocations: 4 kB / 1.036 GB, free: 5.051 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.4249, allocations: 4 kB / 1.036 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.4249, allocations: 0 / 1.036 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.425, allocations: 8 kB / 1.036 GB, free: 5.039 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.4251, allocations: 7.984 kB / 1.036 GB, free: 5.031 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.107e-05/0.4251, allocations: 15.95 kB / 1.036 GB, free: 5.016 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.4252, allocations: 8 kB / 1.036 GB, free: 5.008 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.631e-05/0.4253, allocations: 113.8 kB / 1.036 GB, free: 4.887 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.748e-05/0.4253, allocations: 11.84 kB / 1.036 GB, free: 4.875 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.257e-05/0.4253, allocations: 16.34 kB / 1.036 GB, free: 4.859 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.4253, allocations: 0 / 1.036 GB, free: 4.859 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4253, allocations: 0 / 1.036 GB, free: 4.859 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4253, allocations: 4 kB / 1.036 GB, free: 4.855 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004628/0.4258, allocations: 378.5 kB / 1.036 GB, free: 4.43 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.4258, allocations: 4 kB / 1.036 GB, free: 4.426 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.069e-05/0.4259, allocations: 4 kB / 1.036 GB, free: 4.422 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.4259, allocations: 0 / 1.036 GB, free: 4.422 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.4259, allocations: 7.984 kB / 1.036 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.4259, allocations: 3.938 kB / 1.036 GB, free: 4.41 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4259, allocations: 7.953 kB / 1.036 GB, free: 4.402 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002676/0.4262, allocations: 217.2 kB / 1.037 GB, free: 4.176 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.067e-05/0.4263, allocations: 84.95 kB / 1.037 GB, free: 4.074 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.4263, allocations: 3.984 kB / 1.037 GB, free: 4.07 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.204e-05/0.4264, allocations: 8 kB / 1.037 GB, free: 4.062 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.4264, allocations: 7.984 kB / 1.037 GB, free: 4.055 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.4264, allocations: 11.95 kB / 1.037 GB, free: 4.043 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.181e-05/0.4265, allocations: 95.42 kB / 1.037 GB, free: 3.949 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4265, allocations: 0 / 1.037 GB, free: 3.949 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000323/0.4268, allocations: 47.94 kB / 1.037 GB, free: 3.902 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.0003647/0.4272, allocations: 170.5 kB / 1.037 GB, free: 3.742 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002315/0.4275, allocations: 79.89 kB / 1.037 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4275, allocations: 0 / 1.037 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.391e-05/0.4276, allocations: 39.92 kB / 1.037 GB, free: 3.625 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001687/0.4277, allocations: 15.95 kB / 1.037 GB, free: 3.613 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003876/0.4281, allocations: 197.2 kB / 1.037 GB, free: 3.383 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.4284, allocations: 0.6926 MB / 1.038 GB, free: 2.664 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.137e-05/0.4284, allocations: 8.188 kB / 1.038 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.02e-05/0.4285, allocations: 15.42 kB / 1.038 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of SimCode: time 3.9e-07/0.4285, allocations: 0 / 1.038 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of Templates: time 0.004086/0.4326, allocations: 1.528 MB / 1.04 GB, free: 1.129 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","../files/Buildings_maint.7.0.x_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.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