Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_11_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan,fileNamePrefix="Buildings_11_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.004192/0.004192, allocations: 101 kB / 15.73 MB, free: 6.004 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.001232/0.001232, allocations: 187.2 kB / 16.67 MB, free: 5.922 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.742/2.742, allocations: 469.8 MB / 0.7425 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 67.89 kB / 1.065 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6517/0.6537, allocations: 159.1 MB / 1.22 GB, free: 2.105 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.002632/0.6564, allocations: 1.475 MB / 1.222 GB, free: 0.625 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001311/0.6577, allocations: 0.7216 MB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.269e-05/0.6578, allocations: 4 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.041e-05/0.6578, allocations: 3.938 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.382e-05/0.6579, allocations: 15.86 kB / 1.222 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005086/0.6584, allocations: 123.6 kB / 1.222 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.6585, allocations: 79.59 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 7.943e-05/0.6586, allocations: 11.95 kB / 1.223 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.56e-05/0.6587, allocations: 35.91 kB / 1.223 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.804e-05/0.6588, allocations: 43.83 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/0.6588, allocations: 8 kB / 1.223 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001981/0.659, allocations: 95.84 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.758e-05/0.6591, allocations: 19.86 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.35e-05/0.6591, allocations: 35.84 kB / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.6594, allocations: 143.3 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.6594, allocations: 0 / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.182e-06/0.6594, allocations: 0 / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.6594, allocations: 0 / 1.223 GB, free: 15.29 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.0006511/0.6601, allocations: 420.7 kB / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.6601, allocations: 12.03 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.431e-05/0.6602, allocations: 38.75 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.306e-05/0.6602, allocations: 8.891 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.6603, allocations: 176.3 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.6604, allocations: 384 / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.139e-05/0.6604, allocations: 8.375 kB / 1.224 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.6606, allocations: 69.78 kB / 1.224 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.6606, allocations: 0 / 1.224 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.6606, allocations: 3.984 kB / 1.224 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.6606, allocations: 0 / 1.224 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001407/0.6608, allocations: 43.91 kB / 1.224 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005998/0.6614, allocations: 324.6 kB / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.6615, allocations: 42.56 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.545e-05/0.6616, allocations: 36.97 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.6617, allocations: 0 / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001937/0.6619, allocations: 87.36 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.6619, allocations: 0 / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004026/0.6623, allocations: 137.6 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.6623, allocations: 63.39 kB / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.6624, allocations: 125.8 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.6625, allocations: 25.7 kB / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.106e-05/0.6625, allocations: 92.12 kB / 1.225 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.625e-05/0.6626, allocations: 11.91 kB / 1.225 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.619e-05/0.6626, allocations: 29.7 kB / 1.225 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.6628, allocations: 326.8 kB / 1.225 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.406e-05/0.6629, allocations: 19.98 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.663, allocations: 50.56 kB / 1.225 GB, free: 12.94 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.6632, allocations: 78.48 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.6632, allocations: 0 / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002575/0.6634, allocations: 113.6 kB / 1.225 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.6635, allocations: 4 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.6635, allocations: 0 / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.6635, allocations: 4 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.932e-05/0.6636, allocations: 11.98 kB / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.6636, allocations: 7.875 kB / 1.225 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.351e-05/0.6637, allocations: 15.88 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.6637, allocations: 4 kB / 1.225 GB, free: 12.69 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 9.959e-05/0.6638, allocations: 126.3 kB / 1.225 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.821e-05/0.6638, allocations: 7.953 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.85e-05/0.6639, allocations: 8.375 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.6639, allocations: 0 / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.6639, allocations: 4 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.6639, allocations: 0 / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004917/0.6644, allocations: 382.4 kB / 1.226 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.6644, allocations: 0 / 1.226 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-05/0.6645, allocations: 15.98 kB / 1.226 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.6645, allocations: 0 / 1.226 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.6645, allocations: 0 / 1.226 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.6645, allocations: 3.938 kB / 1.226 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.6645, allocations: 0 / 1.226 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003069/0.6648, allocations: 207.5 kB / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.848e-05/0.6649, allocations: 81.06 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.6649, allocations: 8 kB / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.409e-05/0.665, allocations: 11.88 kB / 1.226 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.742e-05/0.665, allocations: 7.984 kB / 1.226 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.6651, allocations: 4 kB / 1.226 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.044e-05/0.6651, allocations: 95.86 kB / 1.226 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6651, allocations: 0 / 1.226 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002946/0.6654, allocations: 43.86 kB / 1.226 GB, free: 11.6 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.0008493/0.6663, allocations: 0.8081 MB / 1.227 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002499/0.6665, allocations: 75.89 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.6666, allocations: 4.125 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.6667, allocations: 35.92 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.6669, allocations: 10.12 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.6686, allocations: 1.5 MB / 1.228 GB, free: 9.062 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.669, allocations: 0.6846 MB / 1.229 GB, free: 8.352 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.234e-05/0.669, allocations: 4 kB / 1.229 GB, free: 8.348 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.713e-05/0.6691, allocations: 22.94 kB / 1.229 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of SimCode: time 3.517e-06/0.6691, allocations: 0 / 1.229 GB, free: 8.328 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.6922, allocations: 2.663 MB / 1.232 GB, free: 5.812 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.672/8.364, allocations: 13.81 kB / 1.232 GB, free: 5.805 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; mkfifo Buildings_11_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe >> ../files/Buildings_11_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_11_Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.fmu > Buildings_11_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Residential_Windows_Validation_Nicol2001WindowsPakistan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.csv. Warning: Get data of variable win.occ from file Buildings_11_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.csv failed! Error: Could not read variable win.on in file Buildings_11_Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan_res.csv. Warning: Get data of variable win.on from file Buildings_11_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