Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_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_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001207, allocations: 99.31 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.001429/0.00143, allocations: 177.3 kB / 15.95 MB, free: 216 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.349/1.349, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.535/2.535, allocations: 436.5 MB / 0.7104 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003314, allocations: 15.92 kB / 0.8708 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6279/0.6283, allocations: 153.6 MB / 1.021 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.001623/0.6299, allocations: 1.199 MB / 1.022 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.631, allocations: 0.6784 MB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.51e-05/0.631, allocations: 3.938 kB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.425e-05/0.6311, allocations: 0 / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.766e-05/0.6311, allocations: 3.984 kB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000442/0.6316, allocations: 103.6 kB / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.025e-05/0.6317, allocations: 43.94 kB / 1.023 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.25e-05/0.6317, allocations: 4 kB / 1.023 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.26e-05/0.6318, allocations: 39.89 kB / 1.023 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.998e-05/0.6319, allocations: 31.84 kB / 1.023 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.314e-05/0.6319, allocations: 4 kB / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.6321, allocations: 67.92 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.161e-05/0.6321, allocations: 15.92 kB / 1.023 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.392e-05/0.6321, allocations: 33.7 kB / 1.023 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.6323, allocations: 97.72 kB / 1.023 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.6323, allocations: 0 / 1.023 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.054e-06/0.6323, allocations: 0 / 1.023 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.6323, allocations: 4 kB / 1.023 GB, free: 14.8 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.0005962/0.6329, allocations: 420.7 kB / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.633, allocations: 11.98 kB / 1.023 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.066e-05/0.633, allocations: 7.906 kB / 1.023 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.6331, allocations: 163.1 kB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/0.6332, allocations: 0 / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.6332, allocations: 7.953 kB / 1.024 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.6334, allocations: 77.66 kB / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.6334, allocations: 3.984 kB / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.6334, allocations: 0 / 1.024 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.6334, allocations: 3.938 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.6336, allocations: 43.92 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005777/0.6342, allocations: 332.6 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001145/0.6343, allocations: 46.56 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.6343, allocations: 0 / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001855/0.6345, allocations: 91.48 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.6345, allocations: 3.938 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004253/0.6349, allocations: 141.5 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.635, allocations: 63.47 kB / 1.024 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.306e-05/0.6351, allocations: 129.7 kB / 1.025 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.6351, allocations: 29.7 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.317e-05/0.6351, allocations: 84.33 kB / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.6352, allocations: 19.8 kB / 1.025 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.6352, allocations: 0 / 1.025 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.463e-05/0.6353, allocations: 314.8 kB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.294e-05/0.6354, allocations: 39.97 kB / 1.025 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.441e-05/0.6355, allocations: 46.56 kB / 1.025 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.608e-05/0.6356, allocations: 39.88 kB / 1.025 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.6356, allocations: 0 / 1.025 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002222/0.6358, allocations: 121.5 kB / 1.025 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.6358, allocations: 4 kB / 1.025 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.6358, allocations: 0 / 1.025 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.6358, allocations: 4 kB / 1.025 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.491e-05/0.6359, allocations: 11.98 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.636, allocations: 0 / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.84e-05/0.636, allocations: 19.91 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.636, allocations: 8 kB / 1.025 GB, free: 12.33 MB / 0.7794 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 (win.occ,$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 8.754e-05/0.6361, allocations: 127.8 kB / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.49e-05/0.6362, allocations: 4 kB / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.018e-05/0.6362, allocations: 8.375 kB / 1.025 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.6362, allocations: 0 / 1.025 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.6362, allocations: 0 / 1.025 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.6362, allocations: 0 / 1.025 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004171/0.6366, allocations: 390.8 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.6367, allocations: 4 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.066e-05/0.6367, allocations: 11.92 kB / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.6367, allocations: 0 / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.437e-06/0.6367, allocations: 0 / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.574e-06/0.6367, allocations: 4 kB / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.6367, allocations: 7.938 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002674/0.637, allocations: 219.5 kB / 1.026 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.804e-05/0.6371, allocations: 85 kB / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.6371, allocations: 3.938 kB / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.837e-05/0.6372, allocations: 8 kB / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.744e-05/0.6372, allocations: 11.98 kB / 1.026 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.6372, allocations: 4 kB / 1.026 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.512e-05/0.6373, allocations: 91.27 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6373, allocations: 0 / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002801/0.6376, allocations: 36 kB / 1.026 GB, free: 11.23 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,win.occ,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.000305/0.6379, allocations: 168.4 kB / 1.026 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002146/0.6381, allocations: 75.95 kB / 1.026 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.6381, allocations: 0 / 1.026 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.57e-05/0.6382, allocations: 35.92 kB / 1.026 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001768/0.6384, allocations: 20.06 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003929/0.6388, allocations: 197.1 kB / 1.027 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.6391, allocations: 0.6887 MB / 1.027 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.384e-05/0.6391, allocations: 8.188 kB / 1.027 GB, free: 10 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.675e-05/0.6392, allocations: 15.42 kB / 1.027 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6392, allocations: 3.938 kB / 1.027 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of Templates: time 0.00377/0.6429, allocations: 1.328 MB / 1.029 GB, free: 8.656 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","../files/Buildings_latest_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.f,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0