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.004192/0.004192, allocations: 101.9 kB / 15.73 MB, free: 6.062 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.001045/0.001045, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.286/1.286, 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 9.1.3-maint.9.1.x/package.mo): time 2.201/2.201, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 63.91 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6881/0.6899, allocations: 140.4 MB / 1.087 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.002201/0.6922, allocations: 1.508 MB / 1.089 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00107/0.6933, allocations: 0.7283 MB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.664e-05/0.6933, allocations: 0 / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.721e-05/0.6934, allocations: 6.219 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.955e-05/0.6934, allocations: 13.73 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004848/0.6939, allocations: 124.7 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.694, allocations: 81.45 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 7.737e-05/0.6941, allocations: 7.516 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.575e-05/0.6942, allocations: 35.41 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.227e-05/0.6943, allocations: 37.06 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.752e-05/0.6943, allocations: 6.625 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/0.6945, allocations: 98.64 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.6945, allocations: 18.64 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.185e-05/0.6945, allocations: 35.09 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002308/0.6948, allocations: 137.7 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.6948, allocations: 0 / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.693e-06/0.6948, allocations: 0.6094 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.6948, allocations: 1.031 kB / 1.09 GB, free: 3.461 MB / 0.8575 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.0005108/0.6953, allocations: 424.5 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.6954, allocations: 9.719 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.843e-05/0.6954, allocations: 37.17 kB / 1.091 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.596e-05/0.6954, allocations: 13.03 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.282e-05/0.6955, allocations: 173.7 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.6955, allocations: 3.188 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.6956, allocations: 8.5 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/0.6958, allocations: 68.72 kB / 1.091 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-06/0.6958, allocations: 0 / 1.091 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.6958, allocations: 5.453 kB / 1.091 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.6958, allocations: 0.9062 kB / 1.091 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.6959, allocations: 39.83 kB / 1.091 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005323/0.6965, allocations: 326.9 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001218/0.6966, allocations: 46.08 kB / 1.091 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.974e-05/0.6967, allocations: 31.45 kB / 1.091 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.6967, allocations: 9.656 kB / 1.091 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001685/0.6969, allocations: 73.44 kB / 1.091 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.6969, allocations: 3.938 kB / 1.091 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.000381/0.6973, allocations: 141.1 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.397e-05/0.6973, allocations: 58.25 kB / 1.092 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.038e-05/0.6974, allocations: 122.9 kB / 1.092 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.6974, allocations: 26.77 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.218e-05/0.6975, allocations: 92.59 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.671e-05/0.6975, allocations: 11.94 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.571e-05/0.6975, allocations: 33.47 kB / 1.092 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.933e-05/0.6976, allocations: 323.9 kB / 1.092 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.406e-05/0.6977, allocations: 26.53 kB / 1.092 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.922e-05/0.6978, allocations: 50.98 kB / 1.092 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001542/0.6979, allocations: 72.53 kB / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.6979, allocations: 0 / 1.092 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002324/0.6982, allocations: 108.7 kB / 1.092 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.6982, allocations: 12.44 kB / 1.092 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.6982, allocations: 0.8125 kB / 1.092 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.6982, allocations: 2.391 kB / 1.092 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.606e-05/0.6983, allocations: 19.28 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.6983, allocations: 1.75 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.847e-05/0.6984, allocations: 12.94 kB / 1.092 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.6984, allocations: 3.891 kB / 1.092 GB, free: 1.426 MB / 0.8575 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.084e-05/0.6985, allocations: 119 kB / 1.093 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.6985, allocations: 12.09 kB / 1.093 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.442e-05/0.6986, allocations: 10.95 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.6986, allocations: 4.734 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.6986, allocations: 1.609 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.6986, allocations: 0 / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003919/0.699, allocations: 382.5 kB / 1.093 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.699, allocations: 0.6562 kB / 1.093 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.224e-05/0.699, allocations: 5.203 kB / 1.093 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.699, allocations: 5.094 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.6991, allocations: 2.438 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.6991, allocations: 4.688 kB / 1.093 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.6991, allocations: 0 / 1.093 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.6993, allocations: 221 kB / 1.093 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.917e-05/0.6994, allocations: 82.8 kB / 1.093 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.6994, allocations: 5.672 kB / 1.093 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.373e-05/0.6995, allocations: 16.53 kB / 1.093 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.6995, allocations: 5.422 kB / 1.093 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.6995, allocations: 2.547 kB / 1.093 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.561e-05/0.6996, allocations: 96.16 kB / 1.093 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6996, allocations: 0.9688 kB / 1.093 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003061/0.6999, allocations: 46.11 kB / 1.093 GB, free: 0.5547 MB / 0.8575 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.0006984/0.7006, allocations: 0.7916 MB / 1.094 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002401/0.7009, allocations: 67.91 kB / 1.094 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.7009, allocations: 0.8438 kB / 1.094 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.701, allocations: 41.61 kB / 1.094 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.7012, allocations: 15.03 kB / 1.094 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.7028, allocations: 1.493 MB / 1.096 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.703, allocations: 0.6872 MB / 1.096 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.904e-05/0.7031, allocations: 8.5 kB / 1.097 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.772e-05/0.7031, allocations: 22.11 kB / 1.097 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of SimCode: time 2.6e-07/0.7031, allocations: 3.938 kB / 1.097 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.7215, allocations: 2.634 MB / 1.099 GB, free: 13.31 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/8.195, allocations: 7.812 kB / 1.099 GB, free: 13.3 MB / 0.8731 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