Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001378/0.001378, allocations: 168.7 kB / 15.95 MB, free: 204 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.489/1.489, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.951/2.951, allocations: 462.6 MB / 0.736 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004033/0.0004036, allocations: 8.594 kB / 0.9021 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3836/0.384, allocations: 159.6 MB / 1.058 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.001926/0.386, allocations: 1.21 MB / 1.059 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001348/0.3873, allocations: 0.6743 MB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.325e-05/0.3874, allocations: 0 / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.667e-05/0.3875, allocations: 7.938 kB / 1.06 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.259e-05/0.3876, allocations: 7.922 kB / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000636/0.3882, allocations: 95.77 kB / 1.06 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.3884, allocations: 67.78 kB / 1.06 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.3885, allocations: 11.97 kB / 1.06 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.3886, allocations: 35.86 kB / 1.06 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.126e-05/0.3887, allocations: 35.84 kB / 1.06 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.907e-05/0.3887, allocations: 7.984 kB / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.3889, allocations: 75.92 kB / 1.06 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.322e-05/0.389, allocations: 19.91 kB / 1.06 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.7e-05/0.389, allocations: 29.7 kB / 1.06 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002386/0.3893, allocations: 108 kB / 1.06 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.136e-05/0.3893, allocations: 0 / 1.06 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.375e-06/0.3893, allocations: 3.938 kB / 1.06 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.3893, allocations: 0 / 1.06 GB, free: 2.957 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.0007435/0.3901, allocations: 400.9 kB / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.3901, allocations: 8.031 kB / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.854e-05/0.3902, allocations: 7.906 kB / 1.061 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.3903, allocations: 178.9 kB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.066e-05/0.3904, allocations: 11.95 kB / 1.061 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.33e-05/0.3904, allocations: 4 kB / 1.061 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/0.3906, allocations: 73.64 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.3907, allocations: 0 / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.3907, allocations: 0 / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.3907, allocations: 3.984 kB / 1.061 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.3908, allocations: 51.91 kB / 1.061 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007442/0.3916, allocations: 312.8 kB / 1.061 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.3917, allocations: 50.56 kB / 1.061 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.815e-05/0.3918, allocations: 44.95 kB / 1.061 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.3919, allocations: 0 / 1.061 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002059/0.3921, allocations: 83.38 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.853e-06/0.3921, allocations: 0 / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004121/0.3925, allocations: 149.5 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.3926, allocations: 51.41 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.3927, allocations: 129.7 kB / 1.062 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.3927, allocations: 29.7 kB / 1.062 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.409e-05/0.3928, allocations: 92.23 kB / 1.062 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.232e-05/0.3929, allocations: 11.84 kB / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.055e-06/0.3929, allocations: 4 kB / 1.062 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.393, allocations: 326.8 kB / 1.062 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.879e-05/0.3931, allocations: 27.98 kB / 1.062 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.39e-05/0.3932, allocations: 54.48 kB / 1.062 GB, free: 0.6641 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.3933, allocations: 35.98 kB / 1.062 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3933, allocations: 4 kB / 1.062 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002396/0.3936, allocations: 113.5 kB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.3936, allocations: 5.875 kB / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.3936, allocations: 4 kB / 1.063 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.3936, allocations: 7.938 kB / 1.063 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.3937, allocations: 20.05 kB / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3938, allocations: 0 / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.029e-05/0.3938, allocations: 15.89 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.3939, allocations: 0 / 1.063 GB, free: 468 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 0.0001071/0.394, allocations: 125.7 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.535e-05/0.394, allocations: 3.906 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.07e-05/0.394, allocations: 12.38 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.394, allocations: 4 kB / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.394, allocations: 3.984 kB / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.394, allocations: 0 / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004783/0.3945, allocations: 394.4 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3945, allocations: 0 / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.045e-05/0.3946, allocations: 4 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.3946, allocations: 4 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.3946, allocations: 3.938 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.3946, allocations: 0 / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3946, allocations: 4 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002952/0.3949, allocations: 211.8 kB / 1.063 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.282e-05/0.395, allocations: 85.11 kB / 1.063 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.395, allocations: 4 kB / 1.063 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.528e-05/0.3951, allocations: 7.984 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.3952, allocations: 4 kB / 1.063 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.3952, allocations: 3.984 kB / 1.063 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.778e-05/0.3953, allocations: 91.28 kB / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.365e-06/0.3953, allocations: 0 / 1.063 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003519/0.3956, allocations: 47.83 kB / 1.064 GB, free: 15.36 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.0004633/0.3961, allocations: 169.8 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002647/0.3964, allocations: 71.95 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3964, allocations: 8.062 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.3965, allocations: 39.97 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.3968, allocations: 9.328 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.0004921/0.3973, allocations: 201.1 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.3976, allocations: 0.6887 MB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.827e-05/0.3977, allocations: 8.172 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.865e-05/0.3977, allocations: 11.44 kB / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of SimCode: time 2.284e-06/0.3977, allocations: 0 / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of Templates: time 0.004823/0.4026, allocations: 1.342 MB / 1.066 GB, free: 12.77 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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