Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009436/0.0009437, allocations: 100.3 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009215/0.0009214, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 223.2 MB / 239.9 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.577/2.577, allocations: 436.5 MB / 0.7104 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003065, allocations: 8 kB / 0.8708 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6765/0.6768, allocations: 153.6 MB / 1.021 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn): time 0.001922/0.6788, allocations: 1.192 MB / 1.022 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.6799, allocations: 0.6784 MB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.276e-05/0.68, allocations: 0 / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.607e-05/0.68, allocations: 3.984 kB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.952e-05/0.6801, allocations: 15.97 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004245/0.6805, allocations: 95.64 kB / 1.023 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.847e-05/0.6806, allocations: 47.88 kB / 1.023 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.318e-05/0.6807, allocations: 8 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.247e-05/0.6808, allocations: 39.83 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.868e-05/0.6808, allocations: 27.91 kB / 1.023 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.6808, allocations: 4 kB / 1.023 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.681, allocations: 71.92 kB / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.103e-05/0.681, allocations: 11.92 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.82e-05/0.6811, allocations: 33.7 kB / 1.023 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001688/0.6812, allocations: 105.7 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.6812, allocations: 3.938 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.352e-06/0.6813, allocations: 0 / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.6813, allocations: 0 / 1.023 GB, free: 14.75 MB / 0.7794 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.0006237/0.6819, allocations: 408.8 kB / 1.023 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.6819, allocations: 15.98 kB / 1.023 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.776e-05/0.682, allocations: 3.906 kB / 1.023 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.6821, allocations: 167.1 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.203e-05/0.6822, allocations: 11.98 kB / 1.024 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.86e-05/0.6822, allocations: 7.953 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001822/0.6824, allocations: 69.64 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.6824, allocations: 0 / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.6824, allocations: 0 / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.6824, allocations: 4 kB / 1.024 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.6826, allocations: 51.91 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006172/0.6832, allocations: 316.6 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001191/0.6833, allocations: 54.56 kB / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.6833, allocations: 0 / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.6835, allocations: 79.44 kB / 1.024 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.6835, allocations: 4 kB / 1.024 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003853/0.6839, allocations: 153.6 kB / 1.024 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.684, allocations: 59.39 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.454e-05/0.6841, allocations: 121.7 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.6841, allocations: 33.7 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.181e-05/0.6842, allocations: 88.31 kB / 1.025 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.802e-05/0.6842, allocations: 15.81 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.61e-06/0.6842, allocations: 4 kB / 1.025 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.6843, allocations: 322.8 kB / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.862e-05/0.6844, allocations: 23.98 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.5e-05/0.6845, allocations: 63.34 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.6846, allocations: 43.94 kB / 1.025 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.6846, allocations: 0 / 1.025 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002289/0.6849, allocations: 117.5 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.6849, allocations: 7.984 kB / 1.025 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.6849, allocations: 12 kB / 1.025 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.6849, allocations: 0 / 1.025 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.686e-05/0.685, allocations: 15.94 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.685, allocations: 0 / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.588e-05/0.6851, allocations: 19.89 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.6851, allocations: 4 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.win.curSeed,win.curSeed,occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$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.0001017/0.6853, allocations: 119.7 kB / 1.025 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.523e-05/0.6853, allocations: 12 kB / 1.025 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.835e-05/0.6853, allocations: 12.36 kB / 1.025 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.6853, allocations: 0 / 1.025 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.6853, allocations: 0 / 1.025 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.6853, allocations: 0 / 1.025 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004917/0.6858, allocations: 390.3 kB / 1.026 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.6858, allocations: 8 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.881e-05/0.6859, allocations: 4 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.6859, allocations: 0 / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.6859, allocations: 3.984 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.6859, allocations: 0 / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.6859, allocations: 3.938 kB / 1.026 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.6862, allocations: 219.4 kB / 1.026 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.744e-05/0.6863, allocations: 85.02 kB / 1.026 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.6863, allocations: 3.984 kB / 1.026 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.644e-05/0.6864, allocations: 4 kB / 1.026 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.994e-05/0.6864, allocations: 7.984 kB / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.6864, allocations: 0 / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.523e-05/0.6865, allocations: 95.27 kB / 1.026 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6865, allocations: 4 kB / 1.026 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003111/0.6868, allocations: 39.94 kB / 1.026 GB, free: 11.17 MB / 0.7794 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.0003379/0.6872, allocations: 162 kB / 1.026 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002264/0.6874, allocations: 83.94 kB / 1.026 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.6874, allocations: 0 / 1.026 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.594e-05/0.6875, allocations: 35.98 kB / 1.027 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001786/0.6877, allocations: 16.44 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003835/0.6881, allocations: 201.8 kB / 1.027 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.6884, allocations: 0.6887 MB / 1.027 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.652e-05/0.6884, allocations: 4.188 kB / 1.027 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.6885, allocations: 11.44 kB / 1.027 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.6885, allocations: 0 / 1.027 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of Templates: time 0.003724/0.6922, allocations: 1.342 MB / 1.029 GB, free: 8.582 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TIn,win.occ,win.p,win.on Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TIn,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0