Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.Zhang2012WindowsSouth,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.Zhang2012WindowsSouth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,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.Zhang2012WindowsSouth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007698/0.007698, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001714/0.001714, allocations: 196.2 kB / 16.67 MB, free: 5.52 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.559/2.559, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001392, allocations: 71.88 kB / 1.054 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8162/0.8177, allocations: 157.4 MB / 1.208 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002465/0.8202, allocations: 1.498 MB / 1.209 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001485/0.8217, allocations: 0.7245 MB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.23e-05/0.8217, allocations: 0 / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.943e-05/0.8218, allocations: 3.938 kB / 1.21 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.81e-05/0.8219, allocations: 19.84 kB / 1.21 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000633/0.8225, allocations: 115.6 kB / 1.21 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.8227, allocations: 83.75 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.8228, allocations: 7.953 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.57e-05/0.8229, allocations: 43.84 kB / 1.21 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.245e-05/0.823, allocations: 43.83 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.976e-05/0.823, allocations: 4 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002055/0.8232, allocations: 91.91 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.588e-05/0.8233, allocations: 15.98 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.913e-05/0.8233, allocations: 43.72 kB / 1.21 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002556/0.8236, allocations: 139.3 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.8236, allocations: 0 / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.565e-06/0.8236, allocations: 0 / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.8236, allocations: 4 kB / 1.21 GB, free: 10.86 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.0007699/0.8244, allocations: 415 kB / 1.211 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.8245, allocations: 12.03 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.888e-05/0.8245, allocations: 8.844 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/0.8247, allocations: 172.3 kB / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.8247, allocations: 8.375 kB / 1.211 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.8247, allocations: 4.375 kB / 1.211 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.8249, allocations: 77.91 kB / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.825, allocations: 0 / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.825, allocations: 0 / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.825, allocations: 0 / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.8251, allocations: 35.97 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006729/0.8258, allocations: 324.7 kB / 1.211 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.826, allocations: 50.5 kB / 1.212 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.817e-05/0.8261, allocations: 32.97 kB / 1.212 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.8261, allocations: 3.984 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.8263, allocations: 75.38 kB / 1.212 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.734e-06/0.8263, allocations: 7.875 kB / 1.212 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004302/0.8268, allocations: 145.5 kB / 1.212 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.8268, allocations: 55.41 kB / 1.212 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.827, allocations: 117.8 kB / 1.212 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.827, allocations: 37.69 kB / 1.212 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.227e-05/0.827, allocations: 88.22 kB / 1.212 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/0.8271, allocations: 19.8 kB / 1.212 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.114e-05/0.8271, allocations: 29.7 kB / 1.212 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.8273, allocations: 322.8 kB / 1.212 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.09e-05/0.8273, allocations: 23.98 kB / 1.212 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.361e-05/0.8274, allocations: 47 kB / 1.212 GB, free: 8.555 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.8276, allocations: 78.48 kB / 1.213 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.8276, allocations: 0 / 1.213 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002418/0.8279, allocations: 113.5 kB / 1.213 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.8279, allocations: 4 kB / 1.213 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.8279, allocations: 64 / 1.213 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.8279, allocations: 4 kB / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.894e-05/0.828, allocations: 15.98 kB / 1.213 GB, free: 8.328 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.8281, allocations: 0 / 1.213 GB, free: 8.328 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.498e-05/0.8281, allocations: 7.938 kB / 1.213 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.8282, allocations: 8 kB / 1.213 GB, free: 8.312 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 0.0001059/0.8283, allocations: 125.7 kB / 1.213 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.71e-05/0.8283, allocations: 7.906 kB / 1.213 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.283e-05/0.8283, allocations: 8.375 kB / 1.213 GB, free: 8.16 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.8283, allocations: 3.984 kB / 1.213 GB, free: 8.156 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.8283, allocations: 3.938 kB / 1.213 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.8284, allocations: 4 kB / 1.213 GB, free: 8.148 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000464/0.8288, allocations: 378.5 kB / 1.213 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.8288, allocations: 0 / 1.213 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.397e-05/0.8289, allocations: 11.92 kB / 1.213 GB, free: 7.711 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.8289, allocations: 0 / 1.213 GB, free: 7.711 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.8289, allocations: 0 / 1.213 GB, free: 7.711 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.8289, allocations: 4 kB / 1.213 GB, free: 7.707 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.8289, allocations: 3.938 kB / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002837/0.8292, allocations: 211.4 kB / 1.213 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.569e-05/0.8293, allocations: 81.02 kB / 1.214 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.531e-05/0.8293, allocations: 4 kB / 1.214 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.526e-05/0.8294, allocations: 0 / 1.214 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.172e-05/0.8295, allocations: 23.92 kB / 1.214 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.878e-06/0.8295, allocations: 4 kB / 1.214 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.545e-05/0.8295, allocations: 95.42 kB / 1.214 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8295, allocations: 0 / 1.214 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003054/0.8299, allocations: 47.86 kB / 1.214 GB, free: 7.211 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.0003691/0.8302, allocations: 157.7 kB / 1.214 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002418/0.8305, allocations: 71.95 kB / 1.214 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.8305, allocations: 0 / 1.214 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.807e-05/0.8306, allocations: 39.91 kB / 1.214 GB, free: 6.953 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.8309, allocations: 7.938 kB / 1.214 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003757/0.8312, allocations: 176.4 kB / 1.214 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.8315, allocations: 0.6925 MB / 1.215 GB, free: 6.023 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.029e-05/0.8315, allocations: 7.984 kB / 1.215 GB, free: 6.016 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.981e-05/0.8316, allocations: 11.44 kB / 1.215 GB, free: 6.004 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.8316, allocations: 0 / 1.215 GB, free: 6.004 MB / 0.9356 GB Notification: Performance of Templates: time 0.004042/0.8356, allocations: 1.463 MB / 1.216 GB, free: 4.547 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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