Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",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.007609/0.007609, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001943/0.001943, allocations: 197.5 kB / 16.67 MB, free: 5.934 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.799/2.799, allocations: 437 MB / 0.7105 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 67.88 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3073, allocations: 151.6 MB / 1.166 GB, free: 7.332 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001587/0.3089, allocations: 0.5189 MB / 1.167 GB, free: 6.812 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002287/0.3112, allocations: 1.61 MB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.261e-05/0.3112, allocations: 0 / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.3114, allocations: 19.91 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.995e-05/0.3114, allocations: 15.92 kB / 1.168 GB, free: 5.148 MB / 0.92 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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 10.1.1-maint.10.0.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.0008307/0.3123, allocations: 239.3 kB / 1.168 GB, free: 4.914 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.53e-05/0.3123, allocations: 23.92 kB / 1.168 GB, free: 4.891 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.421e-05/0.3124, allocations: 3.984 kB / 1.168 GB, free: 4.887 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.384e-05/0.3124, allocations: 15.92 kB / 1.169 GB, free: 4.871 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 3.512e-05/0.3125, allocations: 11.94 kB / 1.169 GB, free: 4.859 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.3125, allocations: 0 / 1.169 GB, free: 4.859 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005663/0.313, allocations: 347.4 kB / 1.169 GB, free: 4.52 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.315e-05/0.3131, allocations: 15.98 kB / 1.169 GB, free: 4.504 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.183e-05/0.3131, allocations: 19.81 kB / 1.169 GB, free: 4.484 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003977/0.3135, allocations: 271.5 kB / 1.169 GB, free: 4.219 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3136, allocations: 0 / 1.169 GB, free: 4.219 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3136, allocations: 0 / 1.169 GB, free: 4.219 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.548e-06/0.3136, allocations: 0 / 1.169 GB, free: 4.219 MB / 0.92 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.0004691/0.314, allocations: 418.6 kB / 1.17 GB, free: 3.762 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3141, allocations: 12.03 kB / 1.17 GB, free: 3.75 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.379e-05/0.3141, allocations: 34.73 kB / 1.17 GB, free: 3.707 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.3142, allocations: 8.891 kB / 1.17 GB, free: 3.699 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.3143, allocations: 192.2 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.3144, allocations: 384 / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.3144, allocations: 4.375 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.3145, allocations: 41.81 kB / 1.17 GB, free: 3.422 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.3145, allocations: 0 / 1.17 GB, free: 3.422 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.641e-06/0.3145, allocations: 0 / 1.17 GB, free: 3.422 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.3145, allocations: 0 / 1.17 GB, free: 3.422 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.718e-05/0.3145, allocations: 12 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001908/0.3147, allocations: 173.7 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 5.293e-05/0.3148, allocations: 30.5 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.192e-05/0.3148, allocations: 12.92 kB / 1.17 GB, free: 3.137 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.3149, allocations: 4 kB / 1.17 GB, free: 3.133 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.3149, allocations: 42.48 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/0.3149, allocations: 0 / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001472/0.3151, allocations: 61.64 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.3151, allocations: 55.53 kB / 1.17 GB, free: 2.949 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.3153, allocations: 175.7 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.3153, allocations: 29.64 kB / 1.17 GB, free: 2.73 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.683e-05/0.3154, allocations: 92.14 kB / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.166e-05/0.3154, allocations: 7.891 kB / 1.17 GB, free: 2.629 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.484e-05/0.3155, allocations: 29.7 kB / 1.171 GB, free: 2.594 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3156, allocations: 318.8 kB / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.239e-05/0.3157, allocations: 39.98 kB / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.814e-05/0.3157, allocations: 43.98 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.677e-05/0.3158, allocations: 64.83 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3158, allocations: 0 / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001772/0.316, allocations: 129.5 kB / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.316, allocations: 10.03 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.3161, allocations: 0 / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.3161, allocations: 3.938 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-05/0.3161, allocations: 3.938 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.3161, allocations: 4 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.227e-05/0.3161, allocations: 3.953 kB / 1.171 GB, free: 1.969 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/0.3161, allocations: 4.062 kB / 1.171 GB, free: 1.965 MB / 0.92 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.0001558/0.3163, allocations: 125 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.518e-05/0.3163, allocations: 11.89 kB / 1.171 GB, free: 1.824 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.3164, allocations: 57.55 kB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.3165, allocations: 4 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3165, allocations: 0 / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.3165, allocations: 0 / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.3166, allocations: 173.7 kB / 1.171 GB, free: 1.535 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3166, allocations: 4 kB / 1.171 GB, free: 1.531 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.422e-06/0.3166, allocations: 3.938 kB / 1.171 GB, free: 1.527 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.3166, allocations: 0 / 1.171 GB, free: 1.527 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.3167, allocations: 4 kB / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.3167, allocations: 3.938 kB / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3167, allocations: 0 / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001009/0.3168, allocations: 77.08 kB / 1.172 GB, free: 1.426 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.233e-05/0.3168, allocations: 89.03 kB / 1.172 GB, free: 1.32 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.3169, allocations: 3.938 kB / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.416e-05/0.3169, allocations: 4 kB / 1.172 GB, free: 1.312 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.141e-05/0.3169, allocations: 3.984 kB / 1.172 GB, free: 1.309 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.3169, allocations: 0 / 1.172 GB, free: 1.309 MB / 0.92 GB Notification: Performance of sorting global known variables: time 9.697e-05/0.317, allocations: 122.3 kB / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.317, allocations: 0 / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003235/0.3173, allocations: 87.8 kB / 1.172 GB, free: 1.105 MB / 0.92 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.0008221/0.3182, allocations: 0.7509 MB / 1.173 GB, free: 356 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001786/0.3184, allocations: 101.7 kB / 1.173 GB, free: 248 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3184, allocations: 0 / 1.173 GB, free: 248 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 2.053e-05/0.3184, allocations: 15.98 kB / 1.173 GB, free: 232 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001388/0.3185, allocations: 0 / 1.173 GB, free: 232 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.3201, allocations: 1.545 MB / 1.174 GB, free: 14.6 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.3204, allocations: 0.6924 MB / 1.175 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.267e-05/0.3205, allocations: 4.188 kB / 1.175 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.502e-05/0.3205, allocations: 15.44 kB / 1.175 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.3205, allocations: 3.938 kB / 1.175 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02579/0.3463, allocations: 3.496 MB / 1.178 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.239/8.585, allocations: 6.703 kB / 1.178 GB, free: 10.45 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches