Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_11_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.007524/0.007524, allocations: 100.6 kB / 15.73 MB, free: 6.012 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.002164/0.002164, allocations: 190.1 kB / 16.67 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.78/2.78, allocations: 469.8 MB / 0.7425 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.003316/0.003317, allocations: 63.91 kB / 1.065 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7433/0.7467, allocations: 159.1 MB / 1.22 GB, free: 2.07 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002625/0.7493, allocations: 1.503 MB / 1.222 GB, free: 0.5586 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001293/0.7506, allocations: 0.7254 MB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.4e-05/0.7507, allocations: 0 / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.696e-05/0.7507, allocations: 3.938 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.516e-05/0.7508, allocations: 15.86 kB / 1.222 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005001/0.7513, allocations: 115.6 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.7514, allocations: 87.75 kB / 1.223 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.244e-05/0.7515, allocations: 7.953 kB / 1.223 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.404e-05/0.7516, allocations: 31.91 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.541e-05/0.7517, allocations: 47.77 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.181e-05/0.7517, allocations: 12 kB / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.7519, allocations: 95.91 kB / 1.223 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.482e-05/0.752, allocations: 11.92 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.157e-05/0.752, allocations: 39.78 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.7523, allocations: 142.2 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.7523, allocations: 0 / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.343e-06/0.7523, allocations: 0 / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.7523, allocations: 0 / 1.223 GB, free: 15.23 MB / 0.9512 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.0006414/0.7529, allocations: 425.7 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.753, allocations: 8.031 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.448e-05/0.753, allocations: 38.75 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.34e-05/0.7531, allocations: 4.891 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.7532, allocations: 172.3 kB / 1.224 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.7532, allocations: 4.375 kB / 1.224 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.677e-05/0.7533, allocations: 8.375 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001935/0.7535, allocations: 73.72 kB / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.7535, allocations: 0 / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.7535, allocations: 0 / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.7535, allocations: 4 kB / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000139/0.7536, allocations: 35.97 kB / 1.224 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005919/0.7542, allocations: 320.6 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.7544, allocations: 46.56 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.184e-05/0.7545, allocations: 44.89 kB / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.7545, allocations: 0 / 1.224 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.7547, allocations: 79.38 kB / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.7547, allocations: 0 / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0003973/0.7551, allocations: 133.6 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.7552, allocations: 63.41 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.7553, allocations: 129.7 kB / 1.224 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.7553, allocations: 29.7 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.749e-05/0.7554, allocations: 92.2 kB / 1.225 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.7554, allocations: 11.91 kB / 1.225 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-05/0.7555, allocations: 29.7 kB / 1.225 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.7556, allocations: 326.8 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.453e-05/0.7557, allocations: 19.98 kB / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.7558, allocations: 50.56 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.756, allocations: 74.48 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.756, allocations: 4 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002488/0.7562, allocations: 109.5 kB / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.7563, allocations: 8 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.7563, allocations: 0 / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.7563, allocations: 0 / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.135e-05/0.7564, allocations: 11.98 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.7564, allocations: 8.328 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.184e-05/0.7565, allocations: 11.94 kB / 1.225 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.7565, allocations: 7.938 kB / 1.225 GB, free: 12.64 MB / 0.9512 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.671e-05/0.7566, allocations: 129.8 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.787e-05/0.7566, allocations: 7.953 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.568e-05/0.7567, allocations: 8.375 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.7567, allocations: 0 / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.7567, allocations: 0 / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.7567, allocations: 0 / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004785/0.7572, allocations: 386.4 kB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.7572, allocations: 0 / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.614e-05/0.7572, allocations: 15.98 kB / 1.226 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.7572, allocations: 0 / 1.226 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.7573, allocations: 0 / 1.226 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.688e-06/0.7573, allocations: 7.875 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.7573, allocations: 0 / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003077/0.7576, allocations: 203.5 kB / 1.226 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.83e-05/0.7576, allocations: 85.05 kB / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.7577, allocations: 8 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.264e-05/0.7578, allocations: 7.938 kB / 1.226 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.502e-05/0.7578, allocations: 7.984 kB / 1.226 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.7578, allocations: 0 / 1.226 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.743e-05/0.7579, allocations: 95.27 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7579, allocations: 0 / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002902/0.7582, allocations: 43.86 kB / 1.226 GB, free: 11.55 MB / 0.9512 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.0008325/0.759, allocations: 0.8134 MB / 1.227 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002368/0.7593, allocations: 71.95 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.7593, allocations: 4.062 kB / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.78e-05/0.7594, allocations: 31.98 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.7596, allocations: 22.05 kB / 1.227 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.7613, allocations: 1.496 MB / 1.229 GB, free: 9.012 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.7616, allocations: 0.6846 MB / 1.229 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.435e-05/0.7617, allocations: 7.984 kB / 1.229 GB, free: 8.293 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.992e-05/0.7617, allocations: 23.42 kB / 1.229 GB, free: 8.27 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.7617, allocations: 0 / 1.229 GB, free: 8.27 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02318/0.7849, allocations: 2.638 MB / 1.232 GB, free: 5.773 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.119/8.904, allocations: 9.125 kB / 1.232 GB, free: 5.766 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_11_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv. Warning: Get data of variable win.occ from file Buildings_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv failed! Error: Could not read variable win.on in file Buildings_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv. Warning: Get data of variable win.on from file Buildings_11_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_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