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.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.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.001354/0.001354, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00173/0.00173, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.428/1.428, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.784/2.784, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 63.27 kB / 0.8984 GB, free: 37.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3806/0.382, allocations: 157.4 MB / 1.052 GB, free: 8.863 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002748/0.3848, allocations: 1.558 MB / 1.054 GB, free: 7.293 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001268/0.3861, allocations: 0.7439 MB / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.621e-05/0.3861, allocations: 4 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.97e-05/0.3862, allocations: 3.984 kB / 1.054 GB, free: 6.535 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.553e-05/0.3863, allocations: 15.75 kB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004901/0.3867, allocations: 99.83 kB / 1.054 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.3869, allocations: 75.77 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.387e-05/0.387, allocations: 7.984 kB / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.411e-05/0.3871, allocations: 31.92 kB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.477e-05/0.3871, allocations: 39.83 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/0.3872, allocations: 4 kB / 1.055 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001882/0.3874, allocations: 87.84 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.801e-05/0.3874, allocations: 19.91 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.955e-05/0.3875, allocations: 31.86 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002256/0.3877, allocations: 139.9 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3877, allocations: 0 / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.91e-07/0.3877, allocations: 0 / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.3877, allocations: 0 / 1.055 GB, free: 5.992 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.0006498/0.3884, allocations: 409 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3884, allocations: 12.03 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.603e-05/0.3885, allocations: 4.844 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.3886, allocations: 184.1 kB / 1.055 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.3886, allocations: 12.38 kB / 1.055 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.3887, allocations: 4.375 kB / 1.055 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.3888, allocations: 69.97 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.3889, allocations: 0 / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.3889, allocations: 4 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3889, allocations: 0 / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.389, allocations: 39.95 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005916/0.3896, allocations: 316.7 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/0.3898, allocations: 46.56 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.518e-05/0.3899, allocations: 40.89 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.3899, allocations: 0 / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002314/0.3901, allocations: 83.44 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.3901, allocations: 0 / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004068/0.3906, allocations: 141.5 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.3906, allocations: 55.41 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.3907, allocations: 121.8 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.3907, allocations: 33.7 kB / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.223e-05/0.3908, allocations: 88.14 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.007e-05/0.3908, allocations: 19.75 kB / 1.056 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.986e-05/0.3909, allocations: 25.7 kB / 1.057 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.391, allocations: 326.8 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.23e-05/0.3911, allocations: 23.98 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.476e-05/0.3912, allocations: 50.55 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.3914, allocations: 78.48 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3914, allocations: 3.938 kB / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000239/0.3916, allocations: 113.5 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.3916, allocations: 4 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3917, allocations: 4.062 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.3917, allocations: 0 / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.3918, allocations: 15.98 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.3918, allocations: 400 / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.885e-05/0.3919, allocations: 11.84 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.3919, allocations: 7.984 kB / 1.057 GB, free: 3.441 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 0.0001098/0.392, allocations: 123.3 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.863e-05/0.392, allocations: 7.938 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.868e-05/0.3921, allocations: 8.375 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.3921, allocations: 0 / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3921, allocations: 0 / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.3921, allocations: 4 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005097/0.3926, allocations: 394.2 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3926, allocations: 0 / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.315e-05/0.3927, allocations: 7.984 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3927, allocations: 0 / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.3927, allocations: 4 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3927, allocations: 0 / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/0.3927, allocations: 3.938 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002983/0.393, allocations: 211.4 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.395e-05/0.3931, allocations: 77.11 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.3931, allocations: 4 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.869e-05/0.3932, allocations: 3.984 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.3933, allocations: 15.88 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.3933, allocations: 0 / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.084e-05/0.3933, allocations: 99.27 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3933, allocations: 0 / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000312/0.3937, allocations: 39.98 kB / 1.058 GB, free: 2.359 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.0004099/0.3941, allocations: 167.4 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002477/0.3943, allocations: 67.91 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3944, allocations: 4 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.3945, allocations: 39.95 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.3947, allocations: 6 kB / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004258/0.3952, allocations: 202.2 kB / 1.059 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.3955, allocations: 0.6887 MB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.826e-05/0.3955, allocations: 7.984 kB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.803e-05/0.3956, allocations: 7.438 kB / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3956, allocations: 0 / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of Templates: time 0.004219/0.3998, allocations: 1.369 MB / 1.061 GB, free: 15.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