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.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.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.006822/0.006828, allocations: 95.7 kB / 15.73 MB, free: 6.484 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.001791/0.001791, allocations: 191.1 kB / 16.67 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.663/2.663, allocations: 469.4 MB / 0.7422 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 60.12 kB / 1.064 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2468, allocations: 159.1 MB / 1.22 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Residential.Windows.Validation.Nicol2001WindowsPakistan): time 0.002397/0.2492, allocations: 1.482 MB / 1.221 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.2504, allocations: 0.7323 MB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.595e-05/0.2505, allocations: 0 / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.088e-05/0.2505, allocations: 3.938 kB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.553e-05/0.2506, allocations: 15.8 kB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000487/0.2511, allocations: 123.6 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000109/0.2512, allocations: 75.83 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.681e-05/0.2513, allocations: 11.95 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.175e-05/0.2514, allocations: 43.84 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.112e-05/0.2515, allocations: 39.83 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.2515, allocations: 4 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.2516, allocations: 95.91 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.603e-05/0.2517, allocations: 19.91 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.814e-05/0.2517, allocations: 31.86 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.252, allocations: 139.5 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.252, allocations: 0 / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.162e-06/0.252, allocations: 4 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.252, allocations: 4 kB / 1.222 GB, free: 11.91 MB / 0.9825 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.0005618/0.2526, allocations: 420.6 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.2526, allocations: 12.03 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.799e-05/0.2526, allocations: 34.75 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.548e-05/0.2527, allocations: 8.891 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.2528, allocations: 172.3 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.2528, allocations: 4.375 kB / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.292e-05/0.2528, allocations: 12.36 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001745/0.253, allocations: 81.64 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.253, allocations: 0 / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.2531, allocations: 0 / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2531, allocations: 4 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.2532, allocations: 35.97 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005411/0.2537, allocations: 312.7 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001198/0.2539, allocations: 58.5 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.06e-05/0.254, allocations: 28.97 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.704e-05/0.254, allocations: 3.984 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001647/0.2542, allocations: 71.39 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.2542, allocations: 0 / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0003821/0.2546, allocations: 157.6 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.2546, allocations: 51.41 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.99e-05/0.2547, allocations: 121.8 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.2547, allocations: 29.69 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.544e-05/0.2548, allocations: 92.14 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.2548, allocations: 11.91 kB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.435e-05/0.2549, allocations: 29.7 kB / 1.224 GB, free: 9.969 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.627e-05/0.255, allocations: 326.8 kB / 1.224 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.449e-05/0.2551, allocations: 27.98 kB / 1.224 GB, free: 9.613 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.079e-05/0.2552, allocations: 46.94 kB / 1.225 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001649/0.2553, allocations: 78.48 kB / 1.225 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.2553, allocations: 0 / 1.225 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002426/0.2556, allocations: 113.5 kB / 1.225 GB, free: 9.355 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.2556, allocations: 5.562 kB / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.2556, allocations: 7.938 kB / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.2556, allocations: 0 / 1.225 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.364e-05/0.2557, allocations: 15.98 kB / 1.225 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.197e-06/0.2557, allocations: 0 / 1.225 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.845e-05/0.2558, allocations: 12 kB / 1.225 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.2558, allocations: 4 kB / 1.225 GB, free: 9.312 MB / 0.9825 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.567e-05/0.2559, allocations: 125.7 kB / 1.225 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.639e-05/0.256, allocations: 7.953 kB / 1.225 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.554e-05/0.256, allocations: 12.38 kB / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.256, allocations: 0 / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.256, allocations: 3.938 kB / 1.225 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.256, allocations: 0 / 1.225 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004394/0.2565, allocations: 386.4 kB / 1.225 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2565, allocations: 3.938 kB / 1.225 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.349e-05/0.2565, allocations: 7.984 kB / 1.225 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2565, allocations: 0 / 1.225 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.2565, allocations: 4 kB / 1.225 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.2565, allocations: 3.938 kB / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2566, allocations: 0 / 1.225 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.2568, allocations: 207.5 kB / 1.225 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.2569, allocations: 85.06 kB / 1.226 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.2569, allocations: 4 kB / 1.226 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.475e-05/0.257, allocations: 7.938 kB / 1.226 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.484e-05/0.257, allocations: 7.984 kB / 1.226 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.804e-06/0.2571, allocations: 0 / 1.226 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.076e-05/0.2571, allocations: 91.27 kB / 1.226 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2e-07/0.2571, allocations: 0 / 1.226 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002929/0.2574, allocations: 51.86 kB / 1.226 GB, free: 8.215 MB / 0.9825 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.000705/0.2581, allocations: 0.8106 MB / 1.227 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002265/0.2584, allocations: 71.89 kB / 1.227 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2584, allocations: 0 / 1.227 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.68e-05/0.2585, allocations: 35.97 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.2587, allocations: 18.53 kB / 1.227 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.2603, allocations: 1.5 MB / 1.228 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002201/0.2605, allocations: 0.6885 MB / 1.229 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.515e-05/0.2605, allocations: 4 kB / 1.229 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.643e-05/0.2606, allocations: 27.92 kB / 1.229 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.2606, allocations: 0 / 1.229 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.2778, allocations: 2.659 MB / 1.231 GB, free: 2.418 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.35/7.628, allocations: 18.06 kB / 1.231 GB, free: 2.406 MB / 0.9825 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