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.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.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.0009458/0.0009459, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001144/0.001144, allocations: 168.7 kB / 15.95 MB, free: 204 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.489/1.489, allocations: 223.3 MB / 240 MB, free: 5.41 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.545/2.545, allocations: 390.9 MB / 0.666 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003438, allocations: 8 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7765/0.7768, allocations: 142.4 MB / 0.9544 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.001557/0.7784, allocations: 1.205 MB / 0.9556 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001079/0.7795, allocations: 0.6824 MB / 0.9563 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.532e-05/0.7796, allocations: 0 / 0.9563 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.214e-05/0.7796, allocations: 7.922 kB / 0.9563 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.533e-05/0.7797, allocations: 5.656 kB / 0.9563 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000489/0.7802, allocations: 101.2 kB / 0.9564 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000105/0.7803, allocations: 68.78 kB / 0.9564 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.167e-05/0.7804, allocations: 17.45 kB / 0.9565 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.887e-05/0.7805, allocations: 26.3 kB / 0.9565 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.104e-05/0.7806, allocations: 38.94 kB / 0.9565 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.696e-05/0.7806, allocations: 2.312 kB / 0.9565 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.7808, allocations: 81.67 kB / 0.9566 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.399e-05/0.7808, allocations: 14.77 kB / 0.9566 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.942e-05/0.7808, allocations: 38.28 kB / 0.9567 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.781, allocations: 92.14 kB / 0.9567 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.781, allocations: 4 kB / 0.9567 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.984e-06/0.781, allocations: 0 / 0.9567 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.7811, allocations: 0 / 0.9567 GB, free: 5.859 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.0005304/0.7816, allocations: 414.6 kB / 0.9571 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.7816, allocations: 9.031 kB / 0.9572 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.048e-05/0.7817, allocations: 15.61 kB / 0.9572 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.96e-05/0.7818, allocations: 170.7 kB / 0.9573 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.016e-05/0.7818, allocations: 6.062 kB / 0.9573 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.024e-05/0.7818, allocations: 4.125 kB / 0.9573 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.782, allocations: 69.81 kB / 0.9574 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.782, allocations: 1.125 kB / 0.9574 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.7821, allocations: 0 / 0.9574 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.7821, allocations: 1 kB / 0.9574 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.7822, allocations: 50.55 kB / 0.9575 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005154/0.7827, allocations: 325.7 kB / 0.9578 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.7829, allocations: 57.73 kB / 0.9578 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.536e-05/0.7829, allocations: 31.72 kB / 0.9579 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.783, allocations: 1.5 kB / 0.9579 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/0.7831, allocations: 82.8 kB / 0.9579 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.7832, allocations: 5.688 kB / 0.9579 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003954/0.7836, allocations: 145.6 kB / 0.9581 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.7836, allocations: 55.41 kB / 0.9581 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.76e-05/0.7837, allocations: 123.4 kB / 0.9582 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.7837, allocations: 27.89 kB / 0.9583 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.962e-05/0.7837, allocations: 90.86 kB / 0.9584 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.7838, allocations: 22.7 kB / 0.9584 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-06/0.7838, allocations: 3.938 kB / 0.9584 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.304e-05/0.7838, allocations: 316.3 kB / 0.9587 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.839e-05/0.7839, allocations: 29.23 kB / 0.9587 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.412e-05/0.784, allocations: 59.23 kB / 0.9588 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.521e-05/0.7841, allocations: 35.14 kB / 0.9588 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.7841, allocations: 1.312 kB / 0.9588 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002152/0.7843, allocations: 117.4 kB / 0.9589 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.7844, allocations: 9.344 kB / 0.9589 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.7844, allocations: 5.078 kB / 0.9589 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.7844, allocations: 1.219 kB / 0.9589 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.934e-05/0.7845, allocations: 9.062 kB / 0.9589 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.7845, allocations: 5.047 kB / 0.9589 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.359e-05/0.7846, allocations: 22.11 kB / 0.959 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.7846, allocations: 6.844 kB / 0.959 GB, free: 3.762 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.995e-05/0.7847, allocations: 123.2 kB / 0.9591 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.269e-05/0.7847, allocations: 2.688 kB / 0.9591 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.47e-05/0.7847, allocations: 13.61 kB / 0.9591 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.7847, allocations: 5.266 kB / 0.9591 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.7847, allocations: 0 / 0.9591 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.7847, allocations: 0 / 0.9591 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003653/0.7851, allocations: 389.5 kB / 0.9595 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.7851, allocations: 0 / 0.9595 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-05/0.7852, allocations: 8.375 kB / 0.9595 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.7852, allocations: 3.953 kB / 0.9595 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.7852, allocations: 5.766 kB / 0.9595 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.7852, allocations: 0 / 0.9595 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.7852, allocations: 1.719 kB / 0.9595 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/0.7854, allocations: 209.4 kB / 0.9597 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.406e-05/0.7855, allocations: 82.95 kB / 0.9598 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.7855, allocations: 9.406 kB / 0.9598 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.483e-05/0.7856, allocations: 4.656 kB / 0.9598 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.7856, allocations: 11.05 kB / 0.9598 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.7857, allocations: 1.625 kB / 0.9598 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.586e-05/0.7857, allocations: 92.17 kB / 0.9599 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7857, allocations: 4 kB / 0.9599 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002966/0.786, allocations: 39.69 kB / 0.9599 GB, free: 2.859 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.0003247/0.7863, allocations: 168.9 kB / 0.9601 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002382/0.7866, allocations: 81.69 kB / 0.9602 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.7866, allocations: 0 / 0.9602 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.76e-05/0.7867, allocations: 39.3 kB / 0.9602 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.787, allocations: 12.8 kB / 0.9602 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000364/0.7873, allocations: 202.6 kB / 0.9604 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.7875, allocations: 0.6852 MB / 0.9611 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.876e-05/0.7875, allocations: 8.297 kB / 0.9611 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.408e-05/0.7875, allocations: 10.19 kB / 0.9611 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of SimCode: time 4.31e-07/0.7875, allocations: 0 / 0.9611 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of Templates: time 0.004038/0.7916, allocations: 1.34 MB / 0.9624 GB, free: 1.09 MB / 0.7169 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