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.001273/0.001273, allocations: 104.3 kB / 16.4 MB, free: 6.004 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.001306/0.001306, allocations: 191.9 kB / 17.34 MB, free: 5.582 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.414/1.414, allocations: 222.9 MB / 241.1 MB, free: 14.97 MB / 206.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.9015/0.9015, allocations: 143.1 MB / 434.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 63.5 kB / 0.5962 GB, free: 12.34 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1865, allocations: 82.03 MB / 0.6763 GB, free: 10.4 MB / 0.5138 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001642/0.1881, allocations: 0.5195 MB / 0.6768 GB, free: 9.879 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.00264/0.1908, allocations: 1.61 MB / 0.6784 GB, free: 8.25 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.189e-05/0.1908, allocations: 7.938 kB / 0.6784 GB, free: 8.242 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 0.0001849/0.191, allocations: 19.92 kB / 0.6784 GB, free: 8.223 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 3.026e-05/0.191, allocations: 7.984 kB / 0.6784 GB, free: 8.215 MB / 0.5138 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.00105/0.1921, allocations: 252.3 kB / 0.6786 GB, free: 7.973 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 8.387e-05/0.1921, allocations: 23.91 kB / 0.6787 GB, free: 7.949 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 4.58e-05/0.1922, allocations: 0 / 0.6787 GB, free: 7.949 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 3.801e-05/0.1922, allocations: 19.92 kB / 0.6787 GB, free: 7.93 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 5.142e-05/0.1923, allocations: 19.92 kB / 0.6787 GB, free: 7.91 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.1923, allocations: 0 / 0.6787 GB, free: 7.91 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005905/0.1929, allocations: 327.5 kB / 0.679 GB, free: 7.59 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 5.295e-05/0.1929, allocations: 23.92 kB / 0.679 GB, free: 7.566 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 3.865e-05/0.193, allocations: 15.81 kB / 0.679 GB, free: 7.551 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.0004461/0.1934, allocations: 283.2 kB / 0.6793 GB, free: 7.273 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1934, allocations: 0 / 0.6793 GB, free: 7.273 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1934, allocations: 0 / 0.6793 GB, free: 7.273 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.1934, allocations: 0 / 0.6793 GB, free: 7.273 MB / 0.5138 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.0005792/0.194, allocations: 418.7 kB / 0.6797 GB, free: 6.816 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.1941, allocations: 12.03 kB / 0.6797 GB, free: 6.805 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.803e-05/0.1941, allocations: 4.891 kB / 0.6797 GB, free: 6.801 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.1943, allocations: 185.1 kB / 0.6799 GB, free: 6.582 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.1943, allocations: 384 / 0.6799 GB, free: 6.582 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.1943, allocations: 384 / 0.6799 GB, free: 6.582 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.1945, allocations: 49.94 kB / 0.6799 GB, free: 6.527 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1945, allocations: 3.938 kB / 0.68 GB, free: 6.523 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.1945, allocations: 0 / 0.68 GB, free: 6.523 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.1945, allocations: 0 / 0.68 GB, free: 6.523 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.523e-05/0.1945, allocations: 23.98 kB / 0.68 GB, free: 6.5 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00023/0.1948, allocations: 169.7 kB / 0.6801 GB, free: 6.285 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 5.583e-05/0.1948, allocations: 22.58 kB / 0.6802 GB, free: 6.254 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.619e-05/0.1948, allocations: 12.92 kB / 0.6802 GB, free: 6.238 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 3.924e-05/0.1949, allocations: 7.984 kB / 0.6802 GB, free: 6.23 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.422e-05/0.1949, allocations: 42.44 kB / 0.6802 GB, free: 6.18 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.1949, allocations: 0 / 0.6802 GB, free: 6.18 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1): time 0.0001839/0.1951, allocations: 65.64 kB / 0.6803 GB, free: 6.109 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.1952, allocations: 51.41 kB / 0.6803 GB, free: 6.047 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.1954, allocations: 175.8 kB / 0.6805 GB, free: 5.867 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.1954, allocations: 25.7 kB / 0.6805 GB, free: 5.836 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 6.892e-05/0.1954, allocations: 96.12 kB / 0.6806 GB, free: 5.738 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 1.323e-05/0.1955, allocations: 3.938 kB / 0.6806 GB, free: 5.734 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.031e-05/0.1955, allocations: 21.72 kB / 0.6806 GB, free: 5.707 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1957, allocations: 327 kB / 0.681 GB, free: 5.379 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.956e-05/0.1957, allocations: 35.98 kB / 0.681 GB, free: 5.344 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.019e-05/0.1958, allocations: 47.91 kB / 0.681 GB, free: 5.297 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001051/0.1959, allocations: 68.83 kB / 0.6811 GB, free: 5.227 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1959, allocations: 0 / 0.6811 GB, free: 5.227 MB / 0.5138 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001632/0.1961, allocations: 129.6 kB / 0.6812 GB, free: 5.094 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.1961, allocations: 7.938 kB / 0.6812 GB, free: 5.086 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.1961, allocations: 4 kB / 0.6812 GB, free: 5.082 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.1961, allocations: 3.938 kB / 0.6812 GB, free: 5.078 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.422e-05/0.1961, allocations: 0 / 0.6812 GB, free: 5.078 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.1961, allocations: 4.062 kB / 0.6812 GB, free: 5.074 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.478e-05/0.1962, allocations: 15.89 kB / 0.6813 GB, free: 5.059 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.1962, allocations: 3.984 kB / 0.6813 GB, free: 5.055 MB / 0.5138 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.0001635/0.1963, allocations: 122.5 kB / 0.6814 GB, free: 4.926 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.508e-05/0.1963, allocations: 7.891 kB / 0.6814 GB, free: 4.918 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.1965, allocations: 61.5 kB / 0.6814 GB, free: 4.852 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1965, allocations: 0 / 0.6814 GB, free: 4.852 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1965, allocations: 4.031 kB / 0.6814 GB, free: 4.848 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.1965, allocations: 0 / 0.6814 GB, free: 4.848 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.1966, allocations: 173.7 kB / 0.6816 GB, free: 4.629 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1966, allocations: 0 / 0.6816 GB, free: 4.629 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.399e-06/0.1966, allocations: 0 / 0.6816 GB, free: 4.629 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.1966, allocations: 3.938 kB / 0.6816 GB, free: 4.625 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.921e-06/0.1967, allocations: 0 / 0.6816 GB, free: 4.625 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1967, allocations: 0 / 0.6816 GB, free: 4.625 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1967, allocations: 0 / 0.6816 GB, free: 4.625 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001067/0.1968, allocations: 85 kB / 0.6817 GB, free: 4.523 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 6.158e-05/0.1968, allocations: 89 kB / 0.6818 GB, free: 4.418 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.1968, allocations: 0 / 0.6818 GB, free: 4.418 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.361e-05/0.1969, allocations: 4 kB / 0.6818 GB, free: 4.414 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.768e-05/0.1969, allocations: 0 / 0.6818 GB, free: 4.414 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.1969, allocations: 0 / 0.6818 GB, free: 4.414 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.0001232/0.197, allocations: 125.9 kB / 0.6819 GB, free: 4.293 MB / 0.5138 GB Notification: Performance of sort global known variables: time 9e-08/0.197, allocations: 0 / 0.6819 GB, free: 4.293 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0003503/0.1973, allocations: 87.8 kB / 0.682 GB, free: 4.207 MB / 0.5138 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.0005861/0.1979, allocations: 240.8 kB / 0.6822 GB, free: 3.984 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0001908/0.1981, allocations: 93.67 kB / 0.6823 GB, free: 3.887 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1981, allocations: 0 / 0.6823 GB, free: 3.887 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 1.975e-05/0.1981, allocations: 19.98 kB / 0.6823 GB, free: 3.867 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.1983, allocations: 0 / 0.6823 GB, free: 3.867 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003532/0.1986, allocations: 194.9 kB / 0.6825 GB, free: 3.645 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.199, allocations: 0.6924 MB / 0.6832 GB, free: 2.926 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.757e-05/0.199, allocations: 7.438 kB / 0.6832 GB, free: 2.918 MB / 0.5138 GB Notification: Performance of SimCode: time 3.21e-07/0.199, allocations: 0 / 0.6832 GB, free: 2.918 MB / 0.5138 GB Notification: Performance of Templates: time 0.004909/0.2039, allocations: 2.266 MB / 0.6854 GB, free: 0.6484 MB / 0.5138 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)