Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_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_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006677/0.006677, allocations: 100 kB / 15.73 MB, free: 6.023 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.001222/0.001222, allocations: 187.7 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.456/2.456, allocations: 390.2 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 63.44 kB / 0.9508 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3336, allocations: 140.4 MB / 1.088 GB, free: 1.551 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.003142/0.3368, allocations: 1.494 MB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001345/0.3381, allocations: 0.7298 MB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.362e-05/0.3382, allocations: 0 / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.431e-05/0.3382, allocations: 7.938 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.552e-05/0.3383, allocations: 11.86 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005471/0.3389, allocations: 123.6 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.339, allocations: 71.77 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.3391, allocations: 23.97 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.168e-05/0.3392, allocations: 35.84 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.487e-05/0.3393, allocations: 35.89 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.3393, allocations: 8 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.3395, allocations: 95.84 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.768e-05/0.3395, allocations: 19.92 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.946e-05/0.3396, allocations: 35.86 kB / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002155/0.3398, allocations: 135.6 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3398, allocations: 4 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.472e-06/0.3398, allocations: 0 / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.3398, allocations: 0 / 1.091 GB, free: 14.71 MB / 0.8575 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.000658/0.3405, allocations: 416.9 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.3405, allocations: 12.03 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.941e-05/0.3406, allocations: 8.844 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.3408, allocations: 192.1 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.3408, allocations: 4.375 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.3408, allocations: 4.375 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.341, allocations: 69.97 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.341, allocations: 0 / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.3411, allocations: 4 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.3411, allocations: 0 / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.3412, allocations: 35.97 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006528/0.3419, allocations: 316.7 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001416/0.342, allocations: 50.56 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.366e-05/0.3421, allocations: 32.97 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.3421, allocations: 3.984 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.3423, allocations: 79.45 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.3423, allocations: 0 / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003963/0.3427, allocations: 141.5 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.3428, allocations: 55.41 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.3429, allocations: 121.8 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.3429, allocations: 29.7 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.498e-05/0.343, allocations: 104 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.343, allocations: 7.906 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.559e-05/0.343, allocations: 25.7 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3432, allocations: 326.8 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.392e-05/0.3433, allocations: 27.98 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.161e-05/0.3434, allocations: 46.5 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.3436, allocations: 82.47 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3436, allocations: 3.938 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002313/0.3438, allocations: 113.5 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.3438, allocations: 4 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3438, allocations: 64 / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.3439, allocations: 8 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.46e-05/0.344, allocations: 11.98 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.344, allocations: 3.938 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.407e-05/0.3441, allocations: 7.906 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.3441, allocations: 4 kB / 1.093 GB, free: 12.16 MB / 0.8575 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,win.curSeed,$PRE.win.curSeed,win.p,$PRE.win.p,win.on,$PRE.win.on,win.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001071/0.3442, allocations: 123.7 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.713e-05/0.3442, allocations: 7.906 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.635e-05/0.3442, allocations: 12.38 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3443, allocations: 4 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.3443, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3443, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004444/0.3447, allocations: 390.3 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3447, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.066e-05/0.3448, allocations: 7.984 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3448, allocations: 0 / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.437e-06/0.3448, allocations: 0 / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3448, allocations: 4 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.3448, allocations: 7.938 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002697/0.3451, allocations: 211.9 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.742e-05/0.3451, allocations: 81.11 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.3452, allocations: 0 / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.017e-05/0.3453, allocations: 4 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.048e-05/0.3453, allocations: 11.86 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.3453, allocations: 11.94 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.898e-05/0.3454, allocations: 95.27 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3454, allocations: 0 / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002835/0.3457, allocations: 39.89 kB / 1.094 GB, free: 11.07 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003423/0.346, allocations: 166.6 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002363/0.3463, allocations: 75.91 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3463, allocations: 0 / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.623e-05/0.3464, allocations: 35.97 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.3467, allocations: 4 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000394/0.3471, allocations: 180.4 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.3474, allocations: 0.6925 MB / 1.095 GB, free: 9.875 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.623e-05/0.3474, allocations: 7.75 kB / 1.095 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.915e-05/0.3474, allocations: 15.42 kB / 1.095 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of SimCode: time 4.01e-07/0.3474, allocations: 0 / 1.095 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of Templates: time 0.004108/0.3516, allocations: 1.465 MB / 1.096 GB, free: 8.391 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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.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