Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001186/0.001186, allocations: 195.8 kB / 16.14 MB, free: 6.711 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.405/1.405, 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.387/2.387, allocations: 390.2 MB / 0.6642 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 63.91 kB / 0.8118 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.86/0.8614, allocations: 140.3 MB / 0.9489 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.004438/0.8659, allocations: 1.563 MB / 0.9504 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001896/0.8679, allocations: 0.7294 MB / 0.9511 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.75e-05/0.868, allocations: 0 / 0.9511 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.77e-05/0.868, allocations: 9.016 kB / 0.9512 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.799e-05/0.8681, allocations: 5.031 kB / 0.9512 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007898/0.8689, allocations: 110 kB / 0.9513 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001391/0.8691, allocations: 77.48 kB / 0.9513 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.854e-05/0.8692, allocations: 17.09 kB / 0.9514 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.8693, allocations: 29.95 kB / 0.9514 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.966e-05/0.8694, allocations: 43.12 kB / 0.9514 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.266e-05/0.8694, allocations: 5 kB / 0.9514 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002199/0.8696, allocations: 88.33 kB / 0.9515 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.025e-05/0.8697, allocations: 19.47 kB / 0.9515 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.596e-05/0.8697, allocations: 28.2 kB / 0.9516 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.87, allocations: 139 kB / 0.9517 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.87, allocations: 0 / 0.9517 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.182e-06/0.87, allocations: 0 / 0.9517 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.87, allocations: 0 / 0.9517 GB, free: 7.066 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.0006167/0.8706, allocations: 424.2 kB / 0.9521 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.8707, allocations: 9.094 kB / 0.9521 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.233e-05/0.8707, allocations: 5.375 kB / 0.9521 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.876e-05/0.8709, allocations: 172.1 kB / 0.9523 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.8709, allocations: 2.719 kB / 0.9523 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.8709, allocations: 4.562 kB / 0.9523 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002385/0.8712, allocations: 75.41 kB / 0.9523 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.8712, allocations: 0 / 0.9523 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.8712, allocations: 5.125 kB / 0.9524 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.8712, allocations: 1.344 kB / 0.9524 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001473/0.8714, allocations: 35.88 kB / 0.9524 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005538/0.8719, allocations: 321.7 kB / 0.9527 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.8721, allocations: 57.36 kB / 0.9528 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.142e-05/0.8722, allocations: 31.16 kB / 0.9528 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.8722, allocations: 9.266 kB / 0.9528 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002076/0.8724, allocations: 77.34 kB / 0.9529 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.8724, allocations: 0 / 0.9529 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004046/0.8728, allocations: 144 kB / 0.953 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.8729, allocations: 54.31 kB / 0.9531 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.351e-05/0.873, allocations: 124 kB / 0.9532 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.873, allocations: 27.64 kB / 0.9532 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.668e-05/0.873, allocations: 86.33 kB / 0.9533 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.196e-05/0.8731, allocations: 18.22 kB / 0.9533 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.095e-05/0.8731, allocations: 30.83 kB / 0.9533 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.882e-05/0.8732, allocations: 328.5 kB / 0.9536 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.197e-05/0.8733, allocations: 22.89 kB / 0.9537 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.517e-05/0.8734, allocations: 47.89 kB / 0.9537 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.8735, allocations: 69.88 kB / 0.9538 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.8735, allocations: 4 kB / 0.9538 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002207/0.8737, allocations: 113.5 kB / 0.9539 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.8738, allocations: 8.531 kB / 0.9539 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.8738, allocations: 0.875 kB / 0.9539 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.8738, allocations: 2.375 kB / 0.9539 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.842e-05/0.8739, allocations: 11.42 kB / 0.9539 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.8739, allocations: 1.656 kB / 0.9539 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.624e-05/0.874, allocations: 12.19 kB / 0.9539 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.874, allocations: 14.77 kB / 0.9539 GB, free: 4.918 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.978e-05/0.8741, allocations: 127.2 kB / 0.9541 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.697e-05/0.8741, allocations: 6.75 kB / 0.9541 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.8741, allocations: 13.88 kB / 0.9541 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.8741, allocations: 0 / 0.9541 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.8741, allocations: 1.438 kB / 0.9541 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.8742, allocations: 0 / 0.9541 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003664/0.8745, allocations: 382.2 kB / 0.9544 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.8745, allocations: 1.062 kB / 0.9544 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.118e-05/0.8746, allocations: 10.92 kB / 0.9545 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.8746, allocations: 1.312 kB / 0.9545 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.8746, allocations: 0.9688 kB / 0.9545 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.8746, allocations: 0 / 0.9545 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.8746, allocations: 5.188 kB / 0.9545 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002657/0.8749, allocations: 209.6 kB / 0.9547 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.765e-05/0.8749, allocations: 82.36 kB / 0.9547 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.407e-05/0.875, allocations: 1.531 kB / 0.9547 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.8751, allocations: 6.859 kB / 0.9547 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.8751, allocations: 9.875 kB / 0.9548 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.8751, allocations: 2.438 kB / 0.9548 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.004e-05/0.8752, allocations: 92.67 kB / 0.9548 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8752, allocations: 0 / 0.9548 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003002/0.8755, allocations: 44.64 kB / 0.9549 GB, free: 4.016 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.0003131/0.8758, allocations: 168.7 kB / 0.9551 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002266/0.8761, allocations: 77.52 kB / 0.9551 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.8761, allocations: 128 / 0.9551 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.06e-05/0.8762, allocations: 41.05 kB / 0.9552 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.8764, allocations: 7.984 kB / 0.9552 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000363/0.8768, allocations: 187.5 kB / 0.9554 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001042/0.8769, allocations: 0.6918 MB / 0.956 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.79e-05/0.8769, allocations: 8.266 kB / 0.956 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.495e-05/0.877, allocations: 10.03 kB / 0.956 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.877, allocations: 0 / 0.956 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of Templates: time 0.003986/0.881, allocations: 1.37 MB / 0.9574 GB, free: 2.238 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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