Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Herkel2008WindowsCompletelyOpen,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsCompletelyOpen",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsCompletelyOpen",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.004069/0.004069, allocations: 101 kB / 15.73 MB, free: 6.445 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.001499/0.001499, allocations: 191.6 kB / 16.67 MB, free: 6.348 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.917/2.917, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001976, allocations: 63.91 kB / 1.083 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2804, allocations: 162.2 MB / 1.241 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen): time 0.002622/0.2831, allocations: 1.5 MB / 1.243 GB, free: 8.68 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001254/0.2843, allocations: 0.7245 MB / 1.244 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.216e-05/0.2844, allocations: 0 / 1.244 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.956e-05/0.2844, allocations: 7.875 kB / 1.244 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.092e-05/0.2845, allocations: 15.86 kB / 1.244 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000491/0.285, allocations: 123.6 kB / 1.244 GB, free: 7.805 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001221/0.2851, allocations: 75.77 kB / 1.244 GB, free: 7.73 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.178e-05/0.2852, allocations: 19.98 kB / 1.244 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.819e-05/0.2853, allocations: 31.91 kB / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.067e-05/0.2854, allocations: 39.83 kB / 1.244 GB, free: 7.641 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.2854, allocations: 4 kB / 1.244 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.2856, allocations: 99.84 kB / 1.244 GB, free: 7.539 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.27e-05/0.2856, allocations: 23.91 kB / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.451e-05/0.2857, allocations: 27.86 kB / 1.244 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.2859, allocations: 135.5 kB / 1.244 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.2859, allocations: 0 / 1.244 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2859, allocations: 0 / 1.244 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.2859, allocations: 8 kB / 1.244 GB, free: 7.348 MB / 0.9981 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.000635/0.2866, allocations: 424.7 kB / 1.245 GB, free: 6.879 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.2866, allocations: 15.97 kB / 1.245 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.086e-05/0.2867, allocations: 30.75 kB / 1.245 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.323e-05/0.2867, allocations: 8.891 kB / 1.245 GB, free: 6.816 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.2869, allocations: 180.3 kB / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.2869, allocations: 8.375 kB / 1.245 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.2869, allocations: 384 / 1.245 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.2871, allocations: 81.72 kB / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.2871, allocations: 0 / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.2871, allocations: 0 / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.2872, allocations: 4 kB / 1.245 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001483/0.2873, allocations: 43.89 kB / 1.245 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006037/0.2879, allocations: 316.7 kB / 1.245 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/0.2881, allocations: 42.56 kB / 1.245 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.472e-05/0.2882, allocations: 36.95 kB / 1.245 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.2882, allocations: 0 / 1.245 GB, free: 6.012 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002014/0.2884, allocations: 79.31 kB / 1.245 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.2884, allocations: 4 kB / 1.245 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004058/0.2888, allocations: 145.6 kB / 1.246 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.2889, allocations: 51.41 kB / 1.246 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.289, allocations: 121.8 kB / 1.246 GB, free: 5.578 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.289, allocations: 29.7 kB / 1.246 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.74e-05/0.2891, allocations: 96.08 kB / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.976e-05/0.2891, allocations: 15.91 kB / 1.246 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.562e-05/0.2892, allocations: 29.7 kB / 1.246 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.2893, allocations: 322.8 kB / 1.246 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.995e-05/0.2894, allocations: 27.98 kB / 1.246 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.2895, allocations: 46.5 kB / 1.246 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001775/0.2897, allocations: 78.84 kB / 1.246 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2897, allocations: 0 / 1.246 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002606/0.29, allocations: 113.5 kB / 1.246 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.29, allocations: 4 kB / 1.246 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.29, allocations: 7.938 kB / 1.246 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.29, allocations: 0 / 1.246 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.98e-05/0.2901, allocations: 15.92 kB / 1.246 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.2902, allocations: 0 / 1.246 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.858e-05/0.2902, allocations: 12 kB / 1.246 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.2903, allocations: 4 kB / 1.246 GB, free: 4.742 MB / 0.9981 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.771e-05/0.2904, allocations: 125.8 kB / 1.247 GB, free: 4.609 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.909e-05/0.2904, allocations: 7.953 kB / 1.247 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.411e-05/0.2904, allocations: 8.375 kB / 1.247 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.2904, allocations: 0 / 1.247 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2904, allocations: 0 / 1.247 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.2904, allocations: 0 / 1.247 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005026/0.2909, allocations: 390.4 kB / 1.247 GB, free: 4.152 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.291, allocations: 0 / 1.247 GB, free: 4.152 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.817e-05/0.291, allocations: 11.92 kB / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.291, allocations: 0 / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.291, allocations: 0 / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.291, allocations: 7.938 kB / 1.247 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.291, allocations: 4 kB / 1.247 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003164/0.2914, allocations: 215.4 kB / 1.247 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.424e-05/0.2914, allocations: 85.06 kB / 1.247 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.2915, allocations: 0 / 1.247 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.656e-05/0.2916, allocations: 7.938 kB / 1.247 GB, free: 3.793 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.144e-05/0.2916, allocations: 3.984 kB / 1.247 GB, free: 3.789 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.2916, allocations: 8 kB / 1.247 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.776e-05/0.2917, allocations: 91.27 kB / 1.247 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2917, allocations: 0 / 1.247 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002917/0.292, allocations: 43.88 kB / 1.247 GB, free: 3.648 MB / 0.9981 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.0008786/0.2929, allocations: 0.8151 MB / 1.248 GB, free: 2.824 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002366/0.2931, allocations: 75.94 kB / 1.248 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2931, allocations: 3.938 kB / 1.248 GB, free: 2.746 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.2932, allocations: 35.92 kB / 1.248 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/0.2935, allocations: 7.938 kB / 1.248 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.2952, allocations: 1.496 MB / 1.25 GB, free: 1.109 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.2955, allocations: 0.6846 MB / 1.25 GB, free: 408 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.932e-05/0.2956, allocations: 11.98 kB / 1.251 GB, free: 396 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.511e-05/0.2956, allocations: 19.44 kB / 1.251 GB, free: 376 kB / 0.9981 GB Notification: Performance of SimCode: time 2.6e-07/0.2957, allocations: 0 / 1.251 GB, free: 376 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4908/0.7865, allocations: 2.654 MB / 1.253 GB, free: 15.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/8.511, allocations: 2.812 kB / 1.253 GB, free: 15.1 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsCompletelyOpen.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsCompletelyOpen.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[551]=3600.000000 File[1236]=2249.280000 Error: Could not read variable win.occ in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen_res.csv. Warning: Get data of variable win.on from file Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsCompletelyOpen_res.csv failed! " Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:time,win.TOut,win.p,TOut.amplitude,TOut.f,TOut.offset