Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,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.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_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.367/1.367, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001139/0.001139, allocations: 187.8 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.886/1.886, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0009713/0.0009713, allocations: 94.36 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003927/0.0003925, allocations: 8.938 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2079, allocations: 106.3 MB / 0.9001 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1664/0.3745, allocations: 133.7 MB / 1.031 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.3748, allocations: 83.95 kB / 1.031 GB, free: 9.969 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.009273/0.3841, allocations: 2.994 MB / 1.034 GB, free: 6.969 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.644e-06/0.3841, allocations: 0 / 1.034 GB, free: 6.969 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.3841, allocations: 0 / 1.034 GB, free: 6.969 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.0005589/0.3847, allocations: 424.7 kB / 1.034 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.3848, allocations: 12.03 kB / 1.034 GB, free: 6.488 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.871e-05/0.3848, allocations: 7.906 kB / 1.034 GB, free: 6.48 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.385, allocations: 171 kB / 1.034 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.385, allocations: 7.938 kB / 1.034 GB, free: 6.266 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.327e-05/0.385, allocations: 7.984 kB / 1.034 GB, free: 6.258 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001857/0.3852, allocations: 73.59 kB / 1.034 GB, free: 6.18 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.3852, allocations: 3.984 kB / 1.034 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.3853, allocations: 8 kB / 1.034 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.3853, allocations: 0 / 1.034 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.3854, allocations: 43.91 kB / 1.034 GB, free: 6.125 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006479/0.3861, allocations: 320.6 kB / 1.035 GB, free: 5.762 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001324/0.3862, allocations: 50.56 kB / 1.035 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.3862, allocations: 0 / 1.035 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001721/0.3864, allocations: 83.44 kB / 1.035 GB, free: 5.609 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.3864, allocations: 4 kB / 1.035 GB, free: 5.605 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.000413/0.3869, allocations: 145.6 kB / 1.035 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.3869, allocations: 63.36 kB / 1.035 GB, free: 5.383 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.687e-05/0.387, allocations: 113 kB / 1.035 GB, free: 5.266 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.387, allocations: 25.7 kB / 1.035 GB, free: 5.234 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.816e-05/0.3871, allocations: 88.33 kB / 1.035 GB, free: 5.141 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.3871, allocations: 15.81 kB / 1.035 GB, free: 5.125 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.7e-06/0.3871, allocations: 0 / 1.035 GB, free: 5.125 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3872, allocations: 318.8 kB / 1.036 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.454e-05/0.3873, allocations: 31.98 kB / 1.036 GB, free: 4.773 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.327e-05/0.3874, allocations: 54.48 kB / 1.036 GB, free: 4.711 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.057e-05/0.3875, allocations: 34.17 kB / 1.036 GB, free: 4.68 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3875, allocations: 0 / 1.036 GB, free: 4.68 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002425/0.3878, allocations: 129.5 kB / 1.036 GB, free: 4.547 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.3878, allocations: 7.984 kB / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.3878, allocations: 4 kB / 1.036 GB, free: 4.535 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.3878, allocations: 0 / 1.036 GB, free: 4.535 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.757e-05/0.388, allocations: 12 kB / 1.036 GB, free: 4.523 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.942e-06/0.388, allocations: 3.938 kB / 1.036 GB, free: 4.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.903e-05/0.3881, allocations: 20 kB / 1.036 GB, free: 4.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.3881, allocations: 4 kB / 1.036 GB, free: 4.496 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.195e-05/0.3882, allocations: 117.8 kB / 1.036 GB, free: 4.371 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.642e-05/0.3882, allocations: 7.906 kB / 1.036 GB, free: 4.363 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.474e-05/0.3882, allocations: 16.36 kB / 1.036 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3882, allocations: 0 / 1.036 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3882, allocations: 0 / 1.036 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3883, allocations: 0 / 1.036 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004583/0.3887, allocations: 386.4 kB / 1.036 GB, free: 3.914 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3887, allocations: 0 / 1.036 GB, free: 3.914 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.926e-05/0.3888, allocations: 11.94 kB / 1.036 GB, free: 3.902 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3888, allocations: 0 / 1.036 GB, free: 3.902 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.3888, allocations: 7.922 kB / 1.036 GB, free: 3.895 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3888, allocations: 0 / 1.036 GB, free: 3.895 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.3888, allocations: 3.953 kB / 1.036 GB, free: 3.891 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.3891, allocations: 215.4 kB / 1.037 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.333e-05/0.3892, allocations: 85.02 kB / 1.037 GB, free: 3.562 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.3892, allocations: 0 / 1.037 GB, free: 3.562 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.073e-05/0.3893, allocations: 7.984 kB / 1.037 GB, free: 3.555 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.213e-05/0.3893, allocations: 12 kB / 1.037 GB, free: 3.543 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.3893, allocations: 7.938 kB / 1.037 GB, free: 3.535 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.815e-05/0.3894, allocations: 91.27 kB / 1.037 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3894, allocations: 0 / 1.037 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003221/0.3897, allocations: 51.94 kB / 1.037 GB, free: 3.395 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.0004092/0.3901, allocations: 177.4 kB / 1.037 GB, free: 3.23 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002311/0.3904, allocations: 71.95 kB / 1.037 GB, free: 3.16 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3904, allocations: 0 / 1.037 GB, free: 3.16 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.3905, allocations: 43.91 kB / 1.037 GB, free: 3.117 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001877/0.3907, allocations: 20.05 kB / 1.037 GB, free: 3.098 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004011/0.3911, allocations: 201.1 kB / 1.037 GB, free: 2.863 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.3914, allocations: 0.6904 MB / 1.038 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.916e-05/0.3914, allocations: 8.734 kB / 1.038 GB, free: 2.141 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.393e-05/0.3914, allocations: 15.42 kB / 1.038 GB, free: 2.129 MB / 0.6823 GB Notification: Performance of SimCode: time 4.31e-07/0.3915, allocations: 0 / 1.038 GB, free: 2.129 MB / 0.6823 GB Notification: Performance of Templates: time 0.004243/0.3957, allocations: 1.516 MB / 1.039 GB, free: 0.6211 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","../files/Buildings_maint.7.0.x_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.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