Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Zhang2012WindowsWest,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.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_latest_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.00134/0.001339, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001601/0.001601, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.448/1.448, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.811/2.811, allocations: 461.9 MB / 0.7343 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 69.56 kB / 0.8986 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3304, allocations: 157.4 MB / 1.052 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002496/0.3329, allocations: 1.56 MB / 1.054 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.3341, allocations: 0.736 MB / 1.055 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.126e-05/0.3342, allocations: 0 / 1.055 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.025e-05/0.3342, allocations: 7.922 kB / 1.055 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.198e-05/0.3343, allocations: 11.88 kB / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005461/0.3349, allocations: 103.8 kB / 1.055 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.335, allocations: 75.78 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.3351, allocations: 15.97 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.941e-05/0.3352, allocations: 31.92 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.398e-05/0.3353, allocations: 39.81 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.3353, allocations: 8 kB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.3355, allocations: 103.8 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.151e-05/0.3355, allocations: 15.92 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.804e-05/0.3356, allocations: 27.86 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000227/0.3358, allocations: 139.9 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3358, allocations: 0 / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.943e-06/0.3358, allocations: 0 / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.3358, allocations: 0 / 1.055 GB, free: 5.941 MB / 0.8106 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.0006888/0.3365, allocations: 421 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.3366, allocations: 12.03 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.859e-05/0.3366, allocations: 8.844 kB / 1.055 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.3368, allocations: 180.2 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.3368, allocations: 4.375 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.873e-05/0.3368, allocations: 8.312 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002021/0.337, allocations: 73.97 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.3371, allocations: 3.984 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.3371, allocations: 4 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3371, allocations: 0 / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.3372, allocations: 39.97 kB / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006377/0.3379, allocations: 312.8 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.338, allocations: 54.44 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.882e-05/0.3381, allocations: 32.97 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.3381, allocations: 4 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.3383, allocations: 79.44 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.3383, allocations: 0 / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003851/0.3387, allocations: 137.5 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.3388, allocations: 55.41 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.553e-05/0.3389, allocations: 125.8 kB / 1.057 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.3389, allocations: 29.7 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.352e-05/0.339, allocations: 84.14 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.339, allocations: 23.73 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.958e-05/0.339, allocations: 29.7 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.3392, allocations: 318.8 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.717e-05/0.3392, allocations: 23.98 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.067e-05/0.3393, allocations: 54.55 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.3395, allocations: 70.48 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3395, allocations: 0 / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002368/0.3398, allocations: 117.5 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.3398, allocations: 9.406 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3398, allocations: 3.984 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.3398, allocations: 0 / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.347e-05/0.3399, allocations: 8 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3399, allocations: 4.391 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.944e-05/0.34, allocations: 11.89 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.34, allocations: 7.938 kB / 1.057 GB, free: 3.391 MB / 0.8106 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 9.378e-05/0.3401, allocations: 131.3 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.418e-05/0.3401, allocations: 0 / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.003e-05/0.3402, allocations: 16.36 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.3402, allocations: 0 / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3402, allocations: 0 / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.3402, allocations: 0 / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004541/0.3406, allocations: 390.2 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3407, allocations: 0 / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.825e-05/0.3407, allocations: 8 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.3407, allocations: 4 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.3407, allocations: 3.938 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3407, allocations: 3.984 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3408, allocations: 3.938 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002955/0.3411, allocations: 207.4 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.807e-05/0.3411, allocations: 77.11 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.3411, allocations: 8 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.402e-05/0.3412, allocations: 7.984 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.562e-05/0.3413, allocations: 15.88 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.3413, allocations: 3.984 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.043e-05/0.3414, allocations: 95.92 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3414, allocations: 0 / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003078/0.3417, allocations: 36 kB / 1.058 GB, free: 2.301 MB / 0.8106 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.0003544/0.3421, allocations: 157.5 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002432/0.3423, allocations: 71.89 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3423, allocations: 0 / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.497e-05/0.3424, allocations: 35.92 kB / 1.059 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.3427, allocations: 16.05 kB / 1.059 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003998/0.3431, allocations: 200.3 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.3434, allocations: 0.6885 MB / 1.059 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.998e-05/0.3434, allocations: 4 kB / 1.059 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.046e-05/0.3435, allocations: 15.44 kB / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.3435, allocations: 0 / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of Templates: time 0.004062/0.3475, allocations: 1.407 MB / 1.061 GB, free: 15.68 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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