Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,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.Zhang2012WindowsAll") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,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.Zhang2012WindowsAll") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007586/0.007586, allocations: 99.5 kB / 15.73 MB, free: 5.996 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.001777/0.001778, allocations: 199.5 kB / 16.68 MB, free: 5.918 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.437/2.437, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 71.89 kB / 0.9508 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9691/0.9703, allocations: 140.4 MB / 1.088 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002536/0.9729, allocations: 1.498 MB / 1.089 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001223/0.9742, allocations: 0.7363 MB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.465e-05/0.9742, allocations: 1.281 kB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.788e-05/0.9743, allocations: 5.109 kB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.21e-05/0.9743, allocations: 9.703 kB / 1.09 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005759/0.9749, allocations: 124.9 kB / 1.09 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.9751, allocations: 77.14 kB / 1.09 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.9752, allocations: 16.09 kB / 1.09 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.849e-05/0.9753, allocations: 31.08 kB / 1.09 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.373e-05/0.9754, allocations: 36.25 kB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/0.9754, allocations: 7.531 kB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002151/0.9756, allocations: 98.36 kB / 1.09 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.182e-05/0.9756, allocations: 19.27 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.635e-05/0.9757, allocations: 35.84 kB / 1.091 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002579/0.976, allocations: 137.1 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.976, allocations: 0.7031 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.863e-06/0.976, allocations: 0.8125 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.976, allocations: 0 / 1.091 GB, free: 3.746 MB / 0.8575 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.0005952/0.9766, allocations: 420.2 kB / 1.091 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.9766, allocations: 9.875 kB / 1.091 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.544e-05/0.9767, allocations: 8.328 kB / 1.091 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.9768, allocations: 178 kB / 1.091 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.9768, allocations: 15.2 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.9769, allocations: 3.906 kB / 1.091 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/0.9771, allocations: 69.03 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.9771, allocations: 0 / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.9771, allocations: 1.406 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.9771, allocations: 0.875 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000142/0.9773, allocations: 40.66 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005645/0.9778, allocations: 317.7 kB / 1.092 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.978, allocations: 54.53 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.855e-05/0.9781, allocations: 31.47 kB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.9781, allocations: 5.312 kB / 1.092 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001846/0.9783, allocations: 81.23 kB / 1.092 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.9783, allocations: 0 / 1.092 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004425/0.9787, allocations: 141 kB / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.063e-05/0.9788, allocations: 54.7 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.184e-05/0.9789, allocations: 118.4 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.9789, allocations: 32.02 kB / 1.092 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.391e-05/0.979, allocations: 96.34 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.979, allocations: 11.75 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.955e-05/0.979, allocations: 25.23 kB / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.41e-05/0.9791, allocations: 323.6 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.864e-05/0.9792, allocations: 31.33 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.909e-05/0.9793, allocations: 49.91 kB / 1.093 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.9795, allocations: 81.42 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.9795, allocations: 0 / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002409/0.9797, allocations: 116.7 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.9798, allocations: 5.188 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.9798, allocations: 1 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.9798, allocations: 5.984 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.796e-05/0.9799, allocations: 11.36 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.9799, allocations: 0.9688 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.666e-05/0.98, allocations: 14.16 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.98, allocations: 3.25 kB / 1.093 GB, free: 1.75 MB / 0.8575 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 7.566e-05/0.9801, allocations: 123.6 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.801e-05/0.9801, allocations: 7.312 kB / 1.093 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.804e-05/0.9801, allocations: 11.33 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.9801, allocations: 4.969 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.9801, allocations: 0.7969 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.9802, allocations: 1.125 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004141/0.9806, allocations: 382.6 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.9806, allocations: 0 / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.04e-05/0.9806, allocations: 4.734 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.9806, allocations: 1.344 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.9807, allocations: 2.453 kB / 1.093 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.9807, allocations: 4.797 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.9807, allocations: 4.906 kB / 1.093 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.981, allocations: 206.7 kB / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.373e-05/0.981, allocations: 80.23 kB / 1.094 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.046e-05/0.981, allocations: 5.703 kB / 1.094 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.836e-05/0.9811, allocations: 3.844 kB / 1.094 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.9812, allocations: 9.062 kB / 1.094 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.9812, allocations: 7.406 kB / 1.094 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.763e-05/0.9812, allocations: 103.9 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9812, allocations: 0.7812 kB / 1.094 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003225/0.9816, allocations: 41.75 kB / 1.094 GB, free: 0.8945 MB / 0.8575 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.0003676/0.9819, allocations: 165.3 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002546/0.9822, allocations: 76.91 kB / 1.094 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.9822, allocations: 0 / 1.094 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.9823, allocations: 33.77 kB / 1.094 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.9826, allocations: 9.047 kB / 1.094 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004117/0.983, allocations: 182 kB / 1.094 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001821/0.9832, allocations: 0.6947 MB / 1.095 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.122e-05/0.9833, allocations: 9.391 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.009e-05/0.9833, allocations: 11.67 kB / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of SimCode: time 2.91e-07/0.9833, allocations: 0 / 1.095 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of Templates: time 0.005314/0.9886, allocations: 1.468 MB / 1.096 GB, free: 15.73 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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