Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.0008154/0.0008154, 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.001561/0.001561, allocations: 170.3 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.8897/0.8897, 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.711/1.711, allocations: 359 MB / 0.6037 GB, free: 11.11 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_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 0.9504 GB, free: 3.555 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.741e-05/1.954e-05, allocations: 2.281 kB / 0.9504 GB, free: 3.551 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001052/0.001072, allocations: 0.5276 MB / 0.951 GB, free: 3.02 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001817/0.002889, allocations: 1.615 MB / 0.9525 GB, free: 1.387 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.402e-05/0.002943, allocations: 4 kB / 0.9525 GB, free: 1.383 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001909/0.003134, allocations: 23.84 kB / 0.9526 GB, free: 1.359 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 2.787e-05/0.003162, allocations: 7.984 kB / 0.9526 GB, free: 1.352 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.001031/0.004193, allocations: 269.4 kB / 0.9528 GB, free: 1.09 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 7.217e-05/0.004265, allocations: 15.97 kB / 0.9528 GB, free: 1.074 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 4.1e-05/0.004306, allocations: 7.938 kB / 0.9529 GB, free: 1.066 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 4.338e-05/0.004349, allocations: 15.98 kB / 0.9529 GB, free: 1.051 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.267e-05/0.004392, allocations: 15.97 kB / 0.9529 GB, free: 1.035 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.004407, allocations: 0 / 0.9529 GB, free: 1.035 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005653/0.004972, allocations: 427 kB / 0.9533 GB, free: 0.6172 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 6.638e-05/0.005039, allocations: 19.98 kB / 0.9533 GB, free: 0.5977 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 3.02e-05/0.005069, allocations: 11.94 kB / 0.9533 GB, free: 0.5859 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0004044/0.005473, allocations: 339.1 kB / 0.9536 GB, free: 260 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.005475, allocations: 0 / 0.9536 GB, free: 260 kB / 0.9011 GB Notification: Performance of FrontEnd: time 1.262e-06/0.005477, allocations: 0 / 0.9536 GB, free: 260 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.005481, allocations: 3.938 kB / 0.9536 GB, free: 256 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.0003858/0.005867, allocations: 341.5 kB / 0.954 GB, free: 15.89 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.005907, allocations: 8.031 kB / 0.954 GB, free: 15.88 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.162e-05/0.005938, allocations: 30.75 kB / 0.954 GB, free: 15.84 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.434e-05/0.005963, allocations: 8.891 kB / 0.954 GB, free: 15.83 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001311/0.006094, allocations: 116.2 kB / 0.9541 GB, free: 15.7 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-06/0.006102, allocations: 384 / 0.9541 GB, free: 15.7 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.006111, allocations: 8.375 kB / 0.9541 GB, free: 15.69 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.889e-05/0.0062, allocations: 42.19 kB / 0.9542 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.006207, allocations: 4.188 kB / 0.9542 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.667e-06/0.006215, allocations: 4.125 kB / 0.9542 GB, free: 15.63 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.006219, allocations: 0 / 0.9542 GB, free: 15.63 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.601e-05/0.006245, allocations: 15.98 kB / 0.9542 GB, free: 15.62 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.006375, allocations: 140.7 kB / 0.9543 GB, free: 15.44 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 4.27e-05/0.006418, allocations: 26.56 kB / 0.9544 GB, free: 15.4 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.842e-05/0.006436, allocations: 12.92 kB / 0.9544 GB, free: 15.39 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.00647, allocations: 7.984 kB / 0.9544 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.00649, allocations: 42.5 kB / 0.9544 GB, free: 15.33 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.006491, allocations: 0 / 0.9544 GB, free: 15.33 MB / 0.9167 GB Notification: Performance of matching and sorting (n=1): time 0.000139/0.00663, allocations: 69.53 kB / 0.9545 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.006661, allocations: 51.41 kB / 0.9545 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.006775, allocations: 162.3 kB / 0.9547 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.006786, allocations: 29.7 kB / 0.9547 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.595e-05/0.006832, allocations: 104.1 kB / 0.9548 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 8.195e-06/0.00684, allocations: 0 / 0.9548 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.082e-05/0.006871, allocations: 21.72 kB / 0.9548 GB, free: 14.86 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.544e-05/0.006957, allocations: 322.8 kB / 0.9551 GB, free: 14.53 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.596e-05/0.007003, allocations: 40.11 kB / 0.9552 GB, free: 14.49 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.085e-05/0.007034, allocations: 39.98 kB / 0.9552 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.282e-05/0.007096, allocations: 72.7 kB / 0.9553 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.007098, allocations: 0 / 0.9553 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001068/0.007205, allocations: 129.6 kB / 0.9554 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.007219, allocations: 4 kB / 0.9554 GB, free: 14.24 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.007234, allocations: 4 kB / 0.9554 GB, free: 14.24 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.007245, allocations: 3.938 kB / 0.9554 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-05/0.007257, allocations: 0 / 0.9554 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.708e-06/0.007262, allocations: 0 / 0.9554 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.275e-05/0.007285, allocations: 11.83 kB / 0.9554 GB, free: 14.22 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.007293, allocations: 8.062 kB / 0.9554 GB, free: 14.21 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.000107/0.0074, allocations: 121.8 kB / 0.9556 GB, free: 14.09 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-06/0.007409, allocations: 7.938 kB / 0.9556 GB, free: 14.08 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.16e-05/0.007501, allocations: 65.42 kB / 0.9556 GB, free: 14.01 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.007506, allocations: 7.875 kB / 0.9556 GB, free: 14 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.00751, allocations: 0 / 0.9556 GB, free: 14 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.007514, allocations: 0 / 0.9556 GB, free: 14 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.539e-05/0.007599, allocations: 144.7 kB / 0.9558 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.0076, allocations: 0 / 0.9558 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.846e-06/0.007603, allocations: 4.031 kB / 0.9558 GB, free: 13.81 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.007604, allocations: 0 / 0.9558 GB, free: 13.81 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.00761, allocations: 4 kB / 0.9558 GB, free: 13.81 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.007612, allocations: 3.938 kB / 0.9558 GB, free: 13.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.007613, allocations: 0 / 0.9558 GB, free: 13.8 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.851e-05/0.007672, allocations: 81.02 kB / 0.9559 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 7.575e-06/0.007679, allocations: 3.953 kB / 0.9559 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.00769, allocations: 3.984 kB / 0.9559 GB, free: 13.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.727e-06/0.007699, allocations: 7.938 kB / 0.9559 GB, free: 13.69 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.428e-05/0.007713, allocations: 4 kB / 0.9559 GB, free: 13.69 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-06/0.007715, allocations: 4.031 kB / 0.9559 GB, free: 13.68 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 6.195e-05/0.007777, allocations: 122.5 kB / 0.956 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.007777, allocations: 0 / 0.956 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002634/0.00804, allocations: 87.8 kB / 0.9561 GB, free: 13.48 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.0006056/0.008646, allocations: 0.7568 MB / 0.9568 GB, free: 12.72 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001474/0.008793, allocations: 93.61 kB / 0.9569 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.008795, allocations: 0 / 0.9569 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 1.126e-05/0.008807, allocations: 11.98 kB / 0.9569 GB, free: 12.61 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.008935, allocations: 10.28 kB / 0.9569 GB, free: 12.6 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.01, allocations: 1.552 MB / 0.9585 GB, free: 10.97 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.882e-05/0.01005, allocations: 79.31 kB / 0.9585 GB, free: 10.87 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 1.571e-05/0.01007, allocations: 3.938 kB / 0.9585 GB, free: 10.87 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.649e-05/0.0101, allocations: 24.64 kB / 0.9586 GB, free: 10.84 MB / 0.9167 GB Notification: Performance of SimCode: time 8.11e-07/0.0101, allocations: 0 / 0.9586 GB, free: 10.84 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01945/0.02955, allocations: 4.151 MB / 0.9626 GB, free: 6.812 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.217/7.247, allocations: 14.23 kB / 0.9626 GB, free: 6.801 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_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_1d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.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_1d_res.csv. Warning: Get data of variable cmp from file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.329668411053717]