Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK,fileNamePrefix="Buildings_latest_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.007362/0.007362, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.001901/0.001901, allocations: 189.6 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.308/1.308, 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 11.1.0-master/package.mo): time 2.578/2.578, allocations: 469.4 MB / 0.7422 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 63.91 kB / 1.064 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6451/0.6464, allocations: 159.1 MB / 1.22 GB, free: 2.254 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK): time 0.002393/0.6488, allocations: 1.48 MB / 1.221 GB, free: 0.7617 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001195/0.65, allocations: 0.7176 MB / 1.222 GB, free: 40 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.999e-05/0.6501, allocations: 4 kB / 1.222 GB, free: 36 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.699e-05/0.6501, allocations: 7.875 kB / 1.222 GB, free: 28 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.379e-05/0.6502, allocations: 15.86 kB / 1.222 GB, free: 12 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005284/0.6507, allocations: 123.6 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001156/0.6509, allocations: 75.77 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.416e-05/0.651, allocations: 15.95 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.21e-05/0.6511, allocations: 43.89 kB / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.511e-05/0.6511, allocations: 35.84 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.788e-05/0.6512, allocations: 8 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.6514, allocations: 91.84 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.655e-05/0.6514, allocations: 23.86 kB / 1.222 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.038e-05/0.6515, allocations: 35.84 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002605/0.6517, allocations: 143.3 kB / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.6517, allocations: 0 / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.222e-06/0.6517, allocations: 0 / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.6517, allocations: 0 / 1.222 GB, free: 15.43 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.0005979/0.6524, allocations: 424.7 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.6524, allocations: 8.625 kB / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.412e-05/0.6524, allocations: 34.75 kB / 1.223 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.6525, allocations: 8.891 kB / 1.223 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.6526, allocations: 176.3 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.6526, allocations: 4.375 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.921e-05/0.6526, allocations: 8.312 kB / 1.223 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.6528, allocations: 69.78 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.6528, allocations: 4 kB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.6529, allocations: 4 kB / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.6529, allocations: 0 / 1.223 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001344/0.653, allocations: 35.97 kB / 1.223 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005766/0.6536, allocations: 320.6 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.6537, allocations: 50.56 kB / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.659e-05/0.6538, allocations: 32.95 kB / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.6539, allocations: 4 kB / 1.224 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001846/0.6541, allocations: 75.38 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.6541, allocations: 0 / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0003934/0.6545, allocations: 149.6 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.6545, allocations: 51.41 kB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.856e-05/0.6546, allocations: 133.7 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.6546, allocations: 29.7 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.59e-05/0.6547, allocations: 84.14 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/0.6547, allocations: 15.91 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.305e-05/0.6548, allocations: 29.7 kB / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.869e-05/0.6549, allocations: 326.8 kB / 1.224 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.488e-05/0.655, allocations: 23.98 kB / 1.224 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.864e-05/0.6551, allocations: 50.55 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.6552, allocations: 66.5 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.6553, allocations: 4 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002528/0.6555, allocations: 113.5 kB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.6555, allocations: 11.94 kB / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.6555, allocations: 0 / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.6556, allocations: 0 / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.754e-05/0.6557, allocations: 11.98 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.6557, allocations: 11.88 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.022e-05/0.6558, allocations: 7.938 kB / 1.225 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.6558, allocations: 12.05 kB / 1.225 GB, free: 12.83 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 8.064e-05/0.6559, allocations: 121.8 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.781e-05/0.6559, allocations: 3.953 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.599e-05/0.6559, allocations: 12.38 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.6559, allocations: 0 / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.6559, allocations: 0 / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.6559, allocations: 0 / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004471/0.6564, allocations: 390.4 kB / 1.225 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.6564, allocations: 4 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.273e-05/0.6565, allocations: 3.984 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.6565, allocations: 4 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.6565, allocations: 0 / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.6565, allocations: 3.938 kB / 1.225 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.6565, allocations: 0 / 1.225 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002878/0.6568, allocations: 215.5 kB / 1.225 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.6568, allocations: 85.05 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.6569, allocations: 0 / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.935e-05/0.657, allocations: 15.86 kB / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.78e-05/0.657, allocations: 8 kB / 1.226 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.657, allocations: 0 / 1.226 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.003e-05/0.6571, allocations: 95.27 kB / 1.226 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6571, allocations: 0 / 1.226 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003128/0.6574, allocations: 43.86 kB / 1.226 GB, free: 11.73 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.0007258/0.6581, allocations: 0.8079 MB / 1.226 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002283/0.6584, allocations: 75.89 kB / 1.227 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.6584, allocations: 0 / 1.227 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.939e-05/0.6585, allocations: 35.92 kB / 1.227 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.6588, allocations: 19.86 kB / 1.227 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.6603, allocations: 1.489 MB / 1.228 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002299/0.6606, allocations: 0.6947 MB / 1.229 GB, free: 8.488 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.801e-05/0.6606, allocations: 4 kB / 1.229 GB, free: 8.484 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.527e-05/0.6607, allocations: 19.42 kB / 1.229 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of SimCode: time 1.894e-06/0.6607, allocations: 4 kB / 1.229 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01767/0.6783, allocations: 2.649 MB / 1.231 GB, free: 5.961 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.44/8.118, allocations: 18.73 kB / 1.231 GB, free: 5.945 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK.fmu > Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsUK.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsUK_res.csv. Warning: Get data of variable win.on from file Buildings_latest_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