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.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: "" <> 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.001668/0.001668, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001917/0.001917, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.288/2.288, allocations: 390.3 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 75.89 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5107/0.512, allocations: 140.4 MB / 0.9497 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002187/0.5143, allocations: 1.49 MB / 0.9512 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009298/0.5152, allocations: 0.7332 MB / 0.9519 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.681e-05/0.5153, allocations: 5.031 kB / 0.9519 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.769e-05/0.5153, allocations: 3.938 kB / 0.9519 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.188e-05/0.5154, allocations: 13.17 kB / 0.9519 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004351/0.5158, allocations: 118.5 kB / 0.952 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.06e-05/0.5159, allocations: 79.08 kB / 0.9521 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.32e-05/0.516, allocations: 13.55 kB / 0.9521 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.005e-05/0.5161, allocations: 41.66 kB / 0.9522 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.694e-05/0.5161, allocations: 39.67 kB / 0.9522 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.5162, allocations: 6.375 kB / 0.9522 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.5163, allocations: 94.22 kB / 0.9523 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.141e-05/0.5164, allocations: 18.09 kB / 0.9523 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.869e-05/0.5164, allocations: 31.58 kB / 0.9523 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001801/0.5166, allocations: 135.8 kB / 0.9525 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.5166, allocations: 1.5 kB / 0.9525 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.332e-06/0.5166, allocations: 0 / 0.9525 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.5166, allocations: 0 / 0.9525 GB, free: 7.086 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.000485/0.5171, allocations: 436.2 kB / 0.9529 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.5171, allocations: 10.25 kB / 0.9529 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.631e-05/0.5172, allocations: 32.09 kB / 0.9529 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.5172, allocations: 4.562 kB / 0.9529 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.626e-05/0.5173, allocations: 171.2 kB / 0.9531 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.5173, allocations: 11.78 kB / 0.9531 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.5173, allocations: 3.562 kB / 0.9531 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.5175, allocations: 76.64 kB / 0.9532 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.5175, allocations: 4 kB / 0.9532 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.5175, allocations: 3.984 kB / 0.9532 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.5175, allocations: 1.344 kB / 0.9532 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.5177, allocations: 40.19 kB / 0.9532 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004801/0.5181, allocations: 314.7 kB / 0.9535 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.5183, allocations: 52 kB / 0.9536 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.76e-05/0.5184, allocations: 35.66 kB / 0.9536 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.5184, allocations: 5.266 kB / 0.9536 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000145/0.5185, allocations: 68.89 kB / 0.9537 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.5185, allocations: 1 kB / 0.9537 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003583/0.5189, allocations: 147.8 kB / 0.9538 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.5189, allocations: 53.84 kB / 0.9539 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.834e-05/0.519, allocations: 124.2 kB / 0.954 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.519, allocations: 30.75 kB / 0.954 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.789e-05/0.5191, allocations: 90.8 kB / 0.9541 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.493e-05/0.5191, allocations: 14.5 kB / 0.9541 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.254e-05/0.5191, allocations: 31.08 kB / 0.9542 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.495e-05/0.5192, allocations: 327.9 kB / 0.9545 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.178e-05/0.5193, allocations: 26.77 kB / 0.9545 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.296e-05/0.5193, allocations: 44.91 kB / 0.9545 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.5195, allocations: 76.98 kB / 0.9546 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5195, allocations: 1.188 kB / 0.9546 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002197/0.5197, allocations: 116.9 kB / 0.9547 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.5197, allocations: 4.969 kB / 0.9547 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.5198, allocations: 1.375 kB / 0.9547 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.5198, allocations: 1.406 kB / 0.9547 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.318e-05/0.5199, allocations: 20.86 kB / 0.9547 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.5199, allocations: 0 / 0.9547 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.84e-05/0.52, allocations: 13.03 kB / 0.9548 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.52, allocations: 2.781 kB / 0.9548 GB, free: 4.883 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 5.873e-05/0.52, allocations: 126.7 kB / 0.9549 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.5201, allocations: 6.5 kB / 0.9549 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.108e-05/0.5201, allocations: 10.78 kB / 0.9549 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.5201, allocations: 0 / 0.9549 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.5201, allocations: 1.469 kB / 0.9549 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.5201, allocations: 0 / 0.9549 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003482/0.5205, allocations: 383.1 kB / 0.9553 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.5205, allocations: 0 / 0.9553 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.149e-05/0.5205, allocations: 7.484 kB / 0.9553 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.5205, allocations: 3.938 kB / 0.9553 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.5205, allocations: 4.969 kB / 0.9553 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.5205, allocations: 5.375 kB / 0.9553 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.5206, allocations: 0 / 0.9553 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002325/0.5208, allocations: 218.2 kB / 0.9555 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.663e-05/0.5208, allocations: 82.36 kB / 0.9556 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.883e-05/0.5208, allocations: 1.438 kB / 0.9556 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.899e-05/0.5209, allocations: 6.719 kB / 0.9556 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.339e-05/0.521, allocations: 6.891 kB / 0.9556 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.577e-06/0.521, allocations: 1.344 kB / 0.9556 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.014e-05/0.521, allocations: 93.2 kB / 0.9557 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.521, allocations: 0 / 0.9557 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002848/0.5213, allocations: 43.83 kB / 0.9557 GB, free: 3.973 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.0005407/0.5219, allocations: 0.8033 MB / 0.9565 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002169/0.5221, allocations: 77.94 kB / 0.9566 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.5221, allocations: 0 / 0.9566 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.168e-05/0.5222, allocations: 36.52 kB / 0.9566 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002489/0.5225, allocations: 10.92 kB / 0.9566 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/0.5237, allocations: 1.484 MB / 0.9581 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.464e-05/0.5238, allocations: 0.6924 MB / 0.9588 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.392e-05/0.5238, allocations: 2.719 kB / 0.9588 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.789e-05/0.5238, allocations: 22.98 kB / 0.9588 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.5239, allocations: 0 / 0.9588 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01681/0.5407, allocations: 2.608 MB / 0.9613 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.127/7.667, allocations: 13.09 kB / 0.9613 GB, free: 15.7 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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) "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_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv. Warning: Get data of variable win.occ from file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv failed! Error: Could not read variable win.on in file Buildings_9_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.csv. Warning: Get data of variable win.on from file Buildings_9_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