Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.Zhang2012WindowsEast,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.Zhang2012WindowsEast") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,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.Zhang2012WindowsEast") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008611/0.008611, allocations: 169.1 kB / 16.26 MB, free: 6.328 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.397/1.397, allocations: 223.3 MB / 240.3 MB, free: 5.324 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.454/2.454, allocations: 390.9 MB / 0.6663 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003186/0.0003187, allocations: 8.281 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6965/0.6968, allocations: 142.4 MB / 0.955 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.001467/0.6983, allocations: 1.216 MB / 0.9562 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001137/0.6995, allocations: 0.7172 MB / 0.9569 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.508e-05/0.6995, allocations: 0.8438 kB / 0.9569 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.274e-05/0.6996, allocations: 3.938 kB / 0.9569 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.454e-05/0.6996, allocations: 10.33 kB / 0.9569 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004805/0.7001, allocations: 104.2 kB / 0.957 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.439e-05/0.7002, allocations: 78.58 kB / 0.9571 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.501e-05/0.7003, allocations: 12.98 kB / 0.9571 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.65e-05/0.7004, allocations: 33.28 kB / 0.9572 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.434e-05/0.7005, allocations: 35.05 kB / 0.9572 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.704e-05/0.7005, allocations: 4.344 kB / 0.9572 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.7007, allocations: 92.62 kB / 0.9573 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.271e-05/0.7007, allocations: 11.2 kB / 0.9573 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.802e-05/0.7008, allocations: 53.97 kB / 0.9573 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002016/0.701, allocations: 138.8 kB / 0.9575 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.701, allocations: 0 / 0.9575 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.493e-06/0.701, allocations: 1.906 kB / 0.9575 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.701, allocations: 0 / 0.9575 GB, free: 6.207 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.0005241/0.7016, allocations: 412.2 kB / 0.9579 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.7016, allocations: 9.156 kB / 0.9579 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.036e-05/0.7016, allocations: 9.156 kB / 0.9579 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.041e-05/0.7017, allocations: 168 kB / 0.9581 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.7018, allocations: 10.78 kB / 0.9581 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.7018, allocations: 7.641 kB / 0.9581 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.702, allocations: 79.25 kB / 0.9581 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.702, allocations: 0 / 0.9581 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.702, allocations: 5.141 kB / 0.9581 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.702, allocations: 1.812 kB / 0.9582 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001404/0.7022, allocations: 45.5 kB / 0.9582 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005363/0.7027, allocations: 318.4 kB / 0.9585 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.7029, allocations: 54.47 kB / 0.9585 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.288e-05/0.703, allocations: 34.91 kB / 0.9586 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.703, allocations: 1.781 kB / 0.9586 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001771/0.7032, allocations: 78.84 kB / 0.9587 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.694e-06/0.7032, allocations: 4 kB / 0.9587 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003915/0.7036, allocations: 144.9 kB / 0.9588 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/0.7036, allocations: 62.08 kB / 0.9589 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.801e-05/0.7037, allocations: 120.9 kB / 0.959 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.7037, allocations: 31.08 kB / 0.959 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.646e-05/0.7038, allocations: 98.78 kB / 0.9591 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.7038, allocations: 13.19 kB / 0.9591 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.88e-05/0.7038, allocations: 17.84 kB / 0.9591 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.616e-05/0.7039, allocations: 329.5 kB / 0.9594 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.719e-05/0.704, allocations: 29.8 kB / 0.9595 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.7041, allocations: 55.17 kB / 0.9595 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001894/0.7043, allocations: 78.23 kB / 0.9596 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.7043, allocations: 1.375 kB / 0.9596 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002896/0.7046, allocations: 121.8 kB / 0.9597 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.7046, allocations: 6.75 kB / 0.9597 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.7046, allocations: 1.375 kB / 0.9597 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.7047, allocations: 1.375 kB / 0.9597 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.7048, allocations: 12.23 kB / 0.9597 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.7048, allocations: 1.375 kB / 0.9597 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.739e-05/0.7049, allocations: 21.48 kB / 0.9598 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.7049, allocations: 4.125 kB / 0.9598 GB, free: 4.062 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 0.0001003/0.705, allocations: 121.8 kB / 0.9599 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.243e-05/0.705, allocations: 10.66 kB / 0.9599 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.312e-05/0.7051, allocations: 11.12 kB / 0.9599 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.7051, allocations: 0 / 0.9599 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.7051, allocations: 5.359 kB / 0.9599 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.7051, allocations: 0 / 0.9599 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005005/0.7056, allocations: 385.3 kB / 0.9603 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.7056, allocations: 0 / 0.9603 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.558e-05/0.7057, allocations: 7.656 kB / 0.9603 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.7057, allocations: 1.031 kB / 0.9603 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.7057, allocations: 4.844 kB / 0.9603 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.7057, allocations: 0.8438 kB / 0.9603 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.7057, allocations: 5 kB / 0.9603 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003569/0.7061, allocations: 219.4 kB / 0.9605 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.347e-05/0.7061, allocations: 82.39 kB / 0.9606 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.302e-05/0.7062, allocations: 1.562 kB / 0.9606 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.163e-05/0.7063, allocations: 7.672 kB / 0.9606 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.981e-05/0.7063, allocations: 15.19 kB / 0.9606 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.7064, allocations: 9.203 kB / 0.9606 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.76e-05/0.7064, allocations: 93.14 kB / 0.9607 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7064, allocations: 0 / 0.9607 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003792/0.7068, allocations: 36.44 kB / 0.9607 GB, free: 3.152 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.0003954/0.7072, allocations: 169.6 kB / 0.9609 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000269/0.7075, allocations: 75.77 kB / 0.961 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.7075, allocations: 0 / 0.961 GB, free: 3 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.7076, allocations: 42.78 kB / 0.961 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.7079, allocations: 13.88 kB / 0.961 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003842/0.7083, allocations: 198.8 kB / 0.9612 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001114/0.7084, allocations: 0.689 MB / 0.9619 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.826e-05/0.7085, allocations: 6.75 kB / 0.9619 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.525e-05/0.7085, allocations: 15.55 kB / 0.9619 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.7085, allocations: 0 / 0.9619 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of Templates: time 0.004103/0.7126, allocations: 1.351 MB / 0.9632 GB, free: 1.379 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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