Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009039/0.0009039, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.899/0.899, allocations: 177.1 MB / 202.8 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.821/1.821, allocations: 389 MB / 0.633 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 0.9996 GB, free: 13.57 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.254e-05/1.406e-05, allocations: 6.281 kB / 0.9996 GB, free: 13.57 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0009873/0.001001, allocations: 0.5196 MB / 1 GB, free: 13.05 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001571/0.002572, allocations: 1.611 MB / 1.002 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.235e-05/0.002605, allocations: 7.875 kB / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.002767, allocations: 55.91 kB / 1.002 GB, free: 11.36 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 2.753e-05/0.002795, allocations: 35.83 kB / 1.002 GB, free: 11.32 MB / 0.9636 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0006721/0.003467, allocations: 279 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 6.94e-05/0.003536, allocations: 35.89 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 3.435e-05/0.003571, allocations: 3.984 kB / 1.002 GB, free: 11.01 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 3.926e-05/0.00361, allocations: 15.98 kB / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.624e-05/0.003666, allocations: 55.86 kB / 1.002 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.217e-05/0.003678, allocations: 0 / 1.002 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004616/0.00414, allocations: 451.1 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.475e-05/0.004195, allocations: 31.91 kB / 1.003 GB, free: 10.47 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.685e-05/0.004212, allocations: 7.938 kB / 1.003 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003241/0.004536, allocations: 359.1 kB / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.004538, allocations: 4 kB / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of FrontEnd: time 6.81e-07/0.004539, allocations: 0 / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.004543, allocations: 0 / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000337/0.00488, allocations: 361.3 kB / 1.003 GB, free: 9.723 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.004917, allocations: 8.75 kB / 1.003 GB, free: 9.715 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.9e-05/0.004946, allocations: 42.69 kB / 1.003 GB, free: 9.664 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.208e-05/0.004968, allocations: 4.891 kB / 1.003 GB, free: 9.66 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.00509, allocations: 139 kB / 1.004 GB, free: 9.5 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.993e-06/0.005097, allocations: 384 / 1.004 GB, free: 9.5 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.358e-06/0.005107, allocations: 4.375 kB / 1.004 GB, free: 9.496 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.741e-05/0.005204, allocations: 42.19 kB / 1.004 GB, free: 9.449 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.005211, allocations: 192 / 1.004 GB, free: 9.449 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-06/0.005219, allocations: 4.125 kB / 1.004 GB, free: 9.445 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.005223, allocations: 4 kB / 1.004 GB, free: 9.441 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.697e-05/0.00525, allocations: 16 kB / 1.004 GB, free: 9.426 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000137/0.005387, allocations: 160.7 kB / 1.004 GB, free: 9.227 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 3.756e-05/0.005425, allocations: 22.58 kB / 1.004 GB, free: 9.195 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.983e-05/0.005445, allocations: 12.92 kB / 1.004 GB, free: 9.18 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.005478, allocations: 11.98 kB / 1.004 GB, free: 9.168 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.005497, allocations: 38.5 kB / 1.004 GB, free: 9.121 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=1): time 6.61e-07/0.005497, allocations: 3.938 kB / 1.004 GB, free: 9.117 MB / 0.9636 GB Notification: Performance of matching and sorting (n=1): time 0.0001248/0.005622, allocations: 73.52 kB / 1.004 GB, free: 9.039 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.846e-05/0.005651, allocations: 55.39 kB / 1.004 GB, free: 8.973 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.005785, allocations: 211.6 kB / 1.004 GB, free: 8.754 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.03e-05/0.005796, allocations: 25.7 kB / 1.004 GB, free: 8.723 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.787e-05/0.005843, allocations: 104.1 kB / 1.004 GB, free: 8.617 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 7.744e-06/0.005851, allocations: 0 / 1.004 GB, free: 8.617 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.005886, allocations: 33.7 kB / 1.004 GB, free: 8.578 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.85e-05/0.005964, allocations: 326.8 kB / 1.005 GB, free: 8.25 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.161e-05/0.006016, allocations: 55.97 kB / 1.005 GB, free: 8.195 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.051e-05/0.006057, allocations: 59.86 kB / 1.005 GB, free: 8.137 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.369e-05/0.00613, allocations: 92.83 kB / 1.005 GB, free: 8.043 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.006133, allocations: 0 / 1.005 GB, free: 8.043 MB / 0.9636 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001163/0.006249, allocations: 160.3 kB / 1.005 GB, free: 7.883 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/0.00626, allocations: 12 kB / 1.005 GB, free: 7.871 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.006276, allocations: 4 kB / 1.005 GB, free: 7.867 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.006289, allocations: 3.938 kB / 1.005 GB, free: 7.863 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.046e-05/0.006299, allocations: 0 / 1.005 GB, free: 7.863 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.006304, allocations: 4 kB / 1.005 GB, free: 7.859 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.839e-05/0.006323, allocations: 11.83 kB / 1.005 GB, free: 7.848 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.006331, allocations: 4 kB / 1.005 GB, free: 7.844 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],labels[5],labels[4],labels[3],labels[2],labels[1],cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.939e-05/0.006431, allocations: 129.8 kB / 1.005 GB, free: 7.707 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-06/0.00644, allocations: 15.84 kB / 1.005 GB, free: 7.691 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.861e-05/0.006528, allocations: 70.17 kB / 1.005 GB, free: 7.613 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.006531, allocations: 3.938 kB / 1.005 GB, free: 7.609 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.006535, allocations: 0 / 1.005 GB, free: 7.609 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.006537, allocations: 0 / 1.005 GB, free: 7.609 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.384e-05/0.006621, allocations: 152.7 kB / 1.005 GB, free: 7.418 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.006621, allocations: 0 / 1.005 GB, free: 7.418 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.304e-06/0.006624, allocations: 0 / 1.005 GB, free: 7.418 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.006625, allocations: 0 / 1.005 GB, free: 7.418 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.00663, allocations: 0 / 1.005 GB, free: 7.418 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.006632, allocations: 3.938 kB / 1.005 GB, free: 7.414 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.006634, allocations: 8.016 kB / 1.005 GB, free: 7.406 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.144e-05/0.006685, allocations: 85 kB / 1.005 GB, free: 7.305 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.426e-06/0.006694, allocations: 11.91 kB / 1.005 GB, free: 7.293 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.123e-05/0.006705, allocations: 4 kB / 1.005 GB, free: 7.289 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.357e-06/0.006714, allocations: 3.938 kB / 1.005 GB, free: 7.285 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.758e-06/0.006724, allocations: 0 / 1.005 GB, free: 7.285 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-06/0.006725, allocations: 0 / 1.005 GB, free: 7.285 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 7.582e-05/0.006801, allocations: 152.4 kB / 1.006 GB, free: 7.137 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5.1e-08/0.006801, allocations: 0 / 1.006 GB, free: 7.137 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002123/0.007013, allocations: 87.8 kB / 1.006 GB, free: 7.051 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.0005241/0.007537, allocations: 0.7793 MB / 1.006 GB, free: 6.27 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001421/0.007679, allocations: 113.6 kB / 1.007 GB, free: 6.152 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.007681, allocations: 0 / 1.007 GB, free: 6.152 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 9.237e-06/0.00769, allocations: 12.09 kB / 1.007 GB, free: 6.141 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001198/0.00781, allocations: 15.92 kB / 1.007 GB, free: 6.125 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.008922, allocations: 1.813 MB / 1.008 GB, free: 4.227 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.872e-05/0.00898, allocations: 96.23 kB / 1.008 GB, free: 4.109 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 1.575e-05/0.008996, allocations: 0 / 1.008 GB, free: 4.109 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.131e-05/0.009028, allocations: 28.48 kB / 1.008 GB, free: 4.082 MB / 0.9636 GB Notification: Performance of SimCode: time 6.41e-07/0.009028, allocations: 4 kB / 1.008 GB, free: 4.078 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.0254, allocations: 4.626 MB / 1.013 GB, free: 15.57 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.985/7.01, allocations: 10 kB / 1.013 GB, free: 15.57 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable cmp in file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv. Warning: Get data of variable cmp from file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.21863364521414]