Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006758/0.006758, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.274/1.274, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.35/2.35, allocations: 390.9 MB / 0.6664 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003613, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6578/0.6582, allocations: 142.4 MB / 0.9552 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.001809/0.6601, allocations: 1.212 MB / 0.9564 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.6613, allocations: 0.7186 MB / 0.9571 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.942e-05/0.6614, allocations: 0 / 0.9571 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.935e-05/0.6614, allocations: 0 / 0.9571 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.612e-05/0.6615, allocations: 10.22 kB / 0.9571 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004938/0.662, allocations: 103.8 kB / 0.9572 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.6621, allocations: 76.92 kB / 0.9572 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.6622, allocations: 15.56 kB / 0.9573 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.876e-05/0.6623, allocations: 29.61 kB / 0.9573 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.538e-05/0.6624, allocations: 38.98 kB / 0.9573 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.891e-05/0.6624, allocations: 6.453 kB / 0.9573 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000191/0.6626, allocations: 81.52 kB / 0.9574 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.557e-05/0.6627, allocations: 18.91 kB / 0.9574 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.135e-05/0.6627, allocations: 58.25 kB / 0.9575 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002288/0.663, allocations: 130.8 kB / 0.9576 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.663, allocations: 5.031 kB / 0.9576 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.355e-06/0.663, allocations: 0 / 0.9576 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.663, allocations: 3.938 kB / 0.9576 GB, free: 5.836 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.0005856/0.6636, allocations: 410.5 kB / 0.958 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.6637, allocations: 13.39 kB / 0.958 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.56e-05/0.6637, allocations: 36.06 kB / 0.9581 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.378e-05/0.6637, allocations: 7.344 kB / 0.9581 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.6639, allocations: 176.1 kB / 0.9582 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.6639, allocations: 6.906 kB / 0.9582 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.024e-05/0.6639, allocations: 8.078 kB / 0.9582 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/0.6641, allocations: 75.53 kB / 0.9583 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.6641, allocations: 0 / 0.9583 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.6641, allocations: 1.094 kB / 0.9583 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.6641, allocations: 5.188 kB / 0.9583 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/0.6643, allocations: 41.5 kB / 0.9584 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004908/0.6648, allocations: 326.9 kB / 0.9587 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001097/0.6649, allocations: 47.38 kB / 0.9587 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.717e-05/0.665, allocations: 33.28 kB / 0.9588 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.665, allocations: 1.469 kB / 0.9588 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001587/0.6652, allocations: 80.06 kB / 0.9588 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.6652, allocations: 0 / 0.9588 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003605/0.6655, allocations: 153.8 kB / 0.959 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.956e-05/0.6656, allocations: 60.45 kB / 0.959 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.527e-05/0.6657, allocations: 121.1 kB / 0.9592 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.6657, allocations: 31.55 kB / 0.9592 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.217e-05/0.6657, allocations: 90.06 kB / 0.9593 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.573e-05/0.6657, allocations: 19.28 kB / 0.9593 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.6658, allocations: 17.47 kB / 0.9593 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.601e-05/0.6658, allocations: 324.6 kB / 0.9596 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.491e-05/0.6659, allocations: 28.2 kB / 0.9596 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.814e-05/0.666, allocations: 51.3 kB / 0.9597 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/0.6661, allocations: 79.62 kB / 0.9598 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.6661, allocations: 0 / 0.9598 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002078/0.6664, allocations: 123.1 kB / 0.9599 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.6664, allocations: 5.5 kB / 0.9599 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.6664, allocations: 1.375 kB / 0.9599 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.6664, allocations: 1.375 kB / 0.9599 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.394e-05/0.6665, allocations: 20.23 kB / 0.9599 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.6665, allocations: 1.375 kB / 0.9599 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.072e-05/0.6666, allocations: 17.42 kB / 0.9599 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.6666, allocations: 2.75 kB / 0.9599 GB, free: 3.656 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.296e-05/0.6667, allocations: 119.3 kB / 0.96 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.316e-05/0.6667, allocations: 6.656 kB / 0.96 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.244e-05/0.6667, allocations: 9.75 kB / 0.9601 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.6667, allocations: 9.312 kB / 0.9601 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.6667, allocations: 5.359 kB / 0.9601 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.6667, allocations: 0 / 0.9601 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003513/0.6671, allocations: 384.8 kB / 0.9604 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.6671, allocations: 0 / 0.9604 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.593e-05/0.6671, allocations: 4.125 kB / 0.9604 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.6671, allocations: 9.375 kB / 0.9605 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.6672, allocations: 5.375 kB / 0.9605 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.6672, allocations: 4.016 kB / 0.9605 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.6672, allocations: 3.984 kB / 0.9605 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002336/0.6674, allocations: 215.7 kB / 0.9607 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.086e-05/0.6674, allocations: 90.31 kB / 0.9608 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.6675, allocations: 5.375 kB / 0.9608 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.378e-05/0.6676, allocations: 12.05 kB / 0.9608 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.6676, allocations: 6.75 kB / 0.9608 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/0.6676, allocations: 6.734 kB / 0.9608 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.503e-05/0.6677, allocations: 92.89 kB / 0.9609 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6677, allocations: 0 / 0.9609 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002752/0.6679, allocations: 35.5 kB / 0.9609 GB, free: 2.738 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.0006198/0.6686, allocations: 0.8105 MB / 0.9617 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002119/0.6688, allocations: 78.92 kB / 0.9618 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.6688, allocations: 0 / 0.9618 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.536e-05/0.6689, allocations: 42.72 kB / 0.9618 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.6691, allocations: 11.09 kB / 0.9618 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.6704, allocations: 1.506 MB / 0.9633 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.6705, allocations: 0.689 MB / 0.964 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.525e-05/0.6706, allocations: 2.969 kB / 0.964 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.286e-05/0.6706, allocations: 30.39 kB / 0.964 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.6706, allocations: 0 / 0.964 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01164/0.6823, allocations: 2.323 MB / 0.9663 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.6825, allocations: 263.6 kB / 0.9665 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.707/2.389, allocations: 0 / 0.9665 GB, free: 14.43 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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,TOut.y,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed