Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.Zhang2012WindowsEast,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.Zhang2012WindowsEast") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,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.Zhang2012WindowsEast") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001155/0.001155, allocations: 172.7 kB / 15.95 MB, free: 208 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.563/1.563, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.894/2.894, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003723, allocations: 14.22 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3839/0.3843, allocations: 159.6 MB / 1.058 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.002109/0.3865, allocations: 1.206 MB / 1.059 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001374/0.3879, allocations: 0.6859 MB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.088e-05/0.3879, allocations: 0 / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.21e-05/0.388, allocations: 7.922 kB / 1.06 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.097e-05/0.388, allocations: 7.938 kB / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000516/0.3886, allocations: 91.77 kB / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.3887, allocations: 67.77 kB / 1.06 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.3888, allocations: 15.98 kB / 1.06 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.263e-05/0.3889, allocations: 31.92 kB / 1.06 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.011e-05/0.389, allocations: 35.88 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.743e-05/0.389, allocations: 4 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001857/0.3892, allocations: 79.86 kB / 1.06 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.667e-05/0.3892, allocations: 15.92 kB / 1.06 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.524e-05/0.3893, allocations: 33.7 kB / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.3894, allocations: 100 kB / 1.06 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.3895, allocations: 0 / 1.06 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3895, allocations: 0 / 1.06 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.3895, allocations: 4 kB / 1.06 GB, free: 2.969 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.0006139/0.3901, allocations: 404.9 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.3901, allocations: 8.031 kB / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.496e-05/0.3902, allocations: 7.906 kB / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.3903, allocations: 182.8 kB / 1.061 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.3904, allocations: 3.953 kB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.3904, allocations: 4 kB / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.3906, allocations: 77.66 kB / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.3906, allocations: 0 / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.3906, allocations: 0 / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.3906, allocations: 3.984 kB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.3908, allocations: 43.97 kB / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005822/0.3914, allocations: 324.7 kB / 1.061 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.3915, allocations: 50.55 kB / 1.061 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.803e-05/0.3916, allocations: 36.97 kB / 1.061 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.3916, allocations: 4 kB / 1.061 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002149/0.3918, allocations: 79.38 kB / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.3918, allocations: 0 / 1.062 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003734/0.3922, allocations: 149.5 kB / 1.062 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.3923, allocations: 55.41 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.557e-05/0.3924, allocations: 125.8 kB / 1.062 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.3924, allocations: 29.7 kB / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.586e-05/0.3925, allocations: 96.3 kB / 1.062 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.014e-05/0.3925, allocations: 11.84 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-06/0.3925, allocations: 0 / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.3926, allocations: 330.8 kB / 1.062 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.488e-05/0.3927, allocations: 27.98 kB / 1.062 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.484e-05/0.3928, allocations: 54.92 kB / 1.062 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.42e-05/0.3929, allocations: 35.98 kB / 1.062 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3929, allocations: 0 / 1.062 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002192/0.3931, allocations: 113.5 kB / 1.062 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.3932, allocations: 17.95 kB / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3932, allocations: 0 / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.3932, allocations: 4.062 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.877e-05/0.3933, allocations: 12 kB / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.3933, allocations: 0 / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.299e-05/0.3934, allocations: 11.89 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3934, allocations: 4 kB / 1.063 GB, free: 484 kB / 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,$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 9.279e-05/0.3935, allocations: 121.8 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.386e-05/0.3935, allocations: 7.906 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.808e-05/0.3935, allocations: 12.36 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.3935, allocations: 4 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3936, allocations: 3.938 kB / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3936, allocations: 0 / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004602/0.394, allocations: 386.4 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.394, allocations: 0 / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.79e-05/0.3941, allocations: 12 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3941, allocations: 0 / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.3941, allocations: 3.984 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3941, allocations: 0 / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3941, allocations: 0 / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002786/0.3944, allocations: 223.8 kB / 1.063 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.876e-05/0.3945, allocations: 85.11 kB / 1.063 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.052e-05/0.3945, allocations: 3.984 kB / 1.063 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.056e-05/0.3946, allocations: 4 kB / 1.063 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.3946, allocations: 7.984 kB / 1.063 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.116e-06/0.3946, allocations: 0 / 1.063 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.151e-05/0.3947, allocations: 103.4 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3947, allocations: 0 / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002919/0.395, allocations: 39.91 kB / 1.064 GB, free: 15.38 MB / 0.8262 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.0003416/0.3953, allocations: 160.9 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002305/0.3956, allocations: 83.88 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3956, allocations: 4.125 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.3957, allocations: 39.92 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.396, allocations: 16.27 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003833/0.3964, allocations: 197.2 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.3966, allocations: 0.6848 MB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.982e-05/0.3967, allocations: 8.172 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.535e-05/0.3967, allocations: 7.438 kB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3967, allocations: 0 / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of Templates: time 0.004416/0.4011, allocations: 1.345 MB / 1.066 GB, free: 12.79 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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