Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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.Zhang2012WindowsEast,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.Zhang2012WindowsEast") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,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.Zhang2012WindowsEast") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001515/0.001515, allocations: 194.3 kB / 16.14 MB, free: 6.652 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.399/1.399, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.813/2.813, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002108, allocations: 68.39 kB / 0.8984 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.3547, allocations: 157.4 MB / 1.052 GB, free: 8.832 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.003094/0.3578, allocations: 1.551 MB / 1.054 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.3592, allocations: 0.7516 MB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.978e-05/0.3593, allocations: 0 / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.765e-05/0.3593, allocations: 7.938 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.64e-05/0.3594, allocations: 7.875 kB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005306/0.3599, allocations: 103.8 kB / 1.054 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001012/0.3601, allocations: 67.83 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.672e-05/0.3602, allocations: 12 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.573e-05/0.3603, allocations: 27.91 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.434e-05/0.3603, allocations: 43.83 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.3604, allocations: 4 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001807/0.3605, allocations: 91.84 kB / 1.055 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.822e-05/0.3606, allocations: 19.91 kB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.244e-05/0.3606, allocations: 27.86 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002218/0.3609, allocations: 135.9 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3609, allocations: 4 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.82e-07/0.3609, allocations: 0 / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.3609, allocations: 0 / 1.055 GB, free: 5.969 MB / 0.8106 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.0006765/0.3616, allocations: 417 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.3616, allocations: 12.03 kB / 1.055 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.755e-05/0.3617, allocations: 12.83 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.3618, allocations: 176.2 kB / 1.055 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.3619, allocations: 384 / 1.055 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.3619, allocations: 8.375 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002093/0.3621, allocations: 73.95 kB / 1.056 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.3621, allocations: 0 / 1.056 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.3621, allocations: 0 / 1.056 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.3621, allocations: 4 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.3623, allocations: 47.88 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/0.363, allocations: 312.8 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001377/0.3631, allocations: 50.55 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.731e-05/0.3632, allocations: 36.91 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.3632, allocations: 0 / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.3635, allocations: 83.31 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.3635, allocations: 3.938 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004231/0.3639, allocations: 133.6 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.364, allocations: 63.41 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.3641, allocations: 125.8 kB / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.3641, allocations: 25.7 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.728e-05/0.3642, allocations: 88.14 kB / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/0.3642, allocations: 19.73 kB / 1.056 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.361e-05/0.3643, allocations: 25.72 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3644, allocations: 326.8 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.994e-05/0.3645, allocations: 27.98 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.815e-05/0.3646, allocations: 50.48 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.3648, allocations: 66.56 kB / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3648, allocations: 0 / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002597/0.3651, allocations: 121.5 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.3651, allocations: 4 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.3651, allocations: 0 / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.3651, allocations: 4 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.3652, allocations: 15.92 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.3653, allocations: 0 / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.208e-05/0.3653, allocations: 15.89 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.3654, allocations: 4 kB / 1.057 GB, free: 3.414 MB / 0.8106 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.0001085/0.3655, allocations: 121.8 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.725e-05/0.3655, allocations: 7.938 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.749e-05/0.3655, allocations: 8.375 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3655, allocations: 4 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3655, allocations: 3.984 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3656, allocations: 0 / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004465/0.366, allocations: 382.3 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.366, allocations: 4 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.044e-05/0.3661, allocations: 4 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3661, allocations: 0 / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.3661, allocations: 4 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3661, allocations: 0 / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.3661, allocations: 7.938 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002873/0.3664, allocations: 215.8 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.797e-05/0.3664, allocations: 85.11 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.3665, allocations: 0 / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.149e-05/0.3666, allocations: 7.984 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.941e-05/0.3666, allocations: 7.938 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.3666, allocations: 7.984 kB / 1.058 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.435e-05/0.3667, allocations: 87.28 kB / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3667, allocations: 0 / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003223/0.3671, allocations: 43.92 kB / 1.058 GB, free: 2.332 MB / 0.8106 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.0003666/0.3674, allocations: 168.6 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002533/0.3677, allocations: 71.89 kB / 1.058 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3677, allocations: 0 / 1.058 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.606e-05/0.3678, allocations: 31.98 kB / 1.058 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.3681, allocations: 16.06 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004397/0.3685, allocations: 198 kB / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.3689, allocations: 0.6887 MB / 1.059 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.138e-05/0.3689, allocations: 8 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.976e-05/0.3689, allocations: 11.44 kB / 1.059 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of SimCode: time 3.7e-07/0.3689, allocations: 0 / 1.059 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of Templates: time 0.004575/0.3735, allocations: 1.373 MB / 1.061 GB, free: 15.73 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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