Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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.Haldi2008WindowsTOut,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.Haldi2008WindowsTOut") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut,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.Haldi2008WindowsTOut") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 91.92 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.0009954/0.0009954, 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.479/1.479, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.071/3.071, allocations: 462.6 MB / 0.736 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003565, allocations: 11.64 kB / 0.9021 GB, free: 36.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.4013, allocations: 159.6 MB / 1.058 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut): time 0.001857/0.4032, allocations: 1.202 MB / 1.059 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001302/0.4046, allocations: 0.6858 MB / 1.06 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.233e-05/0.4046, allocations: 4 kB / 1.06 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.121e-05/0.4047, allocations: 0 / 1.06 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.074e-05/0.4048, allocations: 11.86 kB / 1.06 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006331/0.4054, allocations: 91.83 kB / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001504/0.4056, allocations: 71.77 kB / 1.06 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.4057, allocations: 8 kB / 1.06 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.4058, allocations: 35.84 kB / 1.06 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.78e-05/0.4059, allocations: 35.89 kB / 1.06 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.4059, allocations: 4 kB / 1.06 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002173/0.4062, allocations: 83.84 kB / 1.06 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.454e-05/0.4062, allocations: 11.98 kB / 1.06 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.641e-05/0.4063, allocations: 33.64 kB / 1.06 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002086/0.4065, allocations: 108 kB / 1.06 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.4065, allocations: 4 kB / 1.06 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4065, allocations: 0 / 1.06 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.4065, allocations: 0 / 1.06 GB, free: 2.875 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.0005992/0.4071, allocations: 400.9 kB / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.4071, allocations: 8.031 kB / 1.061 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.917e-05/0.4072, allocations: 7.906 kB / 1.061 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.4073, allocations: 170.9 kB / 1.061 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.911e-05/0.4074, allocations: 11.95 kB / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.4074, allocations: 8 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001849/0.4076, allocations: 69.59 kB / 1.061 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.4076, allocations: 0 / 1.061 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.4076, allocations: 4 kB / 1.061 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.4076, allocations: 0 / 1.061 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.4078, allocations: 43.97 kB / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006135/0.4084, allocations: 320.8 kB / 1.061 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.4085, allocations: 54.56 kB / 1.061 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.812e-05/0.4086, allocations: 44.84 kB / 1.061 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.4086, allocations: 0 / 1.061 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.4088, allocations: 75.38 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.4089, allocations: 0 / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003837/0.4092, allocations: 157.6 kB / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.4093, allocations: 51.41 kB / 1.062 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.64e-05/0.4094, allocations: 125.8 kB / 1.062 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.4094, allocations: 29.7 kB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.85e-05/0.4095, allocations: 92.23 kB / 1.062 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.208e-05/0.4095, allocations: 23.83 kB / 1.062 GB, free: 1 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.4095, allocations: 0 / 1.062 GB, free: 1 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.4096, allocations: 318.8 kB / 1.062 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.998e-05/0.4097, allocations: 31.97 kB / 1.062 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.4098, allocations: 50.94 kB / 1.062 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.42e-05/0.4099, allocations: 39.98 kB / 1.062 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4099, allocations: 0 / 1.062 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002321/0.4102, allocations: 113.5 kB / 1.062 GB, free: 444 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.4102, allocations: 4 kB / 1.062 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.4102, allocations: 4.062 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.4102, allocations: 4 kB / 1.063 GB, free: 432 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.349e-05/0.4103, allocations: 19.92 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.4104, allocations: 0 / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.71e-05/0.4104, allocations: 11.91 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.4104, allocations: 0 / 1.063 GB, free: 400 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.766e-05/0.4105, allocations: 125.8 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.4106, allocations: 11.89 kB / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.556e-05/0.4106, allocations: 12.38 kB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.4106, allocations: 0 / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4106, allocations: 0 / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.4106, allocations: 0 / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005288/0.4112, allocations: 394.7 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4112, allocations: 4 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.059e-05/0.4112, allocations: 4 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.4112, allocations: 0 / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.4112, allocations: 3.984 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.4113, allocations: 4 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4113, allocations: 4 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.4116, allocations: 223.3 kB / 1.063 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.056e-05/0.4116, allocations: 85.09 kB / 1.063 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.4116, allocations: 0 / 1.063 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.333e-05/0.4117, allocations: 4 kB / 1.063 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.118e-05/0.4118, allocations: 7.984 kB / 1.063 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.4118, allocations: 3.938 kB / 1.063 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.534e-05/0.4119, allocations: 99.42 kB / 1.063 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4119, allocations: 3.938 kB / 1.063 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002981/0.4122, allocations: 43.91 kB / 1.064 GB, free: 15.28 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.0003593/0.4125, allocations: 152.7 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002433/0.4128, allocations: 87.94 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4128, allocations: 0 / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.723e-05/0.4129, allocations: 31.98 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.4132, allocations: 12.27 kB / 1.064 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003828/0.4136, allocations: 201.2 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.4139, allocations: 0.6887 MB / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.899e-05/0.4139, allocations: 4.188 kB / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.993e-05/0.414, allocations: 15.44 kB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of SimCode: time 4.61e-07/0.414, allocations: 0 / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of Templates: time 0.004198/0.4182, allocations: 1.336 MB / 1.066 GB, free: 12.71 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTOut.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTOut.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