Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Zhang2012WindowsSouth,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.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_9_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.00161/0.00161, 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.001992/0.001992, allocations: 193.9 kB / 16.14 MB, free: 6.648 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.355/1.355, allocations: 222.9 MB / 239.8 MB, free: 4.625 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.371/2.371, allocations: 390.2 MB / 0.6642 GB, free: 0.6523 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 59.91 kB / 0.8118 GB, free: 14.93 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.728/0.7298, allocations: 140.4 MB / 0.9489 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002693/0.7325, allocations: 1.556 MB / 0.9504 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.7338, allocations: 0.7329 MB / 0.9512 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.058e-05/0.7338, allocations: 0 / 0.9512 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.269e-05/0.7339, allocations: 7.922 kB / 0.9512 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.693e-05/0.734, allocations: 10.33 kB / 0.9512 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/0.7344, allocations: 100.8 kB / 0.9513 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.141e-05/0.7345, allocations: 73.77 kB / 0.9513 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.36e-05/0.7346, allocations: 16.84 kB / 0.9514 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.35e-05/0.7347, allocations: 31.05 kB / 0.9514 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.63e-05/0.7348, allocations: 38.73 kB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.826e-05/0.7348, allocations: 3.562 kB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001839/0.735, allocations: 93.78 kB / 0.9515 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.641e-05/0.7351, allocations: 14.62 kB / 0.9515 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.612e-05/0.7351, allocations: 36.84 kB / 0.9516 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.7353, allocations: 134.4 kB / 0.9517 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.7353, allocations: 1.562 kB / 0.9517 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.81e-07/0.7353, allocations: 0 / 0.9517 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.7353, allocations: 0 / 0.9517 GB, free: 7.07 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.0005815/0.7359, allocations: 427.1 kB / 0.9521 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.736, allocations: 10 kB / 0.9521 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.73e-05/0.736, allocations: 4.969 kB / 0.9521 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.157e-05/0.7361, allocations: 172.3 kB / 0.9523 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.7362, allocations: 2.312 kB / 0.9523 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.7362, allocations: 4.969 kB / 0.9523 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001699/0.7364, allocations: 71.25 kB / 0.9524 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.7364, allocations: 0 / 0.9524 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.7364, allocations: 5.469 kB / 0.9524 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.7364, allocations: 0 / 0.9524 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.7365, allocations: 41.16 kB / 0.9524 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000537/0.7371, allocations: 321.9 kB / 0.9527 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/0.7372, allocations: 52.61 kB / 0.9528 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.775e-05/0.7373, allocations: 30.81 kB / 0.9528 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.834e-05/0.7373, allocations: 2.188 kB / 0.9528 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001956/0.7375, allocations: 80.19 kB / 0.9529 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.7375, allocations: 1.156 kB / 0.9529 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003832/0.7379, allocations: 136.1 kB / 0.953 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.7379, allocations: 57.41 kB / 0.9531 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.544e-05/0.738, allocations: 124.2 kB / 0.9532 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.7381, allocations: 27.61 kB / 0.9532 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.932e-05/0.7381, allocations: 86.45 kB / 0.9533 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.923e-05/0.7381, allocations: 19.12 kB / 0.9533 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.594e-05/0.7382, allocations: 29.73 kB / 0.9533 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.058e-05/0.7382, allocations: 333.2 kB / 0.9536 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.845e-05/0.7383, allocations: 26.39 kB / 0.9537 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.744e-05/0.7384, allocations: 51.77 kB / 0.9537 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/0.7386, allocations: 66.12 kB / 0.9538 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.7386, allocations: 4 kB / 0.9538 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002196/0.7388, allocations: 113.2 kB / 0.9539 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.7388, allocations: 5.312 kB / 0.9539 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.7388, allocations: 1.156 kB / 0.9539 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.7389, allocations: 1.281 kB / 0.9539 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.606e-05/0.739, allocations: 20.75 kB / 0.9539 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.739, allocations: 1.25 kB / 0.9539 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.407e-05/0.739, allocations: 11.62 kB / 0.9539 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.7391, allocations: 10.64 kB / 0.9539 GB, free: 4.922 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.734e-05/0.7391, allocations: 119 kB / 0.9541 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.806e-05/0.7392, allocations: 7.594 kB / 0.9541 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.741e-05/0.7392, allocations: 9.562 kB / 0.9541 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.7392, allocations: 1.406 kB / 0.9541 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.7392, allocations: 0 / 0.9541 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.7392, allocations: 1.469 kB / 0.9541 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003618/0.7396, allocations: 387 kB / 0.9544 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.7396, allocations: 0 / 0.9544 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.994e-05/0.7396, allocations: 7.141 kB / 0.9545 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.7396, allocations: 1.094 kB / 0.9545 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.7397, allocations: 7.938 kB / 0.9545 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.7397, allocations: 1.062 kB / 0.9545 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.7397, allocations: 3.938 kB / 0.9545 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002459/0.7399, allocations: 214.4 kB / 0.9547 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.19e-05/0.74, allocations: 82.64 kB / 0.9547 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.74, allocations: 1.531 kB / 0.9547 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.825e-05/0.7401, allocations: 10.48 kB / 0.9548 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.459e-05/0.7401, allocations: 7.094 kB / 0.9548 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.7401, allocations: 1.406 kB / 0.9548 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.516e-05/0.7402, allocations: 96.58 kB / 0.9549 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7402, allocations: 1.5 kB / 0.9549 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002933/0.7405, allocations: 43.52 kB / 0.9549 GB, free: 4.012 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.0003548/0.7408, allocations: 159.3 kB / 0.9551 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002361/0.7411, allocations: 77.81 kB / 0.9551 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.7411, allocations: 128 / 0.9551 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.107e-05/0.7412, allocations: 36.39 kB / 0.9552 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.7415, allocations: 7.781 kB / 0.9552 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003877/0.7419, allocations: 190.9 kB / 0.9554 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001212/0.742, allocations: 0.6929 MB / 0.956 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.801e-05/0.742, allocations: 11.31 kB / 0.956 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.623e-05/0.7421, allocations: 10.03 kB / 0.956 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.7421, allocations: 0 / 0.956 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of Templates: time 0.004029/0.7461, allocations: 1.372 MB / 0.9574 GB, free: 2.238 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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