Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Rijal2007WindowsTInTOutTComf.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.Rijal2007WindowsTInTOutTComf,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.Rijal2007WindowsTInTOutTComf") translateModel(Buildings.Occupants.Office.Windows.Validation.Rijal2007WindowsTInTOutTComf,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.Rijal2007WindowsTInTOutTComf") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.558/1.558, allocations: 249.5 MB / 257 MB, free: 6.914 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001056/0.001056, allocations: 174 kB / 316.3 MB, free: 3.273 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.702/1.702, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.000888/0.0008878, allocations: 86.47 kB / 0.6714 GB, free: 4.996 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.363e-05/1.365e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2202, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7803/1, allocations: 134.4 MB / 1.016 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003575/1.001, allocations: 86.94 kB / 1.017 GB, free: 3.43 MB / 0.6355 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.01244/1.013, allocations: 3.785 MB / 1.02 GB, free: 212 kB / 0.6355 GB Notification: Performance of FrontEnd: time 1.643e-06/1.013, allocations: 1.031 kB / 1.02 GB, free: 212 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.686e-06/1.013, allocations: 4 kB / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006591/1.014, allocations: 0.5192 MB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/1.014, allocations: 12.03 kB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.824e-05/1.014, allocations: 15.77 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/1.014, allocations: 176.1 kB / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/1.014, allocations: 7.562 kB / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/1.014, allocations: 4 kB / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001313/1.015, allocations: 53.72 kB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/1.015, allocations: 91.19 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/1.015, allocations: 0.875 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/1.015, allocations: 7.938 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/1.015, allocations: 0 / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009371/1.016, allocations: 392.2 kB / 1.021 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/1.016, allocations: 54.58 kB / 1.021 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.405e-05/1.016, allocations: 53.27 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/1.016, allocations: 4 kB / 1.022 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000158/1.016, allocations: 99.3 kB / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/1.016, allocations: 0 / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of matching and sorting (n=9): time 0.0003536/1.016, allocations: 144.1 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/1.017, allocations: 59.39 kB / 1.022 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/1.017, allocations: 127.7 kB / 1.022 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/1.017, allocations: 33.7 kB / 1.022 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.96e-05/1.017, allocations: 100.9 kB / 1.022 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/1.017, allocations: 22.91 kB / 1.022 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-06/1.017, allocations: 0 / 1.022 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001326/1.017, allocations: 318.1 kB / 1.022 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.581e-05/1.017, allocations: 21.5 kB / 1.022 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.237e-05/1.017, allocations: 69.39 kB / 1.022 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.942e-05/1.017, allocations: 28.17 kB / 1.023 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/1.017, allocations: 0 / 1.023 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001897/1.017, allocations: 111.2 kB / 1.023 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/1.017, allocations: 8 kB / 1.023 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/1.017, allocations: 4.125 kB / 1.023 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/1.017, allocations: 8 kB / 1.023 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/1.018, allocations: 23.92 kB / 1.023 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/1.018, allocations: 3.953 kB / 1.023 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/1.018, allocations: 23.83 kB / 1.023 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/1.018, allocations: 7.25 kB / 1.023 GB, free: 13.64 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.win.curSeed,win.curSeed,$PRE.win.on,win.on,occ.y,$PRE.win.p,win.p,$whenCondition1,win.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.272e-05/1.018, allocations: 109 kB / 1.023 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/1.018, allocations: 11.89 kB / 1.023 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.36e-05/1.018, allocations: 12.44 kB / 1.023 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/1.018, allocations: 0 / 1.023 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/1.018, allocations: 96 / 1.023 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/1.018, allocations: 7.891 kB / 1.023 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004925/1.018, allocations: 426.4 kB / 1.023 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/1.018, allocations: 0 / 1.023 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.93e-05/1.018, allocations: 19.98 kB / 1.023 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/1.019, allocations: 0 / 1.023 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/1.019, allocations: 7.047 kB / 1.023 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/1.019, allocations: 4 kB / 1.023 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/1.019, allocations: 3.953 kB / 1.023 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002937/1.019, allocations: 243.2 kB / 1.024 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.457e-05/1.019, allocations: 85 kB / 1.024 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.353e-05/1.019, allocations: 11.38 kB / 1.024 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/1.019, allocations: 27.97 kB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.015e-05/1.019, allocations: 7.984 kB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/1.019, allocations: 7.938 kB / 1.024 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.694e-05/1.019, allocations: 101.7 kB / 1.024 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.415e-06/1.019, allocations: 0 / 1.024 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003925/1.02, allocations: 66.3 kB / 1.024 GB, free: 12.55 MB / 0.6511 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: 1 (win.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * 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.0003931/1.02, allocations: 169.3 kB / 1.024 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001825/1.02, allocations: 79.61 kB / 1.024 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/1.02, allocations: 4.25 kB / 1.024 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 9.616e-05/1.02, allocations: 49.8 kB / 1.024 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001921/1.021, allocations: 3.688 kB / 1.024 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003718/1.021, allocations: 145.4 kB / 1.024 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/1.021, allocations: 0.7042 MB / 1.025 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.568e-05/1.021, allocations: 8 kB / 1.025 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.832e-05/1.021, allocations: 22.92 kB / 1.025 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/1.021, allocations: 0 / 1.025 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of Templates: time 0.004627/1.026, allocations: 1.949 MB / 1.027 GB, free: 9.484 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Rijal2007WindowsTInTOutTComf.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Rijal2007WindowsTInTOutTComf.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Rijal2007WindowsTInTOutTComf.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Rijal2007WindowsTInTOutTComf.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Rijal2007WindowsTInTOutTComf.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Rijal2007WindowsTInTOutTComf -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Rijal2007WindowsTInTOutTComf.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Rijal2007WindowsTInTOutTComf_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Windows_Validation_Rijal2007WindowsTInTOutTComf.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Windows.Validation.Rijal2007WindowsTInTOutTComf.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:TComf.amplitude,TComf.freqHz,TComf.offset,TComf.phase,TComf.startTime,TIn.amplitude,TIn.freqHz,TIn.offset,TIn.phase,TIn.startTime,TOut.amplitude,TOut.freqHz,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,occ.y,time,win.AIn,win.AOut,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0