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.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006734/0.006734, allocations: 100.2 kB / 15.73 MB, free: 6.062 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.001781/0.001781, allocations: 188.5 kB / 16.67 MB, free: 5.969 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.763/2.763, allocations: 469.8 MB / 0.7425 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 71.83 kB / 1.065 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7107/0.7127, allocations: 159.1 MB / 1.22 GB, free: 2.059 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001612/0.7143, allocations: 0.5126 MB / 1.221 GB, free: 1.547 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002344/0.7167, allocations: 1.608 MB / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.824e-05/0.7167, allocations: 0 / 1.222 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.7169, allocations: 23.91 kB / 1.222 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 2.224e-05/0.7169, allocations: 4 kB / 1.222 GB, free: 15.89 MB / 0.9512 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 11.1.0-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.0008625/0.7178, allocations: 255.2 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 6.339e-05/0.7179, allocations: 19.92 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.579e-05/0.7179, allocations: 4 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 2.884e-05/0.7179, allocations: 11.98 kB / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.324e-05/0.718, allocations: 27.8 kB / 1.223 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.185e-05/0.718, allocations: 0 / 1.223 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005829/0.7186, allocations: 339.5 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.984e-05/0.7187, allocations: 15.92 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.7187, allocations: 19.81 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004177/0.7191, allocations: 275 kB / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.7191, allocations: 0 / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.606e-06/0.7191, allocations: 0 / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.7191, allocations: 3.938 kB / 1.223 GB, free: 14.95 MB / 0.9512 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.0004767/0.7196, allocations: 414.7 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.7197, allocations: 12.03 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.339e-05/0.7197, allocations: 34.75 kB / 1.224 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.487e-05/0.7197, allocations: 4.891 kB / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.7199, allocations: 186.9 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.246e-06/0.7199, allocations: 384 / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.72, allocations: 384 / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.741e-05/0.72, allocations: 37.83 kB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.7201, allocations: 0 / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.131e-06/0.7201, allocations: 4 kB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.7201, allocations: 0 / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.127e-05/0.7201, allocations: 19.92 kB / 1.224 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001964/0.7203, allocations: 177.6 kB / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.149e-05/0.7204, allocations: 27.5 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.373e-05/0.7204, allocations: 16.91 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.988e-05/0.7204, allocations: 4 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.7205, allocations: 34.5 kB / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.7205, allocations: 0 / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.0001586/0.7207, allocations: 73.52 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.7207, allocations: 55.41 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.7209, allocations: 162.2 kB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.7209, allocations: 25.7 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.032e-05/0.721, allocations: 96.08 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.805e-06/0.721, allocations: 0 / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.487e-05/0.721, allocations: 25.7 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.7212, allocations: 322.8 kB / 1.225 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.415e-05/0.7213, allocations: 44.11 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.963e-05/0.7213, allocations: 39.98 kB / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.376e-05/0.7214, allocations: 72.81 kB / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.7214, allocations: 7.875 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001681/0.7216, allocations: 125.6 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.7216, allocations: 8 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.7216, allocations: 0 / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.7217, allocations: 7.922 kB / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.165e-05/0.7217, allocations: 0 / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.7217, allocations: 0 / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.715e-05/0.7217, allocations: 19.89 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.7217, allocations: 0 / 1.225 GB, free: 12.7 MB / 0.9512 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.0001428/0.7219, allocations: 127.8 kB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.7219, allocations: 11.89 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.722, allocations: 57.5 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.722, allocations: 0 / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.722, allocations: 3.984 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.722, allocations: 8.031 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001364/0.7222, allocations: 161.7 kB / 1.225 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.7222, allocations: 0 / 1.225 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.063e-06/0.7222, allocations: 3.938 kB / 1.225 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.7222, allocations: 0 / 1.225 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.7222, allocations: 7.984 kB / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.7222, allocations: 0 / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.7222, allocations: 4 kB / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.229e-05/0.7223, allocations: 81.08 kB / 1.226 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.063e-05/0.7224, allocations: 85 kB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.7224, allocations: 3.938 kB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.195e-05/0.7224, allocations: 0 / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.708e-05/0.7225, allocations: 7.984 kB / 1.226 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.7225, allocations: 0 / 1.226 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.865e-05/0.7226, allocations: 125.1 kB / 1.226 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7226, allocations: 0 / 1.226 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003325/0.7229, allocations: 83.8 kB / 1.226 GB, free: 11.84 MB / 0.9512 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.0008357/0.7238, allocations: 0.7399 MB / 1.227 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001734/0.724, allocations: 113.6 kB / 1.227 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.724, allocations: 0 / 1.227 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.618e-05/0.724, allocations: 8 kB / 1.227 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.7241, allocations: 0 / 1.227 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.7257, allocations: 1.544 MB / 1.228 GB, free: 9.348 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.726, allocations: 0.6885 MB / 1.229 GB, free: 8.633 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.211e-05/0.726, allocations: 7.984 kB / 1.229 GB, free: 8.625 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.228e-05/0.7261, allocations: 15.44 kB / 1.229 GB, free: 8.609 MB / 0.9512 GB Notification: Performance of SimCode: time 2.255e-06/0.7261, allocations: 0 / 1.229 GB, free: 8.609 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02536/0.7515, allocations: 3.514 MB / 1.232 GB, free: 5.184 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.159/8.91, allocations: 8.594 kB / 1.232 GB, free: 5.176 MB / 0.9512 GB (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 50 --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) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches