Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_latest_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",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.001103/0.001103, 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.00105/0.00105, allocations: 192.9 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.672/2.672, allocations: 469.4 MB / 0.742 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 62.61 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2305, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.002496/0.2331, allocations: 1.484 MB / 1.065 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001149/0.2342, allocations: 0.734 MB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.925e-05/0.2343, allocations: 0 / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.097e-05/0.2343, allocations: 11.81 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.074e-05/0.2344, allocations: 11.92 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004997/0.2349, allocations: 119.5 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001009/0.235, allocations: 71.84 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.394e-05/0.2351, allocations: 19.98 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.994e-05/0.2352, allocations: 31.91 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.382e-05/0.2353, allocations: 43.83 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.2353, allocations: 8 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.2355, allocations: 91.84 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.745e-05/0.2355, allocations: 23.91 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.405e-05/0.2356, allocations: 31.86 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002091/0.2358, allocations: 139.9 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2358, allocations: 0 / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2358, allocations: 0 / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.145e-06/0.2358, allocations: 0 / 1.066 GB, free: 11.69 MB / 0.8262 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.0005532/0.2364, allocations: 420.9 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.2364, allocations: 12.02 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.2365, allocations: 34.75 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.2365, allocations: 8.844 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.84e-05/0.2366, allocations: 176.2 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.2366, allocations: 4.375 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.995e-05/0.2366, allocations: 12.36 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.2368, allocations: 73.77 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.2368, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.2369, allocations: 4 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.2369, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001322/0.237, allocations: 43.89 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/0.2376, allocations: 316.7 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.2377, allocations: 46.56 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.372e-05/0.2378, allocations: 32.97 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.2378, allocations: 4 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001723/0.238, allocations: 79.31 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.238, allocations: 4 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003812/0.2384, allocations: 141.8 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.2384, allocations: 55.41 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.189e-05/0.2385, allocations: 117.8 kB / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.2386, allocations: 29.7 kB / 1.068 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.481e-05/0.2386, allocations: 95.97 kB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.2386, allocations: 19.75 kB / 1.068 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.862e-05/0.2387, allocations: 33.7 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.752e-05/0.2388, allocations: 318.8 kB / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.563e-05/0.2389, allocations: 27.97 kB / 1.068 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.236e-05/0.239, allocations: 50.5 kB / 1.068 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/0.2391, allocations: 74.61 kB / 1.069 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2392, allocations: 0 / 1.069 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002399/0.2394, allocations: 113.6 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.2394, allocations: 8 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2394, allocations: 0 / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.2394, allocations: 0 / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.2396, allocations: 19.92 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.2396, allocations: 4 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.33e-05/0.2396, allocations: 15.97 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.2397, allocations: 3.938 kB / 1.069 GB, free: 9.082 MB / 0.8262 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.033e-05/0.2398, allocations: 122.3 kB / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.2398, allocations: 7.891 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.568e-05/0.2398, allocations: 12.38 kB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2398, allocations: 0 / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2398, allocations: 0 / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2398, allocations: 0 / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004387/0.2403, allocations: 382.4 kB / 1.069 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2403, allocations: 0 / 1.069 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.166e-05/0.2403, allocations: 4 kB / 1.069 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.2403, allocations: 4 kB / 1.069 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.2404, allocations: 7.984 kB / 1.069 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.2404, allocations: 3.938 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2404, allocations: 0 / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.2407, allocations: 215.3 kB / 1.069 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.491e-05/0.2407, allocations: 85 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.2407, allocations: 0 / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.878e-05/0.2408, allocations: 11.94 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.813e-05/0.2409, allocations: 7.984 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.2409, allocations: 0 / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.696e-05/0.2409, allocations: 95.27 kB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2409, allocations: 4 kB / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002968/0.2412, allocations: 36 kB / 1.07 GB, free: 8.004 MB / 0.8262 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.0006936/0.2419, allocations: 0.8075 MB / 1.07 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002311/0.2422, allocations: 75.88 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2422, allocations: 3.938 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.877e-05/0.2423, allocations: 31.98 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.2426, allocations: 11.94 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.244, allocations: 1.49 MB / 1.072 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.2443, allocations: 0.7 MB / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.525e-05/0.2443, allocations: 4 kB / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.36e-05/0.2443, allocations: 19.42 kB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2444, allocations: 0 / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.2616, allocations: 2.618 MB / 1.075 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.48/7.742, allocations: 11.09 kB / 1.075 GB, free: 2.238 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe >> ../files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_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_Nicol2001WindowsPakistan.fmu > Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.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.Nicol2001WindowsPakistan_res.csv. Warning: Get data of variable win.occ from file Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.csv failed! Error: Could not read variable win.on in file Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.csv. Warning: Get data of variable win.on from file Buildings_latest_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_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