Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.0008075/0.0008073, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005433/0.005433, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.377/1.377, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.424/2.424, allocations: 390.9 MB / 0.6663 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003675, allocations: 8 kB / 0.816 GB, free: 13.19 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7687/0.7691, allocations: 142.4 MB / 0.955 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.00189/0.771, allocations: 1.217 MB / 0.9562 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001327/0.7724, allocations: 0.7135 MB / 0.9569 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.95e-05/0.7725, allocations: 1.219 kB / 0.9569 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.115e-05/0.7725, allocations: 3.938 kB / 0.9569 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.961e-05/0.7726, allocations: 18 kB / 0.9569 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006077/0.7732, allocations: 104.4 kB / 0.957 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001371/0.7734, allocations: 74.12 kB / 0.9571 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.7735, allocations: 17.47 kB / 0.9571 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.7736, allocations: 29.27 kB / 0.9572 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.35e-05/0.7737, allocations: 35.77 kB / 0.9572 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.997e-05/0.7737, allocations: 3.562 kB / 0.9572 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002359/0.774, allocations: 92.88 kB / 0.9573 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.59e-05/0.774, allocations: 10.48 kB / 0.9573 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.264e-05/0.7741, allocations: 61.73 kB / 0.9574 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.7743, allocations: 131.1 kB / 0.9575 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.7743, allocations: 1.25 kB / 0.9575 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.072e-06/0.7743, allocations: 3.938 kB / 0.9575 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.371e-06/0.7744, allocations: 0 / 0.9575 GB, free: 5.789 MB / 0.7169 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.0005889/0.775, allocations: 409.3 kB / 0.9579 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.775, allocations: 8.906 kB / 0.9579 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.16e-05/0.7751, allocations: 9.219 kB / 0.9579 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.584e-05/0.7752, allocations: 171.6 kB / 0.9581 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.361e-05/0.7752, allocations: 2.438 kB / 0.9581 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.434e-05/0.7753, allocations: 12.75 kB / 0.9581 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002004/0.7755, allocations: 82.91 kB / 0.9582 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.7755, allocations: 0 / 0.9582 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.7755, allocations: 1.344 kB / 0.9582 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.7755, allocations: 1.5 kB / 0.9582 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/0.7757, allocations: 41.78 kB / 0.9582 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006074/0.7763, allocations: 324.9 kB / 0.9585 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.7764, allocations: 51.41 kB / 0.9586 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.7765, allocations: 39.09 kB / 0.9586 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.7766, allocations: 2 kB / 0.9586 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.7768, allocations: 74.69 kB / 0.9587 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.7768, allocations: 0 / 0.9587 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004022/0.7772, allocations: 157.3 kB / 0.9588 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.405e-05/0.7772, allocations: 53.38 kB / 0.9589 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.76e-05/0.7773, allocations: 116.6 kB / 0.959 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.7773, allocations: 30.89 kB / 0.959 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.505e-05/0.7774, allocations: 98.38 kB / 0.9591 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.819e-05/0.7774, allocations: 19 kB / 0.9591 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.751e-05/0.7774, allocations: 18.44 kB / 0.9591 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.232e-05/0.7775, allocations: 328.2 kB / 0.9594 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.324e-05/0.7776, allocations: 25.36 kB / 0.9595 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.476e-05/0.7777, allocations: 51.73 kB / 0.9595 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/0.7778, allocations: 82.52 kB / 0.9596 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.7778, allocations: 3.938 kB / 0.9596 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002382/0.7781, allocations: 115.1 kB / 0.9597 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.7781, allocations: 10.66 kB / 0.9597 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.7781, allocations: 1.375 kB / 0.9597 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.7781, allocations: 5.359 kB / 0.9597 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.954e-05/0.7782, allocations: 8.25 kB / 0.9597 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.7782, allocations: 1.375 kB / 0.9597 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.954e-05/0.7783, allocations: 17.42 kB / 0.9598 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.7783, allocations: 6.75 kB / 0.9598 GB, free: 3.652 MB / 0.7169 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 6.971e-05/0.7784, allocations: 127.2 kB / 0.9599 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.629e-05/0.7784, allocations: 6.656 kB / 0.9599 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.449e-05/0.7785, allocations: 9.75 kB / 0.9599 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.7785, allocations: 5.359 kB / 0.9599 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.7785, allocations: 1.375 kB / 0.9599 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.7785, allocations: 0 / 0.9599 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003845/0.7789, allocations: 384.9 kB / 0.9603 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.7789, allocations: 3.938 kB / 0.9603 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.733e-05/0.7789, allocations: 4.125 kB / 0.9603 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.779, allocations: 1.375 kB / 0.9603 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.779, allocations: 5.375 kB / 0.9603 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.779, allocations: 0 / 0.9603 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.779, allocations: 7.922 kB / 0.9603 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002464/0.7792, allocations: 219.8 kB / 0.9605 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.172e-05/0.7793, allocations: 82.39 kB / 0.9606 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.7793, allocations: 1.375 kB / 0.9606 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.779e-05/0.7794, allocations: 12.11 kB / 0.9606 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.646e-05/0.7794, allocations: 6.688 kB / 0.9606 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.929e-06/0.7794, allocations: 6.734 kB / 0.9606 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.731e-05/0.7795, allocations: 93.55 kB / 0.9607 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7795, allocations: 4 kB / 0.9607 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003054/0.7798, allocations: 35.5 kB / 0.9607 GB, free: 2.742 MB / 0.7169 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.0003246/0.7801, allocations: 166.9 kB / 0.9609 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002418/0.7804, allocations: 82.69 kB / 0.961 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.7804, allocations: 0 / 0.961 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.7805, allocations: 39.14 kB / 0.961 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.7808, allocations: 8.562 kB / 0.961 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003631/0.7811, allocations: 203.4 kB / 0.9612 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001288/0.7813, allocations: 0.6933 MB / 0.9619 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.864e-05/0.7813, allocations: 4.125 kB / 0.9619 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.751e-05/0.7814, allocations: 13.77 kB / 0.9619 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of SimCode: time 7.81e-07/0.7814, allocations: 0 / 0.9619 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of Templates: time 0.00437/0.7857, allocations: 1.358 MB / 0.9632 GB, free: 0.9609 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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