Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,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.Zhang2012WindowsAll") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,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.Zhang2012WindowsAll") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.35/1.35, 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.001063/0.001063, allocations: 186.8 kB / 326.5 MB, free: 2.227 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.77/1.77, 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.0008615/0.0008613, allocations: 92.06 kB / 0.6821 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000386/0.0003856, allocations: 8.219 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2452, allocations: 106.3 MB / 0.9001 GB, free: 64.31 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1717/0.4169, allocations: 133.7 MB / 1.031 GB, free: 10.42 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.4172, allocations: 83.94 kB / 1.031 GB, free: 10.34 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.008797/0.426, allocations: 2.99 MB / 1.034 GB, free: 7.34 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.665e-06/0.4261, allocations: 0 / 1.034 GB, free: 7.34 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.044e-05/0.4261, allocations: 4 kB / 1.034 GB, free: 7.336 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.0006243/0.4267, allocations: 428.7 kB / 1.034 GB, free: 6.863 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.4268, allocations: 8.031 kB / 1.034 GB, free: 6.855 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.476e-05/0.4268, allocations: 7.906 kB / 1.034 GB, free: 6.848 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.427, allocations: 171 kB / 1.034 GB, free: 6.641 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.427, allocations: 0 / 1.034 GB, free: 6.641 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.783e-05/0.427, allocations: 4 kB / 1.034 GB, free: 6.637 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002191/0.4273, allocations: 77.66 kB / 1.034 GB, free: 6.555 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.4273, allocations: 3.938 kB / 1.034 GB, free: 6.551 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.4273, allocations: 3.984 kB / 1.034 GB, free: 6.547 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.4273, allocations: 0 / 1.034 GB, free: 6.547 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001463/0.4275, allocations: 43.92 kB / 1.034 GB, free: 6.504 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007174/0.4282, allocations: 328.6 kB / 1.035 GB, free: 6.133 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001487/0.4284, allocations: 46.56 kB / 1.035 GB, free: 6.078 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.4284, allocations: 4 kB / 1.035 GB, free: 6.074 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.4286, allocations: 83.44 kB / 1.035 GB, free: 5.98 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 2.505e-06/0.4286, allocations: 0 / 1.035 GB, free: 5.98 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0004576/0.4291, allocations: 141.5 kB / 1.035 GB, free: 5.836 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.4291, allocations: 59.36 kB / 1.035 GB, free: 5.766 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.565e-05/0.4292, allocations: 117 kB / 1.035 GB, free: 5.645 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.4293, allocations: 25.7 kB / 1.035 GB, free: 5.613 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.33e-05/0.4293, allocations: 96.39 kB / 1.035 GB, free: 5.512 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/0.4294, allocations: 11.81 kB / 1.035 GB, free: 5.5 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.063e-05/0.4294, allocations: 4 kB / 1.035 GB, free: 5.496 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4295, allocations: 318.8 kB / 1.036 GB, free: 5.176 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.718e-05/0.4296, allocations: 27.98 kB / 1.036 GB, free: 5.148 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.4297, allocations: 62.86 kB / 1.036 GB, free: 5.078 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.4299, allocations: 32 kB / 1.036 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.4299, allocations: 3.938 kB / 1.036 GB, free: 5.043 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002758/0.4302, allocations: 117.5 kB / 1.036 GB, free: 4.922 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.4302, allocations: 4 kB / 1.036 GB, free: 4.918 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.4302, allocations: 0 / 1.036 GB, free: 4.918 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.4302, allocations: 4 kB / 1.036 GB, free: 4.914 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.4303, allocations: 11.98 kB / 1.036 GB, free: 4.902 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.4304, allocations: 4 kB / 1.036 GB, free: 4.898 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.884e-05/0.4305, allocations: 27.94 kB / 1.036 GB, free: 4.871 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.4305, allocations: 400 / 1.036 GB, free: 4.871 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 0.000102/0.4306, allocations: 122.6 kB / 1.036 GB, free: 4.742 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.764e-05/0.4306, allocations: 3.906 kB / 1.036 GB, free: 4.738 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.059e-05/0.4306, allocations: 12.38 kB / 1.036 GB, free: 4.727 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.4307, allocations: 0 / 1.036 GB, free: 4.727 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.4307, allocations: 0 / 1.036 GB, free: 4.727 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.4307, allocations: 3.984 kB / 1.036 GB, free: 4.723 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000513/0.4312, allocations: 398.4 kB / 1.036 GB, free: 4.277 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4312, allocations: 0 / 1.036 GB, free: 4.277 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.664e-05/0.4313, allocations: 4 kB / 1.036 GB, free: 4.273 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.4313, allocations: 0 / 1.036 GB, free: 4.273 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.4313, allocations: 0 / 1.036 GB, free: 4.273 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.4313, allocations: 0 / 1.036 GB, free: 4.273 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.4313, allocations: 7.953 kB / 1.036 GB, free: 4.266 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003254/0.4316, allocations: 221.2 kB / 1.037 GB, free: 4.035 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.187e-05/0.4317, allocations: 88.95 kB / 1.037 GB, free: 3.93 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.4317, allocations: 4 kB / 1.037 GB, free: 3.926 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.4319, allocations: 7.984 kB / 1.037 GB, free: 3.918 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.176e-05/0.4319, allocations: 8 kB / 1.037 GB, free: 3.91 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.4319, allocations: 7.938 kB / 1.037 GB, free: 3.902 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.998e-05/0.432, allocations: 95.22 kB / 1.037 GB, free: 3.809 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.41e-07/0.432, allocations: 0 / 1.037 GB, free: 3.809 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003534/0.4324, allocations: 51.92 kB / 1.037 GB, free: 3.758 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.0004695/0.4328, allocations: 170.3 kB / 1.037 GB, free: 3.598 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002791/0.4331, allocations: 71.89 kB / 1.037 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.4332, allocations: 4 kB / 1.037 GB, free: 3.523 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.4333, allocations: 35.98 kB / 1.037 GB, free: 3.488 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002053/0.4335, allocations: 12.06 kB / 1.037 GB, free: 3.477 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004035/0.4339, allocations: 205.1 kB / 1.037 GB, free: 3.238 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.4342, allocations: 0.6887 MB / 1.038 GB, free: 2.523 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.207e-05/0.4342, allocations: 8.188 kB / 1.038 GB, free: 2.516 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.79e-05/0.4342, allocations: 15.38 kB / 1.038 GB, free: 2.504 MB / 0.6823 GB Notification: Performance of SimCode: time 3.8e-07/0.4343, allocations: 0 / 1.038 GB, free: 2.504 MB / 0.6823 GB Notification: Performance of Templates: time 0.004175/0.4384, allocations: 1.525 MB / 1.039 GB, free: 0.9922 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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