Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.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: translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 106.1 kB / 16.36 MB, free: 5.824 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.001301/0.001301, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.227/1.227, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001963/0.001963, allocations: 287.4 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8903/0.8903, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 92.86 kB / 0.5967 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1507, allocations: 86.97 MB / 0.6816 GB, free: 7.484 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001595/0.1524, allocations: 0.5126 MB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.1543, allocations: 1.603 MB / 0.6836 GB, free: 5.352 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.71e-05/0.1544, allocations: 0 / 0.6836 GB, free: 5.352 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.1545, allocations: 67.84 kB / 0.6837 GB, free: 5.285 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.282e-05/0.1546, allocations: 27.95 kB / 0.6837 GB, free: 5.258 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.0007649/0.1553, allocations: 246.3 kB / 0.684 GB, free: 5.02 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.299e-05/0.1554, allocations: 43.81 kB / 0.684 GB, free: 4.977 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.24e-05/0.1555, allocations: 4 kB / 0.684 GB, free: 4.973 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.344e-05/0.1555, allocations: 19.98 kB / 0.684 GB, free: 4.953 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.623e-05/0.1556, allocations: 43.88 kB / 0.6841 GB, free: 4.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.031e-05/0.1556, allocations: 0 / 0.6841 GB, free: 4.91 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004471/0.156, allocations: 335.5 kB / 0.6844 GB, free: 4.582 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.24e-05/0.1561, allocations: 19.92 kB / 0.6844 GB, free: 4.562 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.927e-05/0.1561, allocations: 27.75 kB / 0.6844 GB, free: 4.535 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003316/0.1565, allocations: 299.2 kB / 0.6847 GB, free: 4.242 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1565, allocations: 0 / 0.6847 GB, free: 4.242 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1565, allocations: 0 / 0.6847 GB, free: 4.242 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.399e-06/0.1565, allocations: 4 kB / 0.6847 GB, free: 4.238 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.0003872/0.1569, allocations: 427 kB / 0.6851 GB, free: 3.773 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.775e-05/0.1569, allocations: 8.031 kB / 0.6852 GB, free: 3.766 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.057e-05/0.1569, allocations: 12.75 kB / 0.6852 GB, free: 3.754 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001548/0.1571, allocations: 188.2 kB / 0.6853 GB, free: 3.531 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.323e-06/0.1571, allocations: 384 / 0.6853 GB, free: 3.531 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.1571, allocations: 384 / 0.6853 GB, free: 3.531 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.128e-05/0.1572, allocations: 45.94 kB / 0.6854 GB, free: 3.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.051e-06/0.1572, allocations: 0 / 0.6854 GB, free: 3.48 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.834e-06/0.1573, allocations: 8 kB / 0.6854 GB, free: 3.473 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.086e-06/0.1573, allocations: 4 kB / 0.6854 GB, free: 3.469 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.616e-05/0.1573, allocations: 15.98 kB / 0.6854 GB, free: 3.453 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.1575, allocations: 185.5 kB / 0.6856 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.217e-05/0.1575, allocations: 30.56 kB / 0.6856 GB, free: 3.184 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.173e-05/0.1575, allocations: 12.92 kB / 0.6856 GB, free: 3.168 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.841e-05/0.1576, allocations: 7.984 kB / 0.6856 GB, free: 3.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.416e-05/0.1576, allocations: 50.38 kB / 0.6857 GB, free: 3.102 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.1576, allocations: 0 / 0.6857 GB, free: 3.102 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001294/0.1578, allocations: 65.5 kB / 0.6858 GB, free: 3.031 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.1578, allocations: 51.41 kB / 0.6858 GB, free: 2.969 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002158/0.158, allocations: 212.1 kB / 0.686 GB, free: 2.754 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.1581, allocations: 29.7 kB / 0.686 GB, free: 2.719 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.454e-05/0.1582, allocations: 108 kB / 0.6861 GB, free: 2.609 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.855e-06/0.1582, allocations: 0 / 0.6861 GB, free: 2.609 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.1582, allocations: 33.83 kB / 0.6862 GB, free: 2.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1583, allocations: 326.8 kB / 0.6865 GB, free: 2.242 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.961e-05/0.1584, allocations: 51.98 kB / 0.6865 GB, free: 2.191 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.246e-05/0.1585, allocations: 59.97 kB / 0.6866 GB, free: 2.133 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.473e-05/0.1585, allocations: 95.53 kB / 0.6867 GB, free: 2.039 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1586, allocations: 0 / 0.6867 GB, free: 2.039 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001626/0.1587, allocations: 165.4 kB / 0.6868 GB, free: 1.871 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.1587, allocations: 11.94 kB / 0.6868 GB, free: 1.859 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.1588, allocations: 64 / 0.6868 GB, free: 1.859 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.808e-06/0.1588, allocations: 4 kB / 0.6868 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-05/0.1588, allocations: 0 / 0.6868 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.1588, allocations: 0 / 0.6868 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.595e-05/0.1588, allocations: 11.84 kB / 0.6869 GB, free: 1.844 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.1588, allocations: 0 / 0.6869 GB, free: 1.844 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: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001015/0.1589, allocations: 133.8 kB / 0.687 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.159e-05/0.159, allocations: 7.844 kB / 0.687 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.1591, allocations: 70.19 kB / 0.6871 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.1591, allocations: 0 / 0.6871 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1591, allocations: 3.984 kB / 0.6871 GB, free: 1.617 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.1591, allocations: 4 kB / 0.6871 GB, free: 1.613 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/0.1593, allocations: 181.6 kB / 0.6872 GB, free: 1.387 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1593, allocations: 0 / 0.6872 GB, free: 1.387 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.751e-06/0.1593, allocations: 4 kB / 0.6872 GB, free: 1.383 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.1593, allocations: 7.938 kB / 0.6873 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.902e-06/0.1593, allocations: 0 / 0.6873 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1593, allocations: 0 / 0.6873 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1593, allocations: 0 / 0.6873 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.137e-05/0.1594, allocations: 92.91 kB / 0.6873 GB, free: 1.266 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-05/0.1595, allocations: 92.94 kB / 0.6874 GB, free: 1.156 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.1595, allocations: 0 / 0.6874 GB, free: 1.156 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.285e-05/0.1595, allocations: 0 / 0.6874 GB, free: 1.156 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.294e-05/0.1595, allocations: 0 / 0.6874 GB, free: 1.156 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.1596, allocations: 0 / 0.6874 GB, free: 1.156 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001034/0.1597, allocations: 149.6 kB / 0.6876 GB, free: 1.012 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1597, allocations: 7.969 kB / 0.6876 GB, free: 1.004 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000289/0.16, allocations: 83.98 kB / 0.6877 GB, free: 0.9219 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.0004433/0.1604, allocations: 232.8 kB / 0.6879 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001611/0.1606, allocations: 129.7 kB / 0.688 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1606, allocations: 0 / 0.688 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.496e-05/0.1606, allocations: 15.94 kB / 0.688 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.1608, allocations: 7.984 kB / 0.688 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002912/0.1611, allocations: 212.8 kB / 0.6882 GB, free: 320 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2111/0.3721, allocations: 0.7016 MB / 0.6889 GB, free: 17.55 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.309e-05/0.3722, allocations: 2.078 kB / 0.6889 GB, free: 17.55 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.247e-05/0.3722, allocations: 12.81 kB / 0.6889 GB, free: 17.54 MB / 494.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3722, allocations: 0 / 0.6889 GB, free: 17.54 MB / 494.1 MB Notification: Performance of Templates: time 0.005049/0.3773, allocations: 2.115 MB / 0.691 GB, free: 17.47 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)