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.004174/0.004174, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001048/0.001048, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 15.08 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.213/2.213, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 67.89 kB / 0.9504 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7564/0.7578, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK): time 0.002567/0.7604, allocations: 1.472 MB / 1.089 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.7616, allocations: 0.7334 MB / 1.09 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.858e-05/0.7617, allocations: 0 / 1.09 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.056e-05/0.7617, allocations: 6.344 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.57e-05/0.7618, allocations: 18.02 kB / 1.09 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005585/0.7623, allocations: 120.5 kB / 1.09 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.7625, allocations: 78.03 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.7626, allocations: 11.72 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.398e-05/0.7627, allocations: 34.69 kB / 1.09 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.729e-05/0.7627, allocations: 37.38 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.7628, allocations: 10.88 kB / 1.09 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.763, allocations: 94.58 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.932e-05/0.763, allocations: 23.05 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.727e-05/0.7631, allocations: 32.2 kB / 1.09 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002508/0.7633, allocations: 136.8 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.7633, allocations: 0 / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.253e-06/0.7633, allocations: 1 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.7633, allocations: 0 / 1.09 GB, free: 3.508 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.0005213/0.7639, allocations: 426.2 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.7639, allocations: 13.41 kB / 1.091 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.828e-05/0.7639, allocations: 38.42 kB / 1.091 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.479e-05/0.764, allocations: 7.938 kB / 1.091 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.021e-05/0.7641, allocations: 170.4 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.7641, allocations: 2.828 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.055e-05/0.7641, allocations: 8.438 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.7643, allocations: 72.31 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.7643, allocations: 0.9062 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.7643, allocations: 0.6094 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-06/0.7643, allocations: 5.188 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001354/0.7645, allocations: 40.12 kB / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005642/0.765, allocations: 314.3 kB / 1.091 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000125/0.7652, allocations: 45.45 kB / 1.091 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.459e-05/0.7653, allocations: 40.14 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.7653, allocations: 2.25 kB / 1.091 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001832/0.7655, allocations: 80.77 kB / 1.091 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.502e-06/0.7655, allocations: 0 / 1.091 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.000431/0.7659, allocations: 141.8 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.766, allocations: 61.8 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.563e-05/0.7661, allocations: 118.5 kB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.7661, allocations: 27.12 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.595e-05/0.7661, allocations: 92.03 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.131e-05/0.7662, allocations: 16.38 kB / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.686e-05/0.7662, allocations: 29.27 kB / 1.092 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.912e-05/0.7663, allocations: 327.6 kB / 1.092 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.746e-05/0.7664, allocations: 27.69 kB / 1.092 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.173e-05/0.7665, allocations: 50.28 kB / 1.092 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.7666, allocations: 71.73 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.7666, allocations: 0 / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002387/0.7669, allocations: 116.9 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.7669, allocations: 6.094 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.7669, allocations: 1.344 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.7669, allocations: 1.25 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.716e-05/0.767, allocations: 15.7 kB / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.7671, allocations: 0.6562 kB / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.909e-05/0.7671, allocations: 18.09 kB / 1.092 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.7671, allocations: 3.922 kB / 1.092 GB, free: 1.469 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.384e-05/0.7672, allocations: 123 kB / 1.093 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.723e-05/0.7672, allocations: 7.938 kB / 1.093 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.544e-05/0.7673, allocations: 10.72 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.7673, allocations: 0.7812 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.7673, allocations: 1.625 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.7673, allocations: 0 / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003895/0.7677, allocations: 374.5 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.7677, allocations: 4.797 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.029e-05/0.7677, allocations: 5.688 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.7678, allocations: 1.062 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.7678, allocations: 6.203 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.7678, allocations: 3.938 kB / 1.093 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.7678, allocations: 0.7188 kB / 1.093 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.768, allocations: 215.4 kB / 1.093 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.089e-05/0.7681, allocations: 88.12 kB / 1.093 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.7681, allocations: 1.625 kB / 1.093 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.201e-05/0.7682, allocations: 12.86 kB / 1.093 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.981e-05/0.7682, allocations: 7.766 kB / 1.093 GB, free: 0.707 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.7682, allocations: 8.172 kB / 1.093 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.661e-05/0.7683, allocations: 92.8 kB / 1.093 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7683, allocations: 0 / 1.093 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000311/0.7686, allocations: 42.11 kB / 1.093 GB, free: 0.6133 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.0007213/0.7693, allocations: 0.802 MB / 1.094 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002445/0.7696, allocations: 72.16 kB / 1.094 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.7696, allocations: 0.7812 kB / 1.094 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.7697, allocations: 41.44 kB / 1.094 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002612/0.77, allocations: 14.64 kB / 1.094 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.7716, allocations: 1.496 MB / 1.096 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.7718, allocations: 0.6875 MB / 1.096 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.375e-05/0.7719, allocations: 8.719 kB / 1.096 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.862e-05/0.7719, allocations: 24.58 kB / 1.096 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.7719, allocations: 0 / 1.096 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.7903, allocations: 2.633 MB / 1.099 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.624/8.414, allocations: 11.55 kB / 1.099 GB, free: 13.36 MB / 0.8731 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