Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Zhang2012WindowsAll,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.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_latest_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.006905/0.006905, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001102/0.001103, allocations: 198 kB / 16.68 MB, free: 5.969 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.971/2.971, allocations: 472.6 MB / 0.7453 GB, free: 4.539 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001226, allocations: 63.91 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3346, allocations: 159.9 MB / 1.226 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002754/0.3374, allocations: 1.499 MB / 1.227 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001267/0.3386, allocations: 0.7399 MB / 1.228 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.172e-05/0.3387, allocations: 0 / 1.228 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.109e-05/0.3387, allocations: 11.86 kB / 1.228 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.536e-05/0.3388, allocations: 15.86 kB / 1.228 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005006/0.3393, allocations: 119.6 kB / 1.228 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000115/0.3395, allocations: 75.84 kB / 1.228 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.154e-05/0.3396, allocations: 19.92 kB / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.188e-05/0.3396, allocations: 39.84 kB / 1.228 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.468e-05/0.3397, allocations: 35.84 kB / 1.228 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.931e-05/0.3397, allocations: 4 kB / 1.228 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001906/0.3399, allocations: 99.89 kB / 1.228 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.558e-05/0.34, allocations: 19.92 kB / 1.228 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.686e-05/0.34, allocations: 31.84 kB / 1.228 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.3403, allocations: 143.5 kB / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3403, allocations: 0 / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3403, allocations: 0 / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.3403, allocations: 4 kB / 1.228 GB, free: 6.316 MB / 0.9825 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.0006435/0.341, allocations: 420.7 kB / 1.229 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.341, allocations: 12.03 kB / 1.229 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.835e-05/0.3411, allocations: 8.891 kB / 1.229 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.3412, allocations: 168.3 kB / 1.229 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.3412, allocations: 8.375 kB / 1.229 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.3413, allocations: 4.375 kB / 1.229 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.3415, allocations: 81.84 kB / 1.229 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3415, allocations: 0 / 1.229 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.3415, allocations: 0 / 1.229 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.3415, allocations: 0 / 1.229 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001325/0.3417, allocations: 35.97 kB / 1.229 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005725/0.3422, allocations: 320.7 kB / 1.229 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.3424, allocations: 54.48 kB / 1.229 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.284e-05/0.3425, allocations: 32.97 kB / 1.229 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.3425, allocations: 0 / 1.229 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001847/0.3427, allocations: 79.38 kB / 1.23 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.3427, allocations: 0 / 1.23 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004022/0.3431, allocations: 133.7 kB / 1.23 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.3432, allocations: 63.33 kB / 1.23 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.664e-05/0.3433, allocations: 126.1 kB / 1.23 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.3433, allocations: 29.7 kB / 1.23 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.743e-05/0.3433, allocations: 84.14 kB / 1.23 GB, free: 4.48 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.3434, allocations: 19.91 kB / 1.23 GB, free: 4.461 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.207e-05/0.3434, allocations: 29.7 kB / 1.23 GB, free: 4.426 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3435, allocations: 326.8 kB / 1.23 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.113e-05/0.3436, allocations: 19.98 kB / 1.23 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.646e-05/0.3437, allocations: 54.59 kB / 1.23 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.3439, allocations: 74.5 kB / 1.23 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.3439, allocations: 0 / 1.23 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002501/0.3442, allocations: 117.8 kB / 1.231 GB, free: 3.812 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.3442, allocations: 4 kB / 1.231 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3442, allocations: 3.938 kB / 1.231 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.3442, allocations: 0 / 1.231 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.341e-05/0.3443, allocations: 20.05 kB / 1.231 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.3443, allocations: 0 / 1.231 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.134e-05/0.3444, allocations: 15.92 kB / 1.231 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.3444, allocations: 4 kB / 1.231 GB, free: 3.766 MB / 0.9825 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.0001003/0.3445, allocations: 122.2 kB / 1.231 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.782e-05/0.3445, allocations: 7.953 kB / 1.231 GB, free: 3.629 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.459e-05/0.3446, allocations: 8.375 kB / 1.231 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3446, allocations: 0 / 1.231 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3446, allocations: 4 kB / 1.231 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3446, allocations: 11.92 kB / 1.231 GB, free: 3.602 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004607/0.3451, allocations: 378.4 kB / 1.231 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3451, allocations: 0 / 1.231 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.442e-05/0.3451, allocations: 11.92 kB / 1.231 GB, free: 3.164 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3451, allocations: 0 / 1.231 GB, free: 3.164 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.3452, allocations: 4 kB / 1.231 GB, free: 3.16 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3452, allocations: 0 / 1.231 GB, free: 3.16 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3452, allocations: 3.938 kB / 1.231 GB, free: 3.156 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002997/0.3455, allocations: 211.5 kB / 1.231 GB, free: 2.934 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.502e-05/0.3455, allocations: 81.06 kB / 1.231 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.08e-05/0.3456, allocations: 7.984 kB / 1.231 GB, free: 2.828 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.352e-05/0.3457, allocations: 7.984 kB / 1.231 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.044e-05/0.3457, allocations: 7.938 kB / 1.231 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.3457, allocations: 4 kB / 1.231 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.408e-05/0.3458, allocations: 95.27 kB / 1.232 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3458, allocations: 0 / 1.232 GB, free: 2.715 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002919/0.3461, allocations: 43.86 kB / 1.232 GB, free: 2.672 MB / 0.9825 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.0003032/0.3464, allocations: 160.1 kB / 1.232 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002355/0.3466, allocations: 71.89 kB / 1.232 GB, free: 2.453 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.3467, allocations: 4 kB / 1.232 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.3468, allocations: 35.92 kB / 1.232 GB, free: 2.414 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000254/0.347, allocations: 9.812 kB / 1.232 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000374/0.3474, allocations: 188.2 kB / 1.232 GB, free: 2.195 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.3477, allocations: 0.6901 MB / 1.233 GB, free: 1.48 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.829e-05/0.3477, allocations: 8.531 kB / 1.233 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.806e-05/0.3477, allocations: 11.44 kB / 1.233 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.3477, allocations: 0 / 1.233 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of Templates: time 0.003898/0.3516, allocations: 1.458 MB / 1.234 GB, free: 4 kB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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