Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_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.00102/0.001021, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 193.9 kB / 16.53 MB, free: 6.664 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.249/1.249, allocations: 222.9 MB / 240.2 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00205/0.00205, allocations: 290.5 kB / 290.7 MB, free: 1.957 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9069/0.9069, allocations: 169.2 MB / 0.4982 GB, free: 13.9 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 91.48 kB / 0.5953 GB, free: 27.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1371, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.00157/0.1387, allocations: 0.5138 MB / 0.6808 GB, free: 80 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001841/0.1406, allocations: 1.601 MB / 0.6823 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.896e-05/0.1406, allocations: 0 / 0.6823 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.1407, allocations: 19.91 kB / 0.6824 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.296e-05/0.1408, allocations: 11.94 kB / 0.6824 GB, free: 14.43 MB / 494.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/BuildingSystems 2.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.0007329/0.1415, allocations: 246.2 kB / 0.6826 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.127e-05/0.1416, allocations: 27.86 kB / 0.6826 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.716e-05/0.1416, allocations: 4 kB / 0.6826 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.511e-05/0.1416, allocations: 7.984 kB / 0.6826 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.478e-05/0.1417, allocations: 16.7 kB / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.1417, allocations: 4 kB / 0.6827 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004193/0.1421, allocations: 292.1 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.647e-05/0.1422, allocations: 21.31 kB / 0.683 GB, free: 13.83 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.472e-05/0.1422, allocations: 23.81 kB / 0.683 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003179/0.1425, allocations: 272.2 kB / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1425, allocations: 4 kB / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1425, allocations: 1.062 kB / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.1426, allocations: 3.938 kB / 0.6833 GB, free: 13.53 MB / 494.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.0003647/0.1429, allocations: 408.1 kB / 0.6836 GB, free: 13.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.143, allocations: 8.031 kB / 0.6836 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.667e-05/0.143, allocations: 34.75 kB / 0.6837 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.482e-05/0.143, allocations: 12.78 kB / 0.6837 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.1432, allocations: 180.3 kB / 0.6839 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.719e-06/0.1432, allocations: 384 / 0.6839 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.257e-06/0.1432, allocations: 384 / 0.6839 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.102e-05/0.1433, allocations: 41.81 kB / 0.6839 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.1433, allocations: 0 / 0.6839 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.1433, allocations: 3.984 kB / 0.6839 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1433, allocations: 0 / 0.6839 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.378e-05/0.1433, allocations: 12 kB / 0.6839 GB, free: 12.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.1435, allocations: 181.6 kB / 0.6841 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.762e-05/0.1435, allocations: 26.56 kB / 0.6841 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.785e-05/0.1436, allocations: 16.86 kB / 0.6841 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.1436, allocations: 7.984 kB / 0.6841 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.1436, allocations: 42.5 kB / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1436, allocations: 0 / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001205/0.1438, allocations: 65.58 kB / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.1438, allocations: 55.34 kB / 0.6843 GB, free: 12.27 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.1439, allocations: 168.4 kB / 0.6845 GB, free: 12.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.1439, allocations: 25.7 kB / 0.6845 GB, free: 12.07 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.198e-05/0.144, allocations: 92.14 kB / 0.6846 GB, free: 11.97 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.021e-05/0.144, allocations: 7.906 kB / 0.6846 GB, free: 11.96 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.144, allocations: 25.7 kB / 0.6846 GB, free: 11.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.047e-05/0.1441, allocations: 322.8 kB / 0.6849 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.784e-05/0.1442, allocations: 44.11 kB / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.092e-05/0.1442, allocations: 35.98 kB / 0.685 GB, free: 11.53 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.061e-05/0.1443, allocations: 72.81 kB / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.1443, allocations: 0 / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001271/0.1444, allocations: 129.5 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1445, allocations: 7.984 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1445, allocations: 3.938 kB / 0.6852 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.207e-06/0.1445, allocations: 0 / 0.6852 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.479e-05/0.1445, allocations: 4 kB / 0.6852 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.1445, allocations: 0 / 0.6852 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.006e-05/0.1446, allocations: 8 kB / 0.6852 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.1446, allocations: 0 / 0.6852 GB, free: 11.3 MB / 494.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 0.0001/0.1447, allocations: 126.5 kB / 0.6853 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.426e-05/0.1447, allocations: 11.84 kB / 0.6853 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.865e-05/0.1448, allocations: 61.48 kB / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1448, allocations: 3.938 kB / 0.6854 GB, free: 11.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.1448, allocations: 0 / 0.6854 GB, free: 11.08 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-06/0.1448, allocations: 4.031 kB / 0.6854 GB, free: 11.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.673e-05/0.1449, allocations: 169.6 kB / 0.6856 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1449, allocations: 0 / 0.6856 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.815e-06/0.1449, allocations: 7.922 kB / 0.6856 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.1449, allocations: 7.938 kB / 0.6856 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-06/0.1449, allocations: 0 / 0.6856 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1449, allocations: 0 / 0.6856 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.145, allocations: 0 / 0.6856 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.33e-05/0.145, allocations: 81.03 kB / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.207e-05/0.1451, allocations: 84.95 kB / 0.6857 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.1451, allocations: 4 kB / 0.6857 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.109e-05/0.1451, allocations: 0 / 0.6857 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.15e-05/0.1451, allocations: 0 / 0.6857 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-06/0.1451, allocations: 3.984 kB / 0.6857 GB, free: 10.64 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.632e-05/0.1452, allocations: 124.7 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1452, allocations: 0 / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002762/0.1455, allocations: 83.98 kB / 0.6859 GB, free: 10.44 MB / 494.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.0006101/0.1461, allocations: 0.7596 MB / 0.6867 GB, free: 9.672 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.1463, allocations: 105.7 kB / 0.6868 GB, free: 9.562 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1463, allocations: 0 / 0.6868 GB, free: 9.562 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.389e-05/0.1463, allocations: 11.94 kB / 0.6868 GB, free: 9.551 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.1464, allocations: 7.984 kB / 0.6868 GB, free: 9.543 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.1476, allocations: 1.521 MB / 0.6883 GB, free: 7.945 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.1478, allocations: 0.6963 MB / 0.689 GB, free: 7.223 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.489e-05/0.1478, allocations: 0 / 0.689 GB, free: 7.223 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.825e-05/0.1478, allocations: 23.42 kB / 0.689 GB, free: 7.199 MB / 494.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1478, allocations: 0 / 0.689 GB, free: 7.199 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.1652, allocations: 3.451 MB / 0.6924 GB, free: 3.848 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.872/7.037, allocations: 10.06 kB / 0.6924 GB, free: 3.84 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)