Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Zhang2012WindowsWest,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.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_9_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.001466/0.001472, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001938/0.001938, allocations: 191.8 kB / 16.25 MB, free: 6.637 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.467/1.467, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.536/2.536, allocations: 390.2 MB / 0.6643 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 63.84 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8114/0.813, allocations: 140.4 MB / 0.9491 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.00274/0.8158, allocations: 1.559 MB / 0.9506 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001181/0.817, allocations: 0.7186 MB / 0.9513 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.552e-05/0.817, allocations: 0 / 0.9513 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.131e-05/0.8171, allocations: 7.938 kB / 0.9513 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.744e-05/0.8172, allocations: 5.312 kB / 0.9513 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000544/0.8177, allocations: 114.1 kB / 0.9514 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001011/0.8178, allocations: 71 kB / 0.9515 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.8179, allocations: 22.91 kB / 0.9515 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.794e-05/0.818, allocations: 36.59 kB / 0.9516 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.161e-05/0.8181, allocations: 40.33 kB / 0.9516 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.8181, allocations: 10.44 kB / 0.9516 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.8183, allocations: 93.38 kB / 0.9517 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.201e-05/0.8184, allocations: 15.36 kB / 0.9517 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.882e-05/0.8184, allocations: 28.33 kB / 0.9517 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002112/0.8186, allocations: 143.9 kB / 0.9519 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.8186, allocations: 0 / 0.9519 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8186, allocations: 0 / 0.9519 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.8187, allocations: 0 / 0.9519 GB, free: 7.035 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.0006373/0.8193, allocations: 432.6 kB / 0.9523 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.8193, allocations: 13.38 kB / 0.9523 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.929e-05/0.8194, allocations: 4.844 kB / 0.9523 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.256e-05/0.8195, allocations: 171.9 kB / 0.9525 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.574e-05/0.8195, allocations: 5.797 kB / 0.9525 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.953e-05/0.8196, allocations: 13.08 kB / 0.9525 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001906/0.8197, allocations: 71.5 kB / 0.9526 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.8198, allocations: 0 / 0.9526 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.8198, allocations: 1.531 kB / 0.9526 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.8198, allocations: 1.25 kB / 0.9526 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001244/0.8199, allocations: 39.59 kB / 0.9526 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000552/0.8205, allocations: 318 kB / 0.9529 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.8206, allocations: 48.5 kB / 0.9529 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.158e-05/0.8207, allocations: 35.69 kB / 0.953 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.8207, allocations: 1.5 kB / 0.953 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002067/0.8209, allocations: 80.81 kB / 0.9531 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.821, allocations: 0 / 0.9531 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003968/0.8214, allocations: 136.8 kB / 0.9532 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.8214, allocations: 61.66 kB / 0.9532 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.454e-05/0.8215, allocations: 121 kB / 0.9534 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.8215, allocations: 26.95 kB / 0.9534 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.108e-05/0.8216, allocations: 90.75 kB / 0.9535 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.978e-05/0.8216, allocations: 14.78 kB / 0.9535 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.762e-05/0.8216, allocations: 32.92 kB / 0.9535 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.526e-05/0.8217, allocations: 326 kB / 0.9538 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.925e-05/0.8218, allocations: 26.17 kB / 0.9539 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.458e-05/0.8219, allocations: 43.75 kB / 0.9539 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.822, allocations: 78.12 kB / 0.954 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.822, allocations: 0 / 0.954 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002155/0.8223, allocations: 121.4 kB / 0.9541 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.8223, allocations: 5.719 kB / 0.9541 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.8223, allocations: 1.438 kB / 0.9541 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.8223, allocations: 0 / 0.9541 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.781e-05/0.8224, allocations: 13.64 kB / 0.9541 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.8224, allocations: 1.594 kB / 0.9541 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.414e-05/0.8225, allocations: 10.56 kB / 0.9541 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.8225, allocations: 3.656 kB / 0.9541 GB, free: 4.887 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 7.265e-05/0.8226, allocations: 130.6 kB / 0.9542 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.845e-05/0.8226, allocations: 11.34 kB / 0.9543 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.662e-05/0.8227, allocations: 9.719 kB / 0.9543 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.8227, allocations: 1.531 kB / 0.9543 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.8227, allocations: 0 / 0.9543 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.8227, allocations: 0 / 0.9543 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003739/0.8231, allocations: 383.6 kB / 0.9546 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.8231, allocations: 4 kB / 0.9546 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.995e-05/0.8231, allocations: 6.953 kB / 0.9546 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.8231, allocations: 1.312 kB / 0.9546 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.8231, allocations: 5.438 kB / 0.9547 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.8231, allocations: 3.938 kB / 0.9547 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.8232, allocations: 3.938 kB / 0.9547 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002305/0.8234, allocations: 201.3 kB / 0.9549 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.09e-05/0.8234, allocations: 87.17 kB / 0.9549 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.8234, allocations: 4.938 kB / 0.9549 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.767e-05/0.8235, allocations: 7.312 kB / 0.9549 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.872e-05/0.8236, allocations: 10.7 kB / 0.955 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.8236, allocations: 1.906 kB / 0.955 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.765e-05/0.8236, allocations: 97.58 kB / 0.9551 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8236, allocations: 0 / 0.9551 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003012/0.824, allocations: 36.06 kB / 0.9551 GB, free: 3.973 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.0003221/0.8243, allocations: 169.7 kB / 0.9552 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002381/0.8245, allocations: 69.75 kB / 0.9553 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.8245, allocations: 3.938 kB / 0.9553 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.481e-05/0.8246, allocations: 41.42 kB / 0.9554 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.8249, allocations: 8.531 kB / 0.9554 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003686/0.8253, allocations: 194 kB / 0.9556 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.8254, allocations: 0.6914 MB / 0.9562 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.654e-05/0.8254, allocations: 12.42 kB / 0.9562 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.592e-05/0.8255, allocations: 14.92 kB / 0.9563 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.8255, allocations: 0 / 0.9563 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of Templates: time 0.00388/0.8294, allocations: 1.402 MB / 0.9576 GB, free: 2.172 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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