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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001139/0.001139, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001407/0.001407, allocations: 172.7 kB / 15.95 MB, free: 208 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.539/1.539, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.465/2.465, allocations: 390.9 MB / 0.666 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003516, allocations: 8 kB / 0.8153 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8142/0.8146, allocations: 142.4 MB / 0.9544 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.001436/0.8161, allocations: 1.197 MB / 0.9556 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009866/0.8171, allocations: 0.6743 MB / 0.9563 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.718e-05/0.8171, allocations: 5.25 kB / 0.9563 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.496e-05/0.8171, allocations: 0 / 0.9563 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.288e-05/0.8172, allocations: 12.98 kB / 0.9563 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004459/0.8177, allocations: 100.9 kB / 0.9564 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.164e-05/0.8178, allocations: 65.67 kB / 0.9564 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.938e-05/0.8179, allocations: 13.36 kB / 0.9565 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.985e-05/0.8179, allocations: 37.2 kB / 0.9565 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.493e-05/0.818, allocations: 31.16 kB / 0.9565 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.589e-05/0.818, allocations: 3.531 kB / 0.9565 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001734/0.8182, allocations: 92.53 kB / 0.9566 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.89e-05/0.8182, allocations: 10.2 kB / 0.9566 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.119e-05/0.8183, allocations: 39.05 kB / 0.9567 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.8184, allocations: 95.25 kB / 0.9568 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.8185, allocations: 0.9688 kB / 0.9568 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.813e-06/0.8185, allocations: 0 / 0.9568 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.546e-06/0.8185, allocations: 0 / 0.9568 GB, free: 5.883 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.0004792/0.819, allocations: 417.7 kB / 0.9572 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.819, allocations: 9.562 kB / 0.9572 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.725e-05/0.819, allocations: 11.55 kB / 0.9572 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.572e-05/0.8191, allocations: 162.6 kB / 0.9573 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.8192, allocations: 2.281 kB / 0.9573 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.8192, allocations: 8.438 kB / 0.9573 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001706/0.8194, allocations: 69.81 kB / 0.9574 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.8194, allocations: 1.344 kB / 0.9574 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.8194, allocations: 3.984 kB / 0.9574 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.8194, allocations: 9.156 kB / 0.9574 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001377/0.8195, allocations: 49.92 kB / 0.9575 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005167/0.8201, allocations: 325.6 kB / 0.9578 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.8202, allocations: 47.19 kB / 0.9578 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.817e-05/0.8203, allocations: 34.34 kB / 0.9579 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.8203, allocations: 1.219 kB / 0.9579 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.8205, allocations: 92.7 kB / 0.9579 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.8205, allocations: 0 / 0.9579 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003689/0.8209, allocations: 143.5 kB / 0.9581 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.254e-05/0.8209, allocations: 60.7 kB / 0.9581 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.067e-05/0.821, allocations: 120.5 kB / 0.9583 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.821, allocations: 27.14 kB / 0.9583 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.193e-05/0.8211, allocations: 91.25 kB / 0.9584 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.976e-05/0.8211, allocations: 14.81 kB / 0.9584 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-06/0.8211, allocations: 0 / 0.9584 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.925e-05/0.8212, allocations: 317.8 kB / 0.9587 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.896e-05/0.8212, allocations: 40.66 kB / 0.9587 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.103e-05/0.8213, allocations: 46.56 kB / 0.9588 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.603e-05/0.8214, allocations: 31.33 kB / 0.9588 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.8214, allocations: 0 / 0.9588 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002233/0.8217, allocations: 122.7 kB / 0.9589 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.8217, allocations: 5.438 kB / 0.9589 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.8217, allocations: 5.703 kB / 0.9589 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.8217, allocations: 0 / 0.9589 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.26e-05/0.8218, allocations: 14.77 kB / 0.9589 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.8218, allocations: 0 / 0.9589 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.8219, allocations: 17.28 kB / 0.959 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.8219, allocations: 15.47 kB / 0.959 GB, free: 3.797 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,$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 6.958e-05/0.822, allocations: 119.2 kB / 0.9591 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.219e-05/0.822, allocations: 1.812 kB / 0.9591 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.762e-05/0.822, allocations: 10.16 kB / 0.9591 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.8221, allocations: 9.906 kB / 0.9591 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.8221, allocations: 0 / 0.9591 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.8221, allocations: 0 / 0.9591 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000354/0.8224, allocations: 388.3 kB / 0.9595 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.8225, allocations: 5.375 kB / 0.9595 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.942e-05/0.8225, allocations: 8.109 kB / 0.9595 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.8225, allocations: 3.953 kB / 0.9595 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.8225, allocations: 5.312 kB / 0.9595 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.8225, allocations: 1.453 kB / 0.9595 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.8225, allocations: 7.984 kB / 0.9595 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002249/0.8228, allocations: 210.5 kB / 0.9597 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.095e-05/0.8228, allocations: 87.75 kB / 0.9598 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.8228, allocations: 3.953 kB / 0.9598 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.603e-05/0.8229, allocations: 8.125 kB / 0.9598 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.194e-05/0.823, allocations: 14.67 kB / 0.9598 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.823, allocations: 2.75 kB / 0.9598 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.557e-05/0.823, allocations: 96.11 kB / 0.9599 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.823, allocations: 1.375 kB / 0.9599 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003119/0.8233, allocations: 39.48 kB / 0.9599 GB, free: 2.879 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 (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.0003164/0.8237, allocations: 154.6 kB / 0.9601 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002175/0.8239, allocations: 75.38 kB / 0.9602 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.8239, allocations: 3.938 kB / 0.9602 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.068e-05/0.824, allocations: 34.45 kB / 0.9602 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.8243, allocations: 19.2 kB / 0.9602 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003511/0.8246, allocations: 198.8 kB / 0.9604 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.8248, allocations: 0.6943 MB / 0.9611 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.712e-05/0.8248, allocations: 8.469 kB / 0.9611 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.358e-05/0.8248, allocations: 9.969 kB / 0.9611 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.8248, allocations: 0 / 0.9611 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of Templates: time 0.003952/0.8288, allocations: 1.34 MB / 0.9624 GB, free: 1.113 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