Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.006677/0.006677, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.002781/0.002781, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.557/2.557, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.91 kB / 1.054 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8716/0.8728, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002904/0.8758, allocations: 1.497 MB / 1.209 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.8773, allocations: 0.7244 MB / 1.21 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.221e-05/0.8774, allocations: 7.938 kB / 1.21 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.354e-05/0.8775, allocations: 3.938 kB / 1.21 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.443e-05/0.8775, allocations: 11.92 kB / 1.21 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008305/0.8784, allocations: 131.5 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001547/0.8786, allocations: 67.83 kB / 1.21 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.8787, allocations: 15.95 kB / 1.21 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.8788, allocations: 39.89 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.356e-05/0.8789, allocations: 35.84 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.239e-05/0.8789, allocations: 8 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002374/0.8792, allocations: 95.84 kB / 1.21 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.987e-05/0.8792, allocations: 19.92 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.281e-05/0.8793, allocations: 31.84 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002912/0.8796, allocations: 147.3 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.8796, allocations: 0 / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.363e-06/0.8796, allocations: 0 / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.8796, allocations: 0 / 1.21 GB, free: 10.82 MB / 0.9356 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.000697/0.8803, allocations: 423 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.8803, allocations: 8.031 kB / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.008e-05/0.8804, allocations: 12.84 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.8805, allocations: 172.2 kB / 1.211 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.8806, allocations: 4.359 kB / 1.211 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.8806, allocations: 8.375 kB / 1.211 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001835/0.8808, allocations: 69.97 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.8808, allocations: 3.984 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.8808, allocations: 0 / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.8808, allocations: 0 / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001475/0.881, allocations: 47.91 kB / 1.211 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006253/0.8816, allocations: 316.7 kB / 1.211 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.8817, allocations: 42.56 kB / 1.212 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.217e-05/0.8818, allocations: 32.97 kB / 1.212 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.8819, allocations: 4 kB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002355/0.8821, allocations: 83.31 kB / 1.212 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.784e-06/0.8821, allocations: 0 / 1.212 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0003982/0.8825, allocations: 137.8 kB / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.8826, allocations: 55.41 kB / 1.212 GB, free: 9.242 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.781e-05/0.8827, allocations: 125.7 kB / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.8827, allocations: 29.7 kB / 1.212 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.895e-05/0.8828, allocations: 100.2 kB / 1.212 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/0.8828, allocations: 7.812 kB / 1.212 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.673e-05/0.8828, allocations: 33.7 kB / 1.212 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.499e-05/0.8829, allocations: 322.8 kB / 1.212 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.34e-05/0.883, allocations: 23.98 kB / 1.212 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.067e-05/0.8831, allocations: 54.88 kB / 1.212 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.8833, allocations: 82.55 kB / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.8833, allocations: 0 / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002364/0.8836, allocations: 109.5 kB / 1.213 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.8836, allocations: 4.062 kB / 1.213 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.8836, allocations: 4 kB / 1.213 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.8836, allocations: 4 kB / 1.213 GB, free: 8.301 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.649e-05/0.8837, allocations: 15.92 kB / 1.213 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.8837, allocations: 0 / 1.213 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.851e-05/0.8838, allocations: 11.94 kB / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.8838, allocations: 8 kB / 1.213 GB, free: 8.266 MB / 0.9356 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 8.802e-05/0.8839, allocations: 121.8 kB / 1.213 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.8839, allocations: 11.91 kB / 1.213 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.53e-05/0.884, allocations: 8.375 kB / 1.213 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.884, allocations: 4 kB / 1.213 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.884, allocations: 0 / 1.213 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.884, allocations: 0 / 1.213 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004274/0.8844, allocations: 378.4 kB / 1.213 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.8844, allocations: 0 / 1.213 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.338e-05/0.8845, allocations: 11.98 kB / 1.213 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.8845, allocations: 0 / 1.213 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.8845, allocations: 4 kB / 1.213 GB, free: 7.668 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.8845, allocations: 4 kB / 1.213 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.8845, allocations: 3.938 kB / 1.213 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.8848, allocations: 203.4 kB / 1.213 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.891e-05/0.8849, allocations: 89 kB / 1.214 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.8849, allocations: 4 kB / 1.214 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.885, allocations: 4 kB / 1.214 GB, free: 7.332 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.596e-05/0.885, allocations: 11.92 kB / 1.214 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.8851, allocations: 4 kB / 1.214 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.962e-05/0.8851, allocations: 91.27 kB / 1.214 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8851, allocations: 3.938 kB / 1.214 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003055/0.8854, allocations: 39.94 kB / 1.214 GB, free: 7.184 MB / 0.9356 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.0003265/0.8858, allocations: 166.4 kB / 1.214 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002406/0.886, allocations: 76.11 kB / 1.214 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.886, allocations: 0 / 1.214 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.8861, allocations: 39.92 kB / 1.214 GB, free: 6.914 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.8864, allocations: 7.984 kB / 1.214 GB, free: 6.906 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004187/0.8868, allocations: 184.5 kB / 1.214 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.8871, allocations: 0.6846 MB / 1.215 GB, free: 5.984 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.632e-05/0.8871, allocations: 4 kB / 1.215 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.245e-05/0.8872, allocations: 15.42 kB / 1.215 GB, free: 5.965 MB / 0.9356 GB Notification: Performance of SimCode: time 3.71e-07/0.8872, allocations: 0 / 1.215 GB, free: 5.965 MB / 0.9356 GB Notification: Performance of Templates: time 0.004238/0.8914, allocations: 1.463 MB / 1.216 GB, free: 4.508 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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