Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 108 kB / 15.99 MB, free: 5.895 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.001036/0.001036, allocations: 193.4 kB / 16.91 MB, free: 5.746 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.36/1.36, allocations: 222.9 MB / 240.6 MB, free: 4.508 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9979/0.9979, allocations: 143 MB / 433.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 59.91 kB / 0.5143 GB, free: 11.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1807, allocations: 82.04 MB / 0.5944 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001814/0.1825, allocations: 0.5793 MB / 0.595 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002262/0.1848, allocations: 1.602 MB / 0.5966 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.292e-05/0.1848, allocations: 4 kB / 0.5966 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.185, allocations: 23.91 kB / 0.5966 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.829e-05/0.1851, allocations: 11.97 kB / 0.5966 GB, free: 7.629 MB / 0.4981 GB [/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/BuildSysPro 3.6.0/IBPSA/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.0008938/0.186, allocations: 211.6 kB / 0.5968 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.691e-05/0.186, allocations: 23.91 kB / 0.5968 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.074e-05/0.1861, allocations: 4 kB / 0.5968 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.051e-05/0.1861, allocations: 19.92 kB / 0.5969 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.227e-05/0.1862, allocations: 23.91 kB / 0.5969 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.189e-05/0.1862, allocations: 0 / 0.5969 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004638/0.1867, allocations: 279.6 kB / 0.5971 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.678e-05/0.1867, allocations: 15.98 kB / 0.5972 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.123e-05/0.1867, allocations: 19.8 kB / 0.5972 GB, free: 7.043 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002872/0.187, allocations: 199.6 kB / 0.5974 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.187, allocations: 0 / 0.5974 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.82e-07/0.1871, allocations: 0 / 0.5974 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.1871, allocations: 4 kB / 0.5974 GB, free: 6.844 MB / 0.4981 GB 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.0004453/0.1875, allocations: 403.4 kB / 0.5978 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.1876, allocations: 12.03 kB / 0.5978 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.358e-05/0.1876, allocations: 4.844 kB / 0.5978 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.1878, allocations: 192.7 kB / 0.598 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.1878, allocations: 384 / 0.598 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.1878, allocations: 4.375 kB / 0.598 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.796e-05/0.1879, allocations: 42 kB / 0.598 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.1879, allocations: 0 / 0.598 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.1879, allocations: 4 kB / 0.598 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.1879, allocations: 0 / 0.598 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.576e-05/0.188, allocations: 15.98 kB / 0.598 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/0.1882, allocations: 169.6 kB / 0.5982 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.037e-05/0.1882, allocations: 30.5 kB / 0.5982 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.175e-05/0.1882, allocations: 16.86 kB / 0.5982 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.1883, allocations: 11.98 kB / 0.5982 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.1883, allocations: 38.5 kB / 0.5983 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.1883, allocations: 0 / 0.5983 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001517/0.1885, allocations: 61.59 kB / 0.5983 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.1885, allocations: 51.41 kB / 0.5984 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.1887, allocations: 164.7 kB / 0.5985 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.1887, allocations: 25.7 kB / 0.5986 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.745e-05/0.1887, allocations: 96.08 kB / 0.5987 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.1888, allocations: 11.83 kB / 0.5987 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.928e-05/0.1888, allocations: 29.84 kB / 0.5987 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.762e-05/0.1889, allocations: 318.8 kB / 0.599 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.184e-05/0.189, allocations: 43.98 kB / 0.599 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.694e-05/0.189, allocations: 35.98 kB / 0.5991 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.147e-05/0.1891, allocations: 68.83 kB / 0.5991 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.1891, allocations: 0 / 0.5991 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001429/0.1892, allocations: 121.6 kB / 0.5993 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.1893, allocations: 11.94 kB / 0.5993 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.1893, allocations: 4 kB / 0.5993 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1893, allocations: 4.062 kB / 0.5993 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.622e-05/0.1893, allocations: 3.938 kB / 0.5993 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.1894, allocations: 0 / 0.5993 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.032e-05/0.1894, allocations: 11.84 kB / 0.5993 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.1894, allocations: 0 / 0.5993 GB, free: 4.656 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.0001638/0.1896, allocations: 124.1 kB / 0.5994 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.763e-05/0.1896, allocations: 11.84 kB / 0.5994 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001211/0.1897, allocations: 65.53 kB / 0.5995 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1897, allocations: 0 / 0.5995 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.1897, allocations: 4 kB / 0.5995 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.1898, allocations: 0 / 0.5995 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.1899, allocations: 177.6 kB / 0.5997 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1899, allocations: 0 / 0.5997 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.841e-06/0.1899, allocations: 0 / 0.5997 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.1899, allocations: 3.938 kB / 0.5997 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.1899, allocations: 0 / 0.5997 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1899, allocations: 4 kB / 0.5997 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.19, allocations: 3.938 kB / 0.5997 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.899e-05/0.1901, allocations: 81.06 kB / 0.5997 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.915e-05/0.1901, allocations: 84.95 kB / 0.5998 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.1901, allocations: 3.984 kB / 0.5998 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.174e-05/0.1902, allocations: 0 / 0.5998 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.568e-05/0.1902, allocations: 4 kB / 0.5998 GB, free: 4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.1902, allocations: 3.938 kB / 0.5998 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001013/0.1903, allocations: 123 kB / 0.6 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.166e-06/0.1903, allocations: 8.031 kB / 0.6 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003664/0.1907, allocations: 87.92 kB / 0.6 GB, free: 3.785 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.0006468/0.1913, allocations: 228.5 kB / 0.6003 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002036/0.1915, allocations: 109.6 kB / 0.6004 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.1916, allocations: 0 / 0.6004 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.871e-05/0.1916, allocations: 8 kB / 0.6004 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001729/0.1918, allocations: 6.375 kB / 0.6004 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003836/0.1922, allocations: 201.7 kB / 0.6006 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.1925, allocations: 0.7001 MB / 0.6013 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.443e-05/0.1925, allocations: 11.44 kB / 0.6013 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of SimCode: time 4.31e-07/0.1925, allocations: 0 / 0.6013 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of Templates: time 0.005295/0.1978, allocations: 2.247 MB / 0.6035 GB, free: 240 kB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)