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.00141/0.00141, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001662/0.001662, allocations: 196.8 kB / 16.14 MB, free: 6.734 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.613 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.381/2.381, allocations: 390.2 MB / 0.6642 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.00139, allocations: 63.89 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7235/0.7249, allocations: 140.3 MB / 0.9489 GB, free: 9.32 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.002378/0.7274, allocations: 1.562 MB / 0.9504 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001089/0.7285, allocations: 0.7334 MB / 0.9511 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.73e-05/0.7285, allocations: 0 / 0.9511 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.261e-05/0.7286, allocations: 4.844 kB / 0.9512 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.042e-05/0.7286, allocations: 5.312 kB / 0.9512 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004445/0.7291, allocations: 109 kB / 0.9513 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.036e-05/0.7292, allocations: 78.47 kB / 0.9513 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.785e-05/0.7293, allocations: 12.98 kB / 0.9514 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.916e-05/0.7294, allocations: 30.27 kB / 0.9514 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.536e-05/0.7294, allocations: 43.38 kB / 0.9514 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.703e-05/0.7295, allocations: 3.062 kB / 0.9514 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001878/0.7297, allocations: 89.91 kB / 0.9515 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.546e-05/0.7297, allocations: 18.89 kB / 0.9515 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.153e-05/0.7297, allocations: 24.36 kB / 0.9516 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.7299, allocations: 138.8 kB / 0.9517 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.7299, allocations: 1.156 kB / 0.9517 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.31e-07/0.7299, allocations: 0 / 0.9517 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.908e-06/0.73, allocations: 0 / 0.9517 GB, free: 7.172 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.0005439/0.7305, allocations: 423.5 kB / 0.9521 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.7305, allocations: 9.719 kB / 0.9521 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.207e-05/0.7306, allocations: 4.719 kB / 0.9521 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.219e-05/0.7307, allocations: 172.1 kB / 0.9523 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.7307, allocations: 6.469 kB / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.94e-05/0.7307, allocations: 4.625 kB / 0.9523 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001634/0.7309, allocations: 75.62 kB / 0.9523 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.7309, allocations: 5.188 kB / 0.9524 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.7309, allocations: 3.984 kB / 0.9524 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.7309, allocations: 1.25 kB / 0.9524 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001231/0.7311, allocations: 32.77 kB / 0.9524 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005075/0.7316, allocations: 321.7 kB / 0.9527 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.7317, allocations: 52.28 kB / 0.9527 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.901e-05/0.7318, allocations: 31.28 kB / 0.9528 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.7318, allocations: 5.156 kB / 0.9528 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001723/0.732, allocations: 77.88 kB / 0.9529 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.732, allocations: 0 / 0.9529 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003762/0.7324, allocations: 148.5 kB / 0.953 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.85e-05/0.7324, allocations: 57.58 kB / 0.9531 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.636e-05/0.7325, allocations: 120.2 kB / 0.9532 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.7325, allocations: 30.89 kB / 0.9532 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.562e-05/0.7326, allocations: 90.38 kB / 0.9533 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.644e-05/0.7326, allocations: 15 kB / 0.9533 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.482e-05/0.7326, allocations: 26.52 kB / 0.9533 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.794e-05/0.7327, allocations: 324 kB / 0.9536 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.06e-05/0.7328, allocations: 31.44 kB / 0.9537 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.69e-05/0.7329, allocations: 44.62 kB / 0.9537 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.733, allocations: 81.25 kB / 0.9538 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.733, allocations: 0 / 0.9538 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002553/0.7333, allocations: 117.1 kB / 0.9539 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.7333, allocations: 5.438 kB / 0.9539 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.7333, allocations: 1.625 kB / 0.9539 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.7334, allocations: 1.562 kB / 0.9539 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-05/0.7334, allocations: 7.812 kB / 0.9539 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.7335, allocations: 5.578 kB / 0.9539 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.523e-05/0.7335, allocations: 15.12 kB / 0.9539 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.7336, allocations: 3.438 kB / 0.9539 GB, free: 5.023 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.875e-05/0.7336, allocations: 126.8 kB / 0.9541 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.826e-05/0.7336, allocations: 6.938 kB / 0.9541 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.604e-05/0.7337, allocations: 18.34 kB / 0.9541 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.7337, allocations: 0.75 kB / 0.9541 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.7337, allocations: 0 / 0.9541 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.7337, allocations: 0.5625 kB / 0.9541 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003639/0.7341, allocations: 387.4 kB / 0.9544 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.7341, allocations: 0 / 0.9544 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.835e-05/0.7341, allocations: 7.531 kB / 0.9545 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.7341, allocations: 0 / 0.9545 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.7341, allocations: 5.203 kB / 0.9545 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.7342, allocations: 1.25 kB / 0.9545 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.7342, allocations: 3.938 kB / 0.9545 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002698/0.7344, allocations: 206.2 kB / 0.9547 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.465e-05/0.7345, allocations: 82.14 kB / 0.9547 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.7345, allocations: 5.141 kB / 0.9547 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.069e-05/0.7346, allocations: 3.531 kB / 0.9547 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.616e-05/0.7346, allocations: 10.33 kB / 0.9548 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.7347, allocations: 6.312 kB / 0.9548 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.956e-05/0.7347, allocations: 92.52 kB / 0.9549 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7347, allocations: 0 / 0.9549 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002968/0.735, allocations: 39.97 kB / 0.9549 GB, free: 4.113 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.0003373/0.7353, allocations: 161.2 kB / 0.955 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002378/0.7356, allocations: 69.92 kB / 0.9551 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.7356, allocations: 4.125 kB / 0.9551 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.644e-05/0.7357, allocations: 40.38 kB / 0.9552 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.736, allocations: 16.31 kB / 0.9552 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000383/0.7364, allocations: 182.8 kB / 0.9553 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001351/0.7365, allocations: 0.6964 MB / 0.956 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.64e-05/0.7366, allocations: 3.656 kB / 0.956 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.641e-05/0.7366, allocations: 10.44 kB / 0.956 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of SimCode: time 4.31e-07/0.7366, allocations: 1.438 kB / 0.956 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of Templates: time 0.003846/0.7404, allocations: 1.378 MB / 0.9574 GB, free: 2.336 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