Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008459/0.0008459, 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.0008593/0.0008593, 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.8909/0.8909, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.653/1.653, allocations: 359 MB / 0.6037 GB, free: 11.08 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 0.9504 GB, free: 3.531 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.501e-05/2.714e-05, allocations: 9.172 kB / 0.9505 GB, free: 3.523 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001736/0.001763, allocations: 0.5246 MB / 0.951 GB, free: 2.992 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001767/0.00353, allocations: 1.607 MB / 0.9525 GB, free: 1.367 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.741e-05/0.003567, allocations: 4 kB / 0.9525 GB, free: 1.363 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.003748, allocations: 67.77 kB / 0.9526 GB, free: 1.297 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 3.041e-05/0.003778, allocations: 27.91 kB / 0.9526 GB, free: 1.27 MB / 0.9011 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0008825/0.004661, allocations: 259.1 kB / 0.9529 GB, free: 1.016 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 8.001e-05/0.004741, allocations: 35.89 kB / 0.9529 GB, free: 0.9805 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 3.629e-05/0.004777, allocations: 4 kB / 0.9529 GB, free: 0.9766 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 4.559e-05/0.004823, allocations: 23.91 kB / 0.9529 GB, free: 0.9531 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 5.788e-05/0.004881, allocations: 43.94 kB / 0.953 GB, free: 0.9102 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.344e-05/0.004894, allocations: 4 kB / 0.953 GB, free: 0.9062 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005089/0.005403, allocations: 427.1 kB / 0.9534 GB, free: 500 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 5.002e-05/0.005453, allocations: 23.92 kB / 0.9534 GB, free: 476 kB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.03e-05/0.005473, allocations: 11.94 kB / 0.9534 GB, free: 464 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0003398/0.005813, allocations: 351.1 kB / 0.9538 GB, free: 112 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.005815, allocations: 4 kB / 0.9538 GB, free: 108 kB / 0.9011 GB Notification: Performance of FrontEnd: time 1.022e-06/0.005816, allocations: 0 / 0.9538 GB, free: 108 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.00582, allocations: 0 / 0.9538 GB, free: 108 kB / 0.9011 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.0003606/0.00618, allocations: 361.3 kB / 0.9541 GB, free: 15.72 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.006218, allocations: 12.03 kB / 0.9541 GB, free: 15.71 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.676e-05/0.006245, allocations: 34.75 kB / 0.9542 GB, free: 15.67 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.519e-05/0.00627, allocations: 12.84 kB / 0.9542 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.00639, allocations: 133.6 kB / 0.9543 GB, free: 15.5 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-06/0.006399, allocations: 4.375 kB / 0.9543 GB, free: 15.5 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.983e-06/0.006406, allocations: 4.312 kB / 0.9543 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.312e-05/0.006489, allocations: 34.27 kB / 0.9543 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.006496, allocations: 192 / 0.9543 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.006504, allocations: 8.062 kB / 0.9543 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.006509, allocations: 0 / 0.9543 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.52e-05/0.006534, allocations: 19.98 kB / 0.9544 GB, free: 15.43 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001419/0.006676, allocations: 160.7 kB / 0.9545 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 4.272e-05/0.006718, allocations: 26.56 kB / 0.9545 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.933e-05/0.006738, allocations: 16.86 kB / 0.9546 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.00677, allocations: 11.98 kB / 0.9546 GB, free: 15.16 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.006788, allocations: 30.56 kB / 0.9546 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=1): time 6.62e-07/0.006788, allocations: 0 / 0.9546 GB, free: 15.12 MB / 0.9167 GB Notification: Performance of matching and sorting (n=1): time 0.0001312/0.00692, allocations: 69.58 kB / 0.9547 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.006947, allocations: 51.41 kB / 0.9547 GB, free: 14.98 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.007095, allocations: 216.6 kB / 0.9549 GB, free: 14.76 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.007106, allocations: 25.7 kB / 0.9549 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 5.37e-05/0.00716, allocations: 112.2 kB / 0.955 GB, free: 14.62 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.007174, allocations: 4 kB / 0.9551 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.235e-05/0.007207, allocations: 25.7 kB / 0.9551 GB, free: 14.58 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.963e-05/0.007296, allocations: 330.8 kB / 0.9554 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.607e-05/0.007342, allocations: 51.92 kB / 0.9554 GB, free: 14.2 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.82e-05/0.007381, allocations: 63.84 kB / 0.9555 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.242e-05/0.007453, allocations: 95.88 kB / 0.9556 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.007456, allocations: 4 kB / 0.9556 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001165/0.007573, allocations: 157.6 kB / 0.9557 GB, free: 13.88 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.007584, allocations: 4 kB / 0.9558 GB, free: 13.88 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.007598, allocations: 4.062 kB / 0.9558 GB, free: 13.87 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.00761, allocations: 3.938 kB / 0.9558 GB, free: 13.87 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.215e-05/0.007622, allocations: 4 kB / 0.9558 GB, free: 13.86 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.007628, allocations: 0 / 0.9558 GB, free: 13.86 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.041e-05/0.007648, allocations: 11.84 kB / 0.9558 GB, free: 13.85 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.007657, allocations: 4 kB / 0.9558 GB, free: 13.85 MB / 0.9167 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.0001125/0.00777, allocations: 137.8 kB / 0.9559 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-06/0.007777, allocations: 7.953 kB / 0.9559 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.268e-05/0.007859, allocations: 62.19 kB / 0.956 GB, free: 13.63 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.007863, allocations: 7.969 kB / 0.956 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.007867, allocations: 3.938 kB / 0.956 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.007871, allocations: 0 / 0.956 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.361e-05/0.007964, allocations: 152.7 kB / 0.9561 GB, free: 13.43 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.007966, allocations: 3.938 kB / 0.9561 GB, free: 13.42 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.274e-06/0.007968, allocations: 0 / 0.9561 GB, free: 13.42 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.42e-07/0.007969, allocations: 0 / 0.9561 GB, free: 13.42 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-06/0.007974, allocations: 0 / 0.9561 GB, free: 13.42 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.007977, allocations: 7.938 kB / 0.9561 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.007978, allocations: 0 / 0.9561 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.124e-05/0.008039, allocations: 96.95 kB / 0.9562 GB, free: 13.3 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.749e-06/0.008049, allocations: 7.906 kB / 0.9562 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.749e-06/0.008058, allocations: 7.984 kB / 0.9563 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.017e-06/0.008067, allocations: 3.938 kB / 0.9563 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.007e-05/0.008077, allocations: 0 / 0.9563 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.00808, allocations: 0 / 0.9563 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 7.663e-05/0.008156, allocations: 152.3 kB / 0.9564 GB, free: 13.13 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.008156, allocations: 0 / 0.9564 GB, free: 13.13 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002495/0.008406, allocations: 83.81 kB / 0.9565 GB, free: 13.05 MB / 0.9167 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.0005463/0.008952, allocations: 0.7704 MB / 0.9572 GB, free: 12.28 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001392/0.009091, allocations: 117.7 kB / 0.9573 GB, free: 12.16 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.009093, allocations: 0 / 0.9573 GB, free: 12.16 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 9.558e-06/0.009102, allocations: 11.98 kB / 0.9574 GB, free: 12.14 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001134/0.009216, allocations: 7.938 kB / 0.9574 GB, free: 12.14 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.01051, allocations: 1.83 MB / 0.9592 GB, free: 10.22 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.841e-05/0.01058, allocations: 92.16 kB / 0.9592 GB, free: 10.11 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 2.118e-05/0.0106, allocations: 4 kB / 0.9592 GB, free: 10.11 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.062e-05/0.01064, allocations: 28.48 kB / 0.9593 GB, free: 10.08 MB / 0.9167 GB Notification: Performance of SimCode: time 9.72e-07/0.01064, allocations: 0 / 0.9593 GB, free: 10.08 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01714/0.02778, allocations: 4.532 MB / 0.9637 GB, free: 5.676 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.262/7.29, allocations: 13.89 kB / 0.9637 GB, free: 5.664 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv. Warning: Get data of variable cmp from file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.307211375795305]