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.001283/0.001283, allocations: 108 kB / 15.61 MB, free: 152 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.001275/0.001275, allocations: 195.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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002416/0.002416, allocations: 286.5 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.032/1.032, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002619/0.002619, allocations: 103.6 kB / 0.6065 GB, free: 24.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1508, allocations: 89.14 MB / 0.6936 GB, free: 4.242 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001847/0.1527, allocations: 0.5101 MB / 0.6941 GB, free: 3.738 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.155, allocations: 1.614 MB / 0.6957 GB, free: 2.109 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.111e-05/0.155, allocations: 0 / 0.6957 GB, free: 2.109 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.1552, allocations: 19.91 kB / 0.6957 GB, free: 2.09 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.263e-05/0.1552, allocations: 8.594 kB / 0.6957 GB, free: 2.082 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.0007973/0.156, allocations: 248.7 kB / 0.6959 GB, free: 1.844 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.775e-05/0.1561, allocations: 31.84 kB / 0.696 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.622e-05/0.1561, allocations: 0 / 0.696 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.908e-05/0.1562, allocations: 11.98 kB / 0.696 GB, free: 1.801 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.991e-05/0.1562, allocations: 15.92 kB / 0.696 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.08e-05/0.1562, allocations: 4 kB / 0.696 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004653/0.1567, allocations: 287.6 kB / 0.6963 GB, free: 1.5 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.023e-05/0.1568, allocations: 23.91 kB / 0.6963 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.507e-05/0.1568, allocations: 23.75 kB / 0.6963 GB, free: 1.453 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003773/0.1572, allocations: 267.5 kB / 0.6966 GB, free: 1.191 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1572, allocations: 0 / 0.6966 GB, free: 1.191 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1572, allocations: 0 / 0.6966 GB, free: 1.191 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.1572, allocations: 0 / 0.6966 GB, free: 1.191 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.0004471/0.1577, allocations: 415.3 kB / 0.697 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.1577, allocations: 16.03 kB / 0.697 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.956e-05/0.1577, allocations: 30.75 kB / 0.697 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.795e-05/0.1578, allocations: 8.844 kB / 0.697 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001596/0.1579, allocations: 172.3 kB / 0.6972 GB, free: 480 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.158, allocations: 8.312 kB / 0.6972 GB, free: 472 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-06/0.158, allocations: 4.375 kB / 0.6972 GB, free: 468 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.594e-05/0.1581, allocations: 37.83 kB / 0.6972 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.1581, allocations: 3.938 kB / 0.6972 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.1581, allocations: 3.984 kB / 0.6972 GB, free: 416 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.357e-06/0.1581, allocations: 0 / 0.6972 GB, free: 416 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.561e-05/0.1581, allocations: 16 kB / 0.6972 GB, free: 400 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001775/0.1583, allocations: 177.5 kB / 0.6974 GB, free: 172 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.208e-05/0.1584, allocations: 26.52 kB / 0.6974 GB, free: 136 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.757e-05/0.1584, allocations: 16.91 kB / 0.6975 GB, free: 116 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.1584, allocations: 4 kB / 0.6975 GB, free: 112 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.1585, allocations: 38.5 kB / 0.6975 GB, free: 64 kB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1585, allocations: 4 kB / 0.6975 GB, free: 60 kB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001541/0.1586, allocations: 65.58 kB / 0.6976 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.1587, allocations: 51.41 kB / 0.6976 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.1588, allocations: 168.3 kB / 0.6978 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.1588, allocations: 25.7 kB / 0.6978 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.1589, allocations: 100 kB / 0.6979 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.828e-06/0.1589, allocations: 0 / 0.6979 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-05/0.159, allocations: 33.64 kB / 0.6979 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1591, allocations: 323 kB / 0.6982 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.365e-05/0.1592, allocations: 39.98 kB / 0.6983 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.664e-05/0.1592, allocations: 39.98 kB / 0.6983 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.12e-05/0.1593, allocations: 68.81 kB / 0.6984 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.1593, allocations: 0 / 0.6984 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001502/0.1595, allocations: 129.6 kB / 0.6985 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.1595, allocations: 8 kB / 0.6985 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.1595, allocations: 3.984 kB / 0.6985 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.1595, allocations: 0 / 0.6985 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.107e-06/0.1595, allocations: 64 / 0.6985 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.1596, allocations: 7.938 kB / 0.6985 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.801e-05/0.1596, allocations: 11.84 kB / 0.6985 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.1596, allocations: 4 kB / 0.6985 GB, free: 14.94 MB / 0.4981 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.0001361/0.1597, allocations: 122.5 kB / 0.6987 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.608e-05/0.1598, allocations: 11.84 kB / 0.6987 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.765e-05/0.1599, allocations: 61.48 kB / 0.6987 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.1599, allocations: 3.984 kB / 0.6987 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.1599, allocations: 8.031 kB / 0.6987 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-06/0.1599, allocations: 0 / 0.6987 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.16, allocations: 165.7 kB / 0.6989 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.16, allocations: 0 / 0.6989 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.168e-06/0.16, allocations: 7.922 kB / 0.6989 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.16, allocations: 0 / 0.6989 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.668e-06/0.1601, allocations: 0 / 0.6989 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1601, allocations: 4 kB / 0.6989 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1601, allocations: 3.938 kB / 0.6989 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.86e-05/0.1602, allocations: 84.97 kB / 0.699 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/0.1602, allocations: 84.95 kB / 0.6991 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.054e-05/0.1602, allocations: 0 / 0.6991 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.143e-05/0.1602, allocations: 0 / 0.6991 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.082e-05/0.1603, allocations: 4 kB / 0.6991 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.1603, allocations: 3.984 kB / 0.6991 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.175e-05/0.1604, allocations: 119.2 kB / 0.6992 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1604, allocations: 0 / 0.6992 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003028/0.1607, allocations: 83.98 kB / 0.6993 GB, free: 14.09 MB / 0.4981 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.0007826/0.1615, allocations: 0.7576 MB / 0.7 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001619/0.1616, allocations: 97.67 kB / 0.7001 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.1617, allocations: 0 / 0.7001 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.516e-05/0.1617, allocations: 11.94 kB / 0.7001 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.1618, allocations: 6.188 kB / 0.7001 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.1632, allocations: 1.528 MB / 0.7016 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.1635, allocations: 0.7038 MB / 0.7023 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.707e-05/0.1635, allocations: 3.984 kB / 0.7023 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.034e-05/0.1636, allocations: 19.42 kB / 0.7023 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of SimCode: time 2.01e-07/0.1636, allocations: 0 / 0.7023 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02558/0.1892, allocations: 3.45 MB / 0.7057 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.398/7.587, allocations: 15.73 kB / 0.7057 GB, free: 7.48 MB / 0.4981 GB (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)