Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Zhang2012WindowsEast,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.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_9_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.001298/0.001298, 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.002108/0.002108, allocations: 194.2 kB / 16.14 MB, free: 6.645 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.361/1.361, allocations: 222.9 MB / 239.8 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.406/2.406, allocations: 390.2 MB / 0.6642 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 67.89 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6579/0.6591, allocations: 140.4 MB / 0.9489 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.002437/0.6616, allocations: 1.551 MB / 0.9504 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001156/0.6628, allocations: 0.7327 MB / 0.9511 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.609e-05/0.6628, allocations: 1.375 kB / 0.9512 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.824e-05/0.6629, allocations: 3.938 kB / 0.9512 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.133e-05/0.663, allocations: 13.28 kB / 0.9512 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005054/0.6635, allocations: 104.8 kB / 0.9513 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000104/0.6636, allocations: 70.5 kB / 0.9513 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.6637, allocations: 22.41 kB / 0.9514 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.722e-05/0.6638, allocations: 32.75 kB / 0.9514 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.716e-05/0.6639, allocations: 35.25 kB / 0.9514 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.6639, allocations: 3.75 kB / 0.9514 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.6641, allocations: 86.94 kB / 0.9515 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.571e-05/0.6641, allocations: 17.53 kB / 0.9515 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.915e-05/0.6642, allocations: 25.08 kB / 0.9515 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002284/0.6644, allocations: 142.5 kB / 0.9517 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.6644, allocations: 4 kB / 0.9517 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.163e-06/0.6644, allocations: 1.656 kB / 0.9517 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.6644, allocations: 0 / 0.9517 GB, free: 7.098 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.0006267/0.6651, allocations: 423.4 kB / 0.9521 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.6651, allocations: 8.688 kB / 0.9521 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.38e-05/0.6652, allocations: 5.125 kB / 0.9521 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.004e-05/0.6652, allocations: 176.1 kB / 0.9523 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.6653, allocations: 7.344 kB / 0.9523 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.246e-05/0.6653, allocations: 4.281 kB / 0.9523 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.6655, allocations: 82.98 kB / 0.9524 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.6655, allocations: 1.781 kB / 0.9524 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.6655, allocations: 0 / 0.9524 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.6656, allocations: 1.219 kB / 0.9524 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001296/0.6657, allocations: 36 kB / 0.9524 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005647/0.6663, allocations: 325.7 kB / 0.9527 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/0.6664, allocations: 44.69 kB / 0.9528 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.043e-05/0.6665, allocations: 35 kB / 0.9528 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.6665, allocations: 5.203 kB / 0.9528 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001863/0.6667, allocations: 73.3 kB / 0.9529 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.6667, allocations: 1.312 kB / 0.9529 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003904/0.6671, allocations: 143.2 kB / 0.953 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/0.6672, allocations: 53.38 kB / 0.9531 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.674e-05/0.6672, allocations: 120.9 kB / 0.9532 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.6673, allocations: 35.75 kB / 0.9532 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.553e-05/0.6673, allocations: 86.42 kB / 0.9533 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.733e-05/0.6673, allocations: 18.09 kB / 0.9533 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.552e-05/0.6674, allocations: 34.89 kB / 0.9533 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.563e-05/0.6674, allocations: 323.8 kB / 0.9536 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.899e-05/0.6675, allocations: 26.67 kB / 0.9537 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.217e-05/0.6676, allocations: 44.41 kB / 0.9537 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001386/0.6678, allocations: 77.92 kB / 0.9538 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.6678, allocations: 0 / 0.9538 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002139/0.668, allocations: 113.2 kB / 0.9539 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.668, allocations: 6.219 kB / 0.9539 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.668, allocations: 0 / 0.9539 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.668, allocations: 1.312 kB / 0.9539 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.586e-05/0.6681, allocations: 16.64 kB / 0.9539 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.6681, allocations: 1.281 kB / 0.9539 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.63e-05/0.6682, allocations: 8.094 kB / 0.9539 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.6682, allocations: 2.594 kB / 0.9539 GB, free: 4.957 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,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 6.718e-05/0.6683, allocations: 131 kB / 0.9541 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.678e-05/0.6683, allocations: 7.656 kB / 0.9541 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.465e-05/0.6684, allocations: 5.406 kB / 0.9541 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.6684, allocations: 1.094 kB / 0.9541 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.6684, allocations: 4 kB / 0.9541 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.6684, allocations: 1.531 kB / 0.9541 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003734/0.6688, allocations: 381.9 kB / 0.9544 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.6688, allocations: 0.9062 kB / 0.9544 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.939e-05/0.6688, allocations: 7.234 kB / 0.9544 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.6688, allocations: 1.125 kB / 0.9544 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.6688, allocations: 0 / 0.9544 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.6688, allocations: 8.781 kB / 0.9545 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.6689, allocations: 9.031 kB / 0.9545 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.6691, allocations: 213.3 kB / 0.9547 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.189e-05/0.6691, allocations: 83.36 kB / 0.9547 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.6692, allocations: 5.25 kB / 0.9547 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.814e-05/0.6693, allocations: 2.469 kB / 0.9548 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.857e-05/0.6693, allocations: 11.27 kB / 0.9548 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.6693, allocations: 5.125 kB / 0.9548 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.829e-05/0.6694, allocations: 97.45 kB / 0.9549 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6694, allocations: 0 / 0.9549 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003087/0.6697, allocations: 40.52 kB / 0.9549 GB, free: 4.035 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 (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.0003514/0.67, allocations: 163 kB / 0.9551 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002358/0.6703, allocations: 73.31 kB / 0.9551 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.6703, allocations: 0 / 0.9551 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.76e-05/0.6704, allocations: 40.22 kB / 0.9552 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.6707, allocations: 8.219 kB / 0.9552 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003788/0.6711, allocations: 190.5 kB / 0.9554 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001131/0.6712, allocations: 0.6888 MB / 0.956 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.746e-05/0.6712, allocations: 7.328 kB / 0.956 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.634e-05/0.6713, allocations: 11 kB / 0.956 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/0.6713, allocations: 0 / 0.956 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of Templates: time 0.003789/0.6751, allocations: 1.374 MB / 0.9574 GB, free: 2.266 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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