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.0008007/0.0008006, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005216/0.005216, allocations: 170.1 kB / 16.27 MB, free: 6.648 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.317/1.317, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00164/0.00164, allocations: 270.4 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9658/0.9658, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006516/0.0006516, allocations: 13.86 kB / 0.5986 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2008, allocations: 88.55 MB / 0.6851 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.0006762/0.2015, allocations: 250.5 kB / 0.6854 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002159/0.2037, allocations: 1.61 MB / 0.6869 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.674e-05/0.2037, allocations: 0 / 0.6869 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001777/0.2039, allocations: 59.89 kB / 0.687 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.613e-05/0.2039, allocations: 31.89 kB / 0.687 GB, free: 13.12 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006897/0.2046, allocations: 195.7 kB / 0.6872 GB, free: 12.94 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.628e-05/0.2047, allocations: 35.89 kB / 0.6872 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.033e-05/0.2048, allocations: 4 kB / 0.6872 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.411e-05/0.2048, allocations: 19.91 kB / 0.6873 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.614e-05/0.2049, allocations: 43.83 kB / 0.6873 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.2049, allocations: 0.5 kB / 0.6873 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004357/0.2053, allocations: 276.4 kB / 0.6876 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.503e-05/0.2054, allocations: 23.91 kB / 0.6876 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.187e-05/0.2054, allocations: 54.33 kB / 0.6876 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003981/0.2058, allocations: 287.5 kB / 0.6879 GB, free: 12.2 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2058, allocations: 3.438 kB / 0.6879 GB, free: 12.2 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.2059, allocations: 0 / 0.6879 GB, free: 12.2 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.2059, allocations: 4 kB / 0.6879 GB, free: 12.2 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.0004539/0.2063, allocations: 423 kB / 0.6883 GB, free: 11.74 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.2064, allocations: 8.031 kB / 0.6883 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.41e-05/0.2064, allocations: 12.83 kB / 0.6883 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.2066, allocations: 188.7 kB / 0.6885 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-06/0.2066, allocations: 384 / 0.6885 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.077e-05/0.2067, allocations: 1.031 kB / 0.6885 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.39e-05/0.2068, allocations: 43.06 kB / 0.6886 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.513e-06/0.2068, allocations: 0 / 0.6886 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.2068, allocations: 0 / 0.6886 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.2068, allocations: 0.6562 kB / 0.6886 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.813e-05/0.2068, allocations: 19.98 kB / 0.6886 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001754/0.207, allocations: 190.2 kB / 0.6888 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.356e-05/0.2071, allocations: 31.92 kB / 0.6888 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.174e-05/0.2071, allocations: 16.92 kB / 0.6888 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.596e-05/0.2071, allocations: 9.797 kB / 0.6888 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.2072, allocations: 38.5 kB / 0.6889 GB, free: 11.08 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.2072, allocations: 0 / 0.6889 GB, free: 11.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001435/0.2073, allocations: 77.44 kB / 0.6889 GB, free: 11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.2074, allocations: 51.41 kB / 0.689 GB, free: 10.94 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.2076, allocations: 215.3 kB / 0.6892 GB, free: 10.72 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.2076, allocations: 29.7 kB / 0.6892 GB, free: 10.68 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.757e-05/0.2076, allocations: 104.1 kB / 0.6893 GB, free: 10.58 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.337e-06/0.2077, allocations: 0 / 0.6893 GB, free: 10.58 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.079e-05/0.2077, allocations: 25.7 kB / 0.6893 GB, free: 10.55 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.2078, allocations: 322.8 kB / 0.6896 GB, free: 10.22 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.027e-05/0.2079, allocations: 60.11 kB / 0.6897 GB, free: 10.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.199e-05/0.2079, allocations: 55.97 kB / 0.6898 GB, free: 10.11 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.045e-05/0.208, allocations: 86.89 kB / 0.6898 GB, free: 10.02 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.208, allocations: 4 kB / 0.6898 GB, free: 10.02 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001752/0.2082, allocations: 165.3 kB / 0.69 GB, free: 9.852 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.2082, allocations: 9.812 kB / 0.69 GB, free: 9.844 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.2083, allocations: 7.984 kB / 0.69 GB, free: 9.836 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.2083, allocations: 3.938 kB / 0.69 GB, free: 9.832 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.473e-05/0.2083, allocations: 0 / 0.69 GB, free: 9.832 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.2083, allocations: 0 / 0.69 GB, free: 9.832 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.604e-05/0.2084, allocations: 15.91 kB / 0.69 GB, free: 9.816 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.2084, allocations: 0 / 0.69 GB, free: 9.816 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.0001411/0.2085, allocations: 133.1 kB / 0.6902 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.789e-05/0.2085, allocations: 19.73 kB / 0.6902 GB, free: 9.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.2086, allocations: 58.25 kB / 0.6902 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.2087, allocations: 0 / 0.6902 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2087, allocations: 3.938 kB / 0.6902 GB, free: 9.594 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2087, allocations: 4.031 kB / 0.6902 GB, free: 9.59 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001256/0.2088, allocations: 185.6 kB / 0.6904 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2088, allocations: 0 / 0.6904 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.867e-06/0.2088, allocations: 0 / 0.6904 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.2088, allocations: 7.938 kB / 0.6904 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.2088, allocations: 0 / 0.6904 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2088, allocations: 0 / 0.6904 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2088, allocations: 0 / 0.6904 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.025e-05/0.2089, allocations: 85.03 kB / 0.6905 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.209e-05/0.209, allocations: 88.86 kB / 0.6906 GB, free: 9.145 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.209, allocations: 7.984 kB / 0.6906 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.28e-05/0.209, allocations: 0 / 0.6906 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.03e-05/0.209, allocations: 0 / 0.6906 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-06/0.2091, allocations: 0 / 0.6906 GB, free: 9.137 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001098/0.2092, allocations: 148.4 kB / 0.6907 GB, free: 8.992 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2092, allocations: 0 / 0.6907 GB, free: 8.992 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.2095, allocations: 83.98 kB / 0.6908 GB, free: 8.91 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.0004576/0.2099, allocations: 243.5 kB / 0.6911 GB, free: 8.684 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001865/0.2101, allocations: 125.7 kB / 0.6912 GB, free: 8.555 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2102, allocations: 0 / 0.6912 GB, free: 8.555 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.572e-05/0.2102, allocations: 12.06 kB / 0.6912 GB, free: 8.543 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.2103, allocations: 13.72 kB / 0.6912 GB, free: 8.531 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003152/0.2106, allocations: 215.8 kB / 0.6914 GB, free: 8.293 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.2109, allocations: 0.7121 MB / 0.6921 GB, free: 7.555 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.735e-05/0.2109, allocations: 0 / 0.6921 GB, free: 7.555 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.34e-05/0.211, allocations: 7.438 kB / 0.6921 GB, free: 7.547 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.211, allocations: 0 / 0.6921 GB, free: 7.547 MB / 494.1 MB Notification: Performance of Templates: time 0.004693/0.2157, allocations: 2.11 MB / 0.6942 GB, free: 5.438 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)