Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_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.001031/0.001031, allocations: 100.8 kB / 16.27 MB, free: 5.93 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.001065/0.001065, allocations: 189.6 kB / 17.2 MB, free: 5.574 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.295/1.295, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.723/0.723, allocations: 122.9 MB / 413.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 59.91 kB / 0.4912 GB, free: 7.336 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3191, allocations: 77.92 MB / 0.5673 GB, free: 32.75 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001733/0.3208, allocations: 0.5148 MB / 0.5678 GB, free: 32.45 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.3226, allocations: 1.596 MB / 0.5693 GB, free: 31.31 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.816e-05/0.3227, allocations: 2.219 kB / 0.5693 GB, free: 31.31 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.3228, allocations: 27.23 kB / 0.5694 GB, free: 31.3 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.328e-05/0.3228, allocations: 13.62 kB / 0.5694 GB, free: 31.3 MB / 446.1 MB [/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/IBPSA 4.0.0-master/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.0007215/0.3236, allocations: 245.3 kB / 0.5696 GB, free: 31.2 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.212e-05/0.3236, allocations: 20.98 kB / 0.5696 GB, free: 31.2 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.657e-05/0.3237, allocations: 1.781 kB / 0.5696 GB, free: 31.2 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.819e-05/0.3237, allocations: 17.77 kB / 0.5696 GB, free: 31.19 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.815e-05/0.3237, allocations: 16.55 kB / 0.5697 GB, free: 31.18 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.3238, allocations: 3.375 kB / 0.5697 GB, free: 31.18 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00047/0.3242, allocations: 285.7 kB / 0.5699 GB, free: 31.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.884e-05/0.3243, allocations: 24 kB / 0.57 GB, free: 31.09 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.484e-05/0.3243, allocations: 20.08 kB / 0.57 GB, free: 31.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003864/0.3247, allocations: 275.8 kB / 0.5702 GB, free: 31 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.3247, allocations: 1.375 kB / 0.5702 GB, free: 31 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3247, allocations: 0 / 0.5702 GB, free: 31 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.3248, allocations: 0 / 0.5702 GB, free: 31 MB / 446.1 MB 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.0003174/0.3251, allocations: 408.7 kB / 0.5706 GB, free: 30.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.3251, allocations: 9.625 kB / 0.5706 GB, free: 30.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.354e-05/0.3251, allocations: 36.72 kB / 0.5707 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.412e-05/0.3252, allocations: 9.141 kB / 0.5707 GB, free: 30.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.853e-05/0.3253, allocations: 177.5 kB / 0.5709 GB, free: 30.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.193e-06/0.3253, allocations: 4.312 kB / 0.5709 GB, free: 30.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.482e-06/0.3253, allocations: 2.094 kB / 0.5709 GB, free: 30.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.372e-05/0.3254, allocations: 41.16 kB / 0.5709 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-06/0.3254, allocations: 0 / 0.5709 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.182e-06/0.3254, allocations: 5.047 kB / 0.5709 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3254, allocations: 0 / 0.5709 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.783e-05/0.3254, allocations: 15.47 kB / 0.5709 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001132/0.3256, allocations: 181.6 kB / 0.5711 GB, free: 30.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.259e-05/0.3256, allocations: 28.19 kB / 0.5711 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.738e-05/0.3256, allocations: 12.75 kB / 0.5711 GB, free: 30.06 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.3257, allocations: 8.141 kB / 0.5711 GB, free: 30.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.396e-05/0.3257, allocations: 36.77 kB / 0.5712 GB, free: 30.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.3257, allocations: 1.094 kB / 0.5712 GB, free: 30.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001175/0.3258, allocations: 58.73 kB / 0.5712 GB, free: 29.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.067e-05/0.3258, allocations: 56.56 kB / 0.5713 GB, free: 29.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.326, allocations: 164.5 kB / 0.5714 GB, free: 29.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.406e-06/0.326, allocations: 27.56 kB / 0.5715 GB, free: 29.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.862e-05/0.326, allocations: 95.11 kB / 0.5716 GB, free: 29.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.468e-06/0.326, allocations: 7.906 kB / 0.5716 GB, free: 29.68 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.3261, allocations: 27.02 kB / 0.5716 GB, free: 29.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.903e-05/0.3261, allocations: 324.9 kB / 0.5719 GB, free: 29.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.807e-05/0.3262, allocations: 37.81 kB / 0.5719 GB, free: 29.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.176e-05/0.3262, allocations: 41.94 kB / 0.572 GB, free: 29.33 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.435e-05/0.3263, allocations: 75.3 kB / 0.572 GB, free: 29.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3263, allocations: 0 / 0.572 GB, free: 29.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001265/0.3264, allocations: 126 kB / 0.5722 GB, free: 29.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.3264, allocations: 5.688 kB / 0.5722 GB, free: 29.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.3265, allocations: 2.125 kB / 0.5722 GB, free: 29.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.3265, allocations: 0 / 0.5722 GB, free: 29.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.116e-05/0.3265, allocations: 7.062 kB / 0.5722 GB, free: 29.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.3265, allocations: 0 / 0.5722 GB, free: 29.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.129e-05/0.3265, allocations: 10.03 kB / 0.5722 GB, free: 29.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.3265, allocations: 1.094 kB / 0.5722 GB, free: 29.24 MB / 446.1 MB 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 7.623e-05/0.3266, allocations: 126.2 kB / 0.5723 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.327e-05/0.3266, allocations: 19.31 kB / 0.5723 GB, free: 29.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.619e-05/0.3267, allocations: 56.97 kB / 0.5724 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.3267, allocations: 0 / 0.5724 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3267, allocations: 1.281 kB / 0.5724 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.3268, allocations: 1.25 kB / 0.5724 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.676e-05/0.3268, allocations: 168.6 kB / 0.5725 GB, free: 28.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.3268, allocations: 0.9688 kB / 0.5726 GB, free: 28.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-06/0.3268, allocations: 5.891 kB / 0.5726 GB, free: 28.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.3268, allocations: 0 / 0.5726 GB, free: 28.88 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.671e-06/0.3269, allocations: 2.688 kB / 0.5726 GB, free: 28.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.3269, allocations: 4 kB / 0.5726 GB, free: 28.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3269, allocations: 5.25 kB / 0.5726 GB, free: 28.87 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.051e-05/0.3269, allocations: 78.62 kB / 0.5726 GB, free: 28.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.936e-05/0.327, allocations: 88.73 kB / 0.5727 GB, free: 28.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.183e-05/0.327, allocations: 1.859 kB / 0.5727 GB, free: 28.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.236e-05/0.327, allocations: 1.031 kB / 0.5727 GB, free: 28.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.368e-06/0.327, allocations: 0.6562 kB / 0.5727 GB, free: 28.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.327, allocations: 2.422 kB / 0.5727 GB, free: 28.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.739e-05/0.3271, allocations: 126.8 kB / 0.5729 GB, free: 28.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3271, allocations: 2.656 kB / 0.5729 GB, free: 28.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003392/0.3274, allocations: 84.08 kB / 0.5729 GB, free: 28.6 MB / 446.1 MB 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.0005402/0.328, allocations: 0.7402 MB / 0.5737 GB, free: 27.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001412/0.3281, allocations: 104.2 kB / 0.5738 GB, free: 27.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3282, allocations: 0 / 0.5738 GB, free: 27.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.502e-05/0.3282, allocations: 10.55 kB / 0.5738 GB, free: 27.92 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001331/0.3283, allocations: 5.75 kB / 0.5738 GB, free: 27.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009991/0.3293, allocations: 1.535 MB / 0.5753 GB, free: 26.72 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001027/0.3294, allocations: 0.6921 MB / 0.5759 GB, free: 26.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.858e-05/0.3295, allocations: 3.375 kB / 0.576 GB, free: 26.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.594e-05/0.3295, allocations: 21.41 kB / 0.576 GB, free: 26 MB / 446.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3295, allocations: 0 / 0.576 GB, free: 26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0187/0.3482, allocations: 3.442 MB / 0.5793 GB, free: 25.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.049/7.397, allocations: 7.656 kB / 0.5793 GB, free: 25.25 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)