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.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.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.004928/0.004928, allocations: 102.5 kB / 15.73 MB, free: 6.484 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.001215/0.001215, allocations: 190.1 kB / 16.67 MB, free: 6.379 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.814/2.814, allocations: 461.8 MB / 0.7347 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 63.91 kB / 1.054 GB, free: 7.148 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3348, allocations: 157.4 MB / 1.208 GB, free: 9.637 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002875/0.3378, allocations: 1.487 MB / 1.209 GB, free: 8.137 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001404/0.3392, allocations: 0.7365 MB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.777e-05/0.3393, allocations: 4 kB / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.913e-05/0.3393, allocations: 11.86 kB / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.849e-05/0.3394, allocations: 3.938 kB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006426/0.3401, allocations: 127.5 kB / 1.21 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.3402, allocations: 79.77 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.3403, allocations: 15.94 kB / 1.21 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.3404, allocations: 31.92 kB / 1.21 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.795e-05/0.3405, allocations: 43.81 kB / 1.21 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.134e-05/0.3406, allocations: 8 kB / 1.21 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002459/0.3408, allocations: 99.84 kB / 1.21 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.205e-05/0.3408, allocations: 15.92 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.181e-05/0.3409, allocations: 27.86 kB / 1.21 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002575/0.3412, allocations: 143.6 kB / 1.21 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3412, allocations: 0 / 1.21 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3412, allocations: 0 / 1.21 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.287e-05/0.3412, allocations: 0 / 1.21 GB, free: 6.793 MB / 0.9669 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.0006903/0.3419, allocations: 420.9 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.342, allocations: 8.031 kB / 1.211 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.918e-05/0.342, allocations: 12.83 kB / 1.211 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.3421, allocations: 176.2 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.3422, allocations: 4.375 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.3422, allocations: 4.375 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.3424, allocations: 69.97 kB / 1.211 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3424, allocations: 0 / 1.211 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.3425, allocations: 4 kB / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.3425, allocations: 11.94 kB / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001498/0.3426, allocations: 39.91 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006257/0.3433, allocations: 312.7 kB / 1.211 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001288/0.3434, allocations: 54.55 kB / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.458e-05/0.3435, allocations: 28.97 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.3435, allocations: 4 kB / 1.212 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001893/0.3437, allocations: 83.38 kB / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/0.3437, allocations: 0 / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004424/0.3442, allocations: 133.9 kB / 1.212 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/0.3442, allocations: 59.34 kB / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.3443, allocations: 133.7 kB / 1.212 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.3444, allocations: 25.7 kB / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.251e-05/0.3444, allocations: 88.14 kB / 1.212 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/0.3445, allocations: 23.73 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.902e-05/0.3445, allocations: 25.72 kB / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3447, allocations: 322.8 kB / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.553e-05/0.3447, allocations: 27.98 kB / 1.212 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.677e-05/0.3448, allocations: 50.48 kB / 1.212 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.345, allocations: 70.55 kB / 1.213 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.345, allocations: 0 / 1.213 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002473/0.3453, allocations: 117.5 kB / 1.213 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.3453, allocations: 4 kB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3453, allocations: 4 kB / 1.213 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.3453, allocations: 0 / 1.213 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.885e-05/0.3454, allocations: 15.92 kB / 1.213 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.3455, allocations: 3.938 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.483e-05/0.3455, allocations: 11.98 kB / 1.213 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.3455, allocations: 4 kB / 1.213 GB, free: 4.238 MB / 0.9669 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.366e-05/0.3456, allocations: 121.8 kB / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.676e-05/0.3457, allocations: 7.906 kB / 1.213 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.954e-05/0.3457, allocations: 12.38 kB / 1.213 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3457, allocations: 0 / 1.213 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3457, allocations: 3.984 kB / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3457, allocations: 0 / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004546/0.3462, allocations: 382.3 kB / 1.213 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3462, allocations: 4 kB / 1.213 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.865e-05/0.3462, allocations: 4 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3463, allocations: 0 / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.3463, allocations: 8 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.3463, allocations: 0 / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.3463, allocations: 7.922 kB / 1.213 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002925/0.3466, allocations: 203.4 kB / 1.213 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.076e-05/0.3466, allocations: 89.02 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.3467, allocations: 0 / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.322e-05/0.3468, allocations: 15.97 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.918e-05/0.3468, allocations: 11.94 kB / 1.214 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.3468, allocations: 3.984 kB / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.46e-05/0.3469, allocations: 87.28 kB / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3469, allocations: 0 / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003016/0.3472, allocations: 43.98 kB / 1.214 GB, free: 3.148 MB / 0.9669 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.0003503/0.3476, allocations: 164.9 kB / 1.214 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002509/0.3478, allocations: 75.88 kB / 1.214 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3478, allocations: 0 / 1.214 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.958e-05/0.3479, allocations: 35.97 kB / 1.214 GB, free: 2.887 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.3482, allocations: 16.8 kB / 1.214 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004175/0.3486, allocations: 192.2 kB / 1.214 GB, free: 2.656 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.3489, allocations: 0.6885 MB / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.702e-05/0.3489, allocations: 4 kB / 1.215 GB, free: 1.938 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.029e-05/0.349, allocations: 11.44 kB / 1.215 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of SimCode: time 3.01e-07/0.349, allocations: 0 / 1.215 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of Templates: time 0.004202/0.3532, allocations: 1.487 MB / 1.216 GB, free: 452 kB / 0.9669 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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