Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_latest_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.01087/0.01087, allocations: 97.12 kB / 15.73 MB, free: 6.004 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.002197/0.002197, allocations: 199.8 kB / 16.68 MB, free: 5.934 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.533/2.533, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 68.11 kB / 1.054 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8999/0.9013, allocations: 157.4 MB / 1.207 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.003284/0.9046, allocations: 1.509 MB / 1.209 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001671/0.9063, allocations: 0.7284 MB / 1.209 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.435e-05/0.9065, allocations: 0 / 1.209 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.583e-05/0.9065, allocations: 3.938 kB / 1.209 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.515e-05/0.9066, allocations: 15.86 kB / 1.209 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008354/0.9075, allocations: 119.6 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001772/0.9077, allocations: 83.7 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.9078, allocations: 8 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.908, allocations: 39.89 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.949e-05/0.9081, allocations: 39.84 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.071e-05/0.9081, allocations: 4 kB / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002542/0.9083, allocations: 99.84 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.57e-05/0.9084, allocations: 11.98 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.371e-05/0.9085, allocations: 39.78 kB / 1.21 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000302/0.9088, allocations: 133.9 kB / 1.21 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.9088, allocations: 4 kB / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.843e-06/0.9088, allocations: 0 / 1.21 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.9088, allocations: 0 / 1.21 GB, free: 10.78 MB / 0.9356 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.0007053/0.9095, allocations: 420.9 kB / 1.21 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.9096, allocations: 12.03 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.085e-05/0.9096, allocations: 34.75 kB / 1.21 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.401e-05/0.9097, allocations: 8.844 kB / 1.21 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.9098, allocations: 176.2 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/0.9098, allocations: 384 / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.826e-05/0.9099, allocations: 12.38 kB / 1.211 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.9101, allocations: 69.59 kB / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.9101, allocations: 0 / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.9101, allocations: 0 / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.9101, allocations: 0 / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.9102, allocations: 39.97 kB / 1.211 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000617/0.9109, allocations: 324.6 kB / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.911, allocations: 46.55 kB / 1.211 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.899e-05/0.9111, allocations: 32.97 kB / 1.211 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.9111, allocations: 0 / 1.211 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002384/0.9114, allocations: 91.22 kB / 1.211 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.9114, allocations: 3.938 kB / 1.211 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004342/0.9118, allocations: 141.6 kB / 1.211 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.9119, allocations: 51.41 kB / 1.211 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.912, allocations: 129.7 kB / 1.212 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.9121, allocations: 25.7 kB / 1.212 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.843e-05/0.9121, allocations: 92.14 kB / 1.212 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.9121, allocations: 7.812 kB / 1.212 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-05/0.9122, allocations: 33.7 kB / 1.212 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.9123, allocations: 326.8 kB / 1.212 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.407e-05/0.9124, allocations: 23.98 kB / 1.212 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.238e-05/0.9125, allocations: 50.55 kB / 1.212 GB, free: 8.43 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.9127, allocations: 78.8 kB / 1.212 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.9127, allocations: 0 / 1.212 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002513/0.913, allocations: 113.5 kB / 1.212 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.913, allocations: 4 kB / 1.212 GB, free: 8.223 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.913, allocations: 0 / 1.212 GB, free: 8.223 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.913, allocations: 4 kB / 1.212 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.752e-05/0.9131, allocations: 15.92 kB / 1.212 GB, free: 8.203 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.9131, allocations: 4.062 kB / 1.212 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.439e-05/0.9132, allocations: 11.94 kB / 1.212 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.9132, allocations: 11.92 kB / 1.212 GB, free: 8.176 MB / 0.9356 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 9.275e-05/0.9133, allocations: 113.8 kB / 1.212 GB, free: 8.055 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.944e-05/0.9133, allocations: 7.906 kB / 1.212 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.066e-05/0.9134, allocations: 8.375 kB / 1.212 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.9134, allocations: 7.938 kB / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.9134, allocations: 0 / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.9134, allocations: 4 kB / 1.212 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004616/0.9139, allocations: 386.4 kB / 1.213 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.9139, allocations: 0 / 1.213 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.169e-05/0.9139, allocations: 7.984 kB / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.914, allocations: 0 / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.914, allocations: 0 / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.914, allocations: 7.938 kB / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.914, allocations: 0 / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002841/0.9143, allocations: 215.3 kB / 1.213 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.175e-05/0.9143, allocations: 85.02 kB / 1.213 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.9143, allocations: 4 kB / 1.213 GB, free: 7.242 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.865e-05/0.9144, allocations: 11.92 kB / 1.213 GB, free: 7.23 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.9145, allocations: 0 / 1.213 GB, free: 7.23 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.9145, allocations: 4 kB / 1.213 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.28e-05/0.9146, allocations: 95.27 kB / 1.213 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.9146, allocations: 0 / 1.213 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003143/0.9149, allocations: 43.92 kB / 1.213 GB, free: 7.09 MB / 0.9356 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.0008078/0.9157, allocations: 0.8035 MB / 1.214 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002379/0.9159, allocations: 72.25 kB / 1.214 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.916, allocations: 0 / 1.214 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.9161, allocations: 39.86 kB / 1.214 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.9164, allocations: 20.17 kB / 1.214 GB, free: 6.148 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001642/0.918, allocations: 1.473 MB / 1.216 GB, free: 4.578 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.9183, allocations: 0.6923 MB / 1.216 GB, free: 3.859 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.333e-05/0.9183, allocations: 11.98 kB / 1.216 GB, free: 3.848 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.351e-05/0.9184, allocations: 23.42 kB / 1.216 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of SimCode: time 2.51e-07/0.9184, allocations: 3.938 kB / 1.216 GB, free: 3.82 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01864/0.937, allocations: 2.673 MB / 1.219 GB, free: 1.297 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.622/8.559, allocations: 11.38 kB / 1.219 GB, free: 1.289 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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