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.00124/0.00124, allocations: 108 kB / 15.6 MB, free: 132 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.001278/0.001278, allocations: 197 kB / 16.54 MB, free: 6.672 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002163/0.002163, allocations: 294.8 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.923/0.923, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 104 kB / 0.5953 GB, free: 27.74 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1609, allocations: 86.98 MB / 0.6803 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001881/0.1628, allocations: 0.5102 MB / 0.6808 GB, free: 104 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.165, allocations: 1.602 MB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.645e-05/0.1651, allocations: 3.938 kB / 0.6824 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.1652, allocations: 15.97 kB / 0.6824 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.567e-05/0.1653, allocations: 11.94 kB / 0.6824 GB, free: 14.45 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.0008721/0.1662, allocations: 246.1 kB / 0.6826 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.796e-05/0.1662, allocations: 27.86 kB / 0.6826 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.706e-05/0.1663, allocations: 4 kB / 0.6826 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.495e-05/0.1663, allocations: 8.734 kB / 0.6827 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.426e-05/0.1663, allocations: 15.92 kB / 0.6827 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.1664, allocations: 4.719 kB / 0.6827 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004912/0.1669, allocations: 288.1 kB / 0.6829 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.177e-05/0.1669, allocations: 24.44 kB / 0.683 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.811e-05/0.167, allocations: 25.78 kB / 0.683 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003956/0.1674, allocations: 267.7 kB / 0.6832 GB, free: 13.56 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1674, allocations: 4 kB / 0.6833 GB, free: 13.56 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1674, allocations: 0 / 0.6833 GB, free: 13.56 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1674, allocations: 0 / 0.6833 GB, free: 13.56 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.0004366/0.1678, allocations: 415.1 kB / 0.6836 GB, free: 13.11 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.1679, allocations: 8.031 kB / 0.6837 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.785e-05/0.1679, allocations: 34.69 kB / 0.6837 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.772e-05/0.1679, allocations: 8.844 kB / 0.6837 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/0.1681, allocations: 180.3 kB / 0.6839 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.725e-06/0.1682, allocations: 384 / 0.6839 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.923e-06/0.1682, allocations: 4.312 kB / 0.6839 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.024e-05/0.1683, allocations: 37.83 kB / 0.6839 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.1683, allocations: 0 / 0.6839 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.277e-06/0.1683, allocations: 11.98 kB / 0.6839 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.1683, allocations: 0 / 0.6839 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.946e-05/0.1683, allocations: 12 kB / 0.6839 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001595/0.1685, allocations: 173.7 kB / 0.6841 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.331e-05/0.1686, allocations: 26.58 kB / 0.6841 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.049e-05/0.1686, allocations: 12.84 kB / 0.6841 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.806e-05/0.1686, allocations: 11.92 kB / 0.6841 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.1687, allocations: 46.5 kB / 0.6842 GB, free: 12.43 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.1687, allocations: 0 / 0.6842 GB, free: 12.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001498/0.1688, allocations: 61.58 kB / 0.6842 GB, free: 12.36 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.1689, allocations: 55.34 kB / 0.6843 GB, free: 12.29 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.169, allocations: 163.8 kB / 0.6845 GB, free: 12.12 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.169, allocations: 29.69 kB / 0.6845 GB, free: 12.09 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.189e-05/0.1691, allocations: 92.14 kB / 0.6846 GB, free: 12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.081e-05/0.1691, allocations: 8.031 kB / 0.6846 GB, free: 11.99 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.1692, allocations: 29.7 kB / 0.6846 GB, free: 11.95 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.755e-05/0.1693, allocations: 322.8 kB / 0.6849 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.18e-05/0.1693, allocations: 35.98 kB / 0.685 GB, free: 11.59 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.167e-05/0.1694, allocations: 39.98 kB / 0.685 GB, free: 11.55 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.867e-05/0.1694, allocations: 68.81 kB / 0.6851 GB, free: 11.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1695, allocations: 0 / 0.6851 GB, free: 11.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001493/0.1696, allocations: 133.5 kB / 0.6852 GB, free: 11.35 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.1696, allocations: 7.938 kB / 0.6852 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.1697, allocations: 8.047 kB / 0.6852 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.1697, allocations: 0 / 0.6852 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.234e-05/0.1697, allocations: 4 kB / 0.6852 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.1697, allocations: 0 / 0.6852 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.23e-05/0.1697, allocations: 3.938 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.1697, allocations: 0 / 0.6852 GB, free: 11.32 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.0001317/0.1699, allocations: 122.5 kB / 0.6853 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.632e-05/0.1699, allocations: 11.84 kB / 0.6853 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.17, allocations: 65.55 kB / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.17, allocations: 0 / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.17, allocations: 0 / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.17, allocations: 3.938 kB / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001031/0.1701, allocations: 169.6 kB / 0.6856 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1701, allocations: 0 / 0.6856 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.023e-05/0.1702, allocations: 11.86 kB / 0.6856 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1702, allocations: 4 kB / 0.6856 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-06/0.1702, allocations: 3.938 kB / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1702, allocations: 0 / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1702, allocations: 0 / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.828e-05/0.1703, allocations: 85.05 kB / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.834e-05/0.1703, allocations: 84.95 kB / 0.6857 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.1703, allocations: 4 kB / 0.6857 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.299e-05/0.1704, allocations: 4 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.666e-06/0.1704, allocations: 0 / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.1704, allocations: 3.984 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.456e-05/0.1705, allocations: 129.2 kB / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1705, allocations: 0 / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003239/0.1708, allocations: 83.98 kB / 0.686 GB, free: 10.45 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.0007236/0.1715, allocations: 0.7522 MB / 0.6867 GB, free: 9.691 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001465/0.1717, allocations: 97.67 kB / 0.6868 GB, free: 9.59 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1717, allocations: 0 / 0.6868 GB, free: 9.59 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.679e-05/0.1717, allocations: 12 kB / 0.6868 GB, free: 9.578 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.1719, allocations: 4 kB / 0.6868 GB, free: 9.574 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.1733, allocations: 1.533 MB / 0.6883 GB, free: 7.965 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.1736, allocations: 0.6924 MB / 0.689 GB, free: 7.246 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.638e-05/0.1737, allocations: 0 / 0.689 GB, free: 7.246 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.523e-05/0.1737, allocations: 23.42 kB / 0.689 GB, free: 7.223 MB / 494.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1737, allocations: 0 / 0.689 GB, free: 7.223 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.1985, allocations: 3.456 MB / 0.6924 GB, free: 3.867 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.127/8.325, allocations: 10.75 kB / 0.6924 GB, free: 3.859 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)