Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001793/0.001793, allocations: 114.5 kB / 18.94 MB, free: 2.934 MB / 14.72 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.002479/0.002479, allocations: 217.8 kB / 22.26 MB, free: 5.082 MB / 14.72 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 1.468/1.468, allocations: 230.6 MB / 256 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.156/3.156, allocations: 0.49 GB / 0.7951 GB, free: 33.34 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 70.75 kB / 1.154 GB, free: 25.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3815/0.3836, allocations: 176.1 MB / 1.326 GB, free: 1.957 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001757/0.3854, allocations: 0.5196 MB / 1.326 GB, free: 1.441 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002626/0.388, allocations: 1.693 MB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.426e-05/0.388, allocations: 4 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002605/0.3883, allocations: 67.83 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 3.865e-05/0.3883, allocations: 23.97 kB / 1.328 GB, free: 15.64 MB / 1.029 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.00108/0.3894, allocations: 287.7 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.3895, allocations: 35.89 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.752e-05/0.3896, allocations: 288 / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.242e-05/0.3896, allocations: 23.91 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.24e-05/0.3897, allocations: 47.94 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.35e-05/0.3897, allocations: 0 / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000832/0.3905, allocations: 495.2 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.019e-05/0.3906, allocations: 23.86 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.016e-05/0.3906, allocations: 31.73 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004663/0.3911, allocations: 315 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3911, allocations: 0 / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3911, allocations: 0 / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.3911, allocations: 0 / 1.329 GB, free: 14.41 MB / 1.029 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.0005176/0.3916, allocations: 361.3 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.3917, allocations: 8.031 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.743e-05/0.3917, allocations: 30.75 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.514e-05/0.3917, allocations: 16.83 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.3919, allocations: 130.4 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.3919, allocations: 4.312 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.145e-06/0.3919, allocations: 4.375 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.392, allocations: 41.81 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.392, allocations: 3.938 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.3921, allocations: 0 / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.3921, allocations: 4 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.126e-05/0.3921, allocations: 15.98 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002007/0.3923, allocations: 156.7 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 6.637e-05/0.3924, allocations: 34.5 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.706e-05/0.3924, allocations: 16.92 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.92e-05/0.3924, allocations: 8 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.3925, allocations: 42.48 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3925, allocations: 0 / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.0001804/0.3926, allocations: 65.59 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.3927, allocations: 51.41 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.3929, allocations: 214.4 kB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.3929, allocations: 29.64 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.36e-05/0.393, allocations: 104.1 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.393, allocations: 3.938 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-05/0.3931, allocations: 33.7 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3932, allocations: 326.8 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.143e-05/0.3933, allocations: 55.92 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.085e-05/0.3934, allocations: 55.97 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.3935, allocations: 96.81 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.3935, allocations: 0 / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002009/0.3937, allocations: 167.7 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.3937, allocations: 8 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.3937, allocations: 3.984 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.3938, allocations: 0 / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.218e-05/0.3938, allocations: 0 / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.3938, allocations: 4 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.725e-05/0.3938, allocations: 11.83 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.3938, allocations: 0 / 1.331 GB, free: 12.14 MB / 1.029 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 0.0002035/0.394, allocations: 134.4 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.116e-05/0.394, allocations: 19.83 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/0.3942, allocations: 58.19 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.3942, allocations: 0 / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.3942, allocations: 4 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3942, allocations: 0 / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.3943, allocations: 160.7 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3943, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.732e-06/0.3943, allocations: 3.969 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.3943, allocations: 4 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.3943, allocations: 0 / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.3943, allocations: 0 / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3943, allocations: 0 / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001062/0.3945, allocations: 84.97 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.784e-05/0.3945, allocations: 11.89 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.3945, allocations: 4 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.472e-05/0.3945, allocations: 8.016 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.042e-05/0.3945, allocations: 0 / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.3945, allocations: 4 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001391/0.3947, allocations: 143.1 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3947, allocations: 0 / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003425/0.395, allocations: 91.8 kB / 1.332 GB, free: 11.34 MB / 1.029 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.000867/0.3959, allocations: 0.7672 MB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001865/0.3961, allocations: 117.7 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3961, allocations: 0 / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.775e-05/0.3961, allocations: 16.08 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.3962, allocations: 0 / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00178/0.398, allocations: 1.827 MB / 1.335 GB, free: 8.523 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.3983, allocations: 0.7079 MB / 1.335 GB, free: 7.789 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.962e-05/0.3984, allocations: 0 / 1.335 GB, free: 7.789 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.3984, allocations: 27.42 kB / 1.335 GB, free: 7.762 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.3984, allocations: 3.938 kB / 1.335 GB, free: 7.758 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03077/0.4292, allocations: 4.087 MB / 1.339 GB, free: 3.801 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.35, allocations: 2.438 kB / 1.339 GB, free: 3.801 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv. Warning: Get data of variable cmp from file Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.04619305400047]