Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.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.Residential.Windows.Validation.Nicol2001WindowsUK,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK,fileNamePrefix="Buildings_9_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK",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.001671/0.001671, allocations: 108 kB / 15.61 MB, free: 152 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.001889/0.001889, allocations: 193 kB / 16.53 MB, free: 6.664 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.296/2.296, allocations: 390.2 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 56.14 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5012/0.5026, allocations: 140.4 MB / 0.9497 GB, free: 9.297 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK): time 0.00208/0.5047, allocations: 1.473 MB / 0.9511 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000901/0.5056, allocations: 0.7294 MB / 0.9519 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.622e-05/0.5057, allocations: 1.594 kB / 0.9519 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.277e-05/0.5057, allocations: 7.938 kB / 0.9519 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.479e-05/0.5058, allocations: 13.52 kB / 0.9519 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004362/0.5062, allocations: 120.8 kB / 0.952 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.198e-05/0.5063, allocations: 80.17 kB / 0.9521 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.791e-05/0.5064, allocations: 17.72 kB / 0.9521 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.981e-05/0.5065, allocations: 34.22 kB / 0.9521 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.727e-05/0.5065, allocations: 43.83 kB / 0.9522 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.796e-05/0.5066, allocations: 5.438 kB / 0.9522 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001671/0.5067, allocations: 98.12 kB / 0.9523 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.1e-05/0.5068, allocations: 15.95 kB / 0.9523 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.661e-05/0.5068, allocations: 30.55 kB / 0.9523 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.507, allocations: 136.7 kB / 0.9524 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.507, allocations: 0 / 0.9524 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.703e-06/0.507, allocations: 1.469 kB / 0.9524 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.975e-06/0.507, allocations: 3.938 kB / 0.9524 GB, free: 7.176 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.000461/0.5075, allocations: 428 kB / 0.9529 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.5075, allocations: 9.531 kB / 0.9529 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.447e-05/0.5076, allocations: 43.56 kB / 0.9529 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/0.5076, allocations: 4.281 kB / 0.9529 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.25e-05/0.5077, allocations: 180.1 kB / 0.9531 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.5077, allocations: 2.844 kB / 0.9531 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.612e-05/0.5077, allocations: 4.281 kB / 0.9531 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001536/0.5079, allocations: 71.88 kB / 0.9532 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.5079, allocations: 1.188 kB / 0.9532 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.5079, allocations: 4 kB / 0.9532 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.5079, allocations: 1.406 kB / 0.9532 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.5081, allocations: 40.5 kB / 0.9532 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004785/0.5085, allocations: 317.8 kB / 0.9535 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001145/0.5087, allocations: 48.66 kB / 0.9535 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.589e-05/0.5087, allocations: 36.02 kB / 0.9536 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.608e-05/0.5088, allocations: 0 / 0.9536 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00014/0.5089, allocations: 78.08 kB / 0.9537 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.5089, allocations: 0 / 0.9537 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003459/0.5093, allocations: 148.8 kB / 0.9538 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.167e-05/0.5093, allocations: 52.59 kB / 0.9539 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.099e-05/0.5094, allocations: 121.3 kB / 0.954 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.5094, allocations: 31.23 kB / 0.954 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.685e-05/0.5094, allocations: 90.27 kB / 0.9541 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.5094, allocations: 14.62 kB / 0.9541 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.252e-05/0.5095, allocations: 30.27 kB / 0.9541 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.434e-05/0.5095, allocations: 324.1 kB / 0.9544 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.775e-05/0.5096, allocations: 27.11 kB / 0.9545 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.195e-05/0.5097, allocations: 52.41 kB / 0.9545 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.5099, allocations: 69.7 kB / 0.9546 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5099, allocations: 5.125 kB / 0.9546 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002157/0.5101, allocations: 120.4 kB / 0.9547 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.5101, allocations: 5.844 kB / 0.9547 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.5101, allocations: 1.375 kB / 0.9547 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.5101, allocations: 1.75 kB / 0.9547 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.075e-05/0.5102, allocations: 15.36 kB / 0.9547 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.5102, allocations: 1.031 kB / 0.9547 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.811e-05/0.5103, allocations: 8 kB / 0.9547 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.5103, allocations: 11.19 kB / 0.9547 GB, free: 4.973 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.787e-05/0.5104, allocations: 123 kB / 0.9549 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.72e-05/0.5104, allocations: 6.938 kB / 0.9549 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.092e-05/0.5104, allocations: 9.469 kB / 0.9549 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.5104, allocations: 0.9688 kB / 0.9549 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.5105, allocations: 1.156 kB / 0.9549 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.5105, allocations: 0 / 0.9549 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003577/0.5108, allocations: 390.3 kB / 0.9552 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5108, allocations: 1.25 kB / 0.9552 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.199e-05/0.5109, allocations: 6.578 kB / 0.9553 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.5109, allocations: 1.125 kB / 0.9553 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.5109, allocations: 5.344 kB / 0.9553 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.5109, allocations: 3.938 kB / 0.9553 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.5109, allocations: 5.344 kB / 0.9553 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002336/0.5112, allocations: 213.4 kB / 0.9555 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.681e-05/0.5112, allocations: 82.14 kB / 0.9556 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.5112, allocations: 1.062 kB / 0.9556 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.294e-05/0.5113, allocations: 7.094 kB / 0.9556 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.5113, allocations: 10.95 kB / 0.9556 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.5114, allocations: 1.906 kB / 0.9556 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.185e-05/0.5114, allocations: 92.7 kB / 0.9557 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5114, allocations: 0 / 0.9557 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002895/0.5117, allocations: 48.39 kB / 0.9557 GB, free: 4.055 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.0005344/0.5122, allocations: 0.7924 MB / 0.9565 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002164/0.5125, allocations: 78.81 kB / 0.9566 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.5125, allocations: 0 / 0.9566 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.913e-05/0.5126, allocations: 32.48 kB / 0.9566 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002449/0.5128, allocations: 20.36 kB / 0.9566 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.514, allocations: 1.49 MB / 0.9581 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.161e-05/0.5141, allocations: 0.6926 MB / 0.9587 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.395e-05/0.5141, allocations: 7.953 kB / 0.9587 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.728e-05/0.5142, allocations: 23.11 kB / 0.9588 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.5142, allocations: 0 / 0.9588 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01688/0.5311, allocations: 2.601 MB / 0.9613 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.113/7.644, allocations: 8.875 kB / 0.9613 GB, free: 15.8 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe ; mkfifo Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe >> ../files/Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_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_Residential_Windows_Validation_Nicol2001WindowsUK.fmu > Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.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.Residential.Windows.Validation.Nicol2001WindowsUK_res.csv. Warning: Get data of variable win.occ from file Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.csv failed! Error: Could not read variable win.on in file Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.csv. Warning: Get data of variable win.on from file Buildings_9_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_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