Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007749/0.007749, allocations: 102.5 kB / 15.73 MB, free: 6.012 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.001525/0.001525, allocations: 192 kB / 16.67 MB, free: 5.926 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.129 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.79/2.79, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 63.89 kB / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3755/0.3774, allocations: 159.1 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002597/0.38, allocations: 1.511 MB / 1.222 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001262/0.3812, allocations: 0.7323 MB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.476e-05/0.3813, allocations: 3.938 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.903e-05/0.3813, allocations: 3.938 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.689e-05/0.3814, allocations: 11.88 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005728/0.3819, allocations: 123.6 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.382, allocations: 75.81 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.152e-05/0.3821, allocations: 11.95 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.614e-05/0.3822, allocations: 31.86 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.206e-05/0.3823, allocations: 47.81 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.3823, allocations: 8 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.3825, allocations: 91.91 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.676e-05/0.3825, allocations: 23.86 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.529e-05/0.3826, allocations: 31.86 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002305/0.3828, allocations: 143.5 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3828, allocations: 0 / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3828, allocations: 0 / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.3828, allocations: 0 / 1.223 GB, free: 10.95 MB / 0.9825 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.0006454/0.3835, allocations: 424.7 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.3835, allocations: 8.031 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.417e-05/0.3835, allocations: 8.891 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.3836, allocations: 168.3 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.3837, allocations: 384 / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.251e-05/0.3837, allocations: 12.31 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.3839, allocations: 73.91 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.3839, allocations: 0 / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.3839, allocations: 3.984 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.3839, allocations: 0 / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.384, allocations: 39.98 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006197/0.3847, allocations: 324.7 kB / 1.224 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.3848, allocations: 50.44 kB / 1.224 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.195e-05/0.3849, allocations: 32.97 kB / 1.224 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.3849, allocations: 0 / 1.224 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001605/0.385, allocations: 75.38 kB / 1.225 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.385, allocations: 0 / 1.225 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0003837/0.3854, allocations: 141.5 kB / 1.225 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.3855, allocations: 55.39 kB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.696e-05/0.3856, allocations: 125.8 kB / 1.225 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.3856, allocations: 29.7 kB / 1.225 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.272e-05/0.3856, allocations: 92.12 kB / 1.225 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.039e-05/0.3857, allocations: 19.97 kB / 1.225 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.328e-05/0.3857, allocations: 29.7 kB / 1.225 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.869e-05/0.3858, allocations: 314.8 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.358e-05/0.3859, allocations: 27.98 kB / 1.225 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.94e-05/0.386, allocations: 50.55 kB / 1.225 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.3861, allocations: 74.48 kB / 1.225 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3861, allocations: 0 / 1.225 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002254/0.3864, allocations: 117.5 kB / 1.226 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.3864, allocations: 7.938 kB / 1.226 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.3864, allocations: 4 kB / 1.226 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.3864, allocations: 0 / 1.226 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.3865, allocations: 8 kB / 1.226 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.3865, allocations: 3.984 kB / 1.226 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.587e-05/0.3866, allocations: 7.938 kB / 1.226 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.3866, allocations: 8 kB / 1.226 GB, free: 8.406 MB / 0.9825 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.767e-05/0.3867, allocations: 126.3 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.816e-05/0.3867, allocations: 7.953 kB / 1.226 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.175e-05/0.3867, allocations: 12.36 kB / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3868, allocations: 0 / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3868, allocations: 0 / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3868, allocations: 0 / 1.226 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004389/0.3872, allocations: 382.8 kB / 1.226 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3872, allocations: 0 / 1.226 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.989e-05/0.3872, allocations: 11.94 kB / 1.226 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3872, allocations: 0 / 1.226 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.3873, allocations: 3.984 kB / 1.226 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3873, allocations: 4 kB / 1.226 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3873, allocations: 3.938 kB / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002617/0.3875, allocations: 203.6 kB / 1.226 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.619e-05/0.3876, allocations: 85.06 kB / 1.226 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.3876, allocations: 7.984 kB / 1.226 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.948e-05/0.3877, allocations: 4 kB / 1.226 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.651e-05/0.3877, allocations: 23.84 kB / 1.226 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.3877, allocations: 4 kB / 1.226 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.258e-05/0.3878, allocations: 91.27 kB / 1.227 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3878, allocations: 0 / 1.227 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003041/0.3881, allocations: 39.88 kB / 1.227 GB, free: 7.309 MB / 0.9825 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.0003458/0.3884, allocations: 168.1 kB / 1.227 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002381/0.3887, allocations: 71.94 kB / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3887, allocations: 0 / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.106e-05/0.3888, allocations: 31.92 kB / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.389, allocations: 10.02 kB / 1.227 GB, free: 7.043 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004238/0.3894, allocations: 196.2 kB / 1.227 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.3897, allocations: 0.6885 MB / 1.228 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.522e-05/0.3897, allocations: 4 kB / 1.228 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.918e-05/0.3897, allocations: 7.438 kB / 1.228 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.3897, allocations: 0 / 1.228 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of Templates: time 0.004399/0.3941, allocations: 1.461 MB / 1.229 GB, free: 4.641 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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