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.0007375/0.0007375, allocations: 97.95 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.004371/0.004371, allocations: 170.9 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.243/1.243, allocations: 223.2 MB / 240.3 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00167/0.00167, allocations: 278.8 kB / 291.7 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8622/0.8622, allocations: 169.5 MB / 0.5004 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000388/0.0003881, allocations: 14.92 kB / 0.5988 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1469, allocations: 88.55 MB / 0.6852 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.0005918/0.1475, allocations: 246.1 kB / 0.6855 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.1495, allocations: 1.612 MB / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.682e-05/0.1496, allocations: 4.656 kB / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.1497, allocations: 11.98 kB / 0.6871 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.348e-05/0.1497, allocations: 12.45 kB / 0.6871 GB, free: 13.1 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.0006448/0.1504, allocations: 198.1 kB / 0.6873 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.841e-05/0.1504, allocations: 23.86 kB / 0.6873 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.994e-05/0.1505, allocations: 4 kB / 0.6873 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.724e-05/0.1505, allocations: 13.19 kB / 0.6873 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.6e-05/0.1506, allocations: 23.86 kB / 0.6873 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.127e-05/0.1506, allocations: 0 / 0.6873 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004116/0.151, allocations: 269.3 kB / 0.6876 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.595e-05/0.1511, allocations: 23.92 kB / 0.6876 GB, free: 12.56 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.562e-05/0.1511, allocations: 45.5 kB / 0.6876 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003414/0.1515, allocations: 275.6 kB / 0.6879 GB, free: 12.24 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1515, allocations: 2.281 kB / 0.6879 GB, free: 12.24 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1515, allocations: 0 / 0.6879 GB, free: 12.24 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.1515, allocations: 0 / 0.6879 GB, free: 12.24 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.0003741/0.1519, allocations: 399.2 kB / 0.6883 GB, free: 11.8 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.1519, allocations: 8.031 kB / 0.6883 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.222e-05/0.1519, allocations: 31.25 kB / 0.6883 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.686e-05/0.152, allocations: 9.5 kB / 0.6883 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.1521, allocations: 180.3 kB / 0.6885 GB, free: 11.53 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.003e-06/0.1521, allocations: 4.031 kB / 0.6885 GB, free: 11.53 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.1521, allocations: 384 / 0.6885 GB, free: 11.53 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.958e-05/0.1522, allocations: 41.81 kB / 0.6885 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-06/0.1523, allocations: 0 / 0.6885 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.1523, allocations: 0 / 0.6885 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1523, allocations: 3.938 kB / 0.6885 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.87e-05/0.1523, allocations: 16 kB / 0.6886 GB, free: 11.46 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001564/0.1525, allocations: 174.2 kB / 0.6887 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.808e-05/0.1525, allocations: 27.22 kB / 0.6888 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.358e-05/0.1525, allocations: 17.55 kB / 0.6888 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.1526, allocations: 7.938 kB / 0.6888 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.1526, allocations: 39.83 kB / 0.6888 GB, free: 11.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.1526, allocations: 0 / 0.6888 GB, free: 11.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001321/0.1528, allocations: 63.5 kB / 0.6889 GB, free: 11.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.1528, allocations: 51.41 kB / 0.6889 GB, free: 11.01 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.1529, allocations: 168.3 kB / 0.6891 GB, free: 10.84 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.153, allocations: 25.83 kB / 0.6891 GB, free: 10.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.49e-05/0.153, allocations: 100 kB / 0.6892 GB, free: 10.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.145e-06/0.153, allocations: 0 / 0.6892 GB, free: 10.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-05/0.1531, allocations: 21.7 kB / 0.6892 GB, free: 10.68 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.681e-05/0.1532, allocations: 322.8 kB / 0.6895 GB, free: 10.35 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.133e-05/0.1532, allocations: 35.98 kB / 0.6896 GB, free: 10.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.788e-05/0.1533, allocations: 39.98 kB / 0.6896 GB, free: 10.28 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.479e-05/0.1533, allocations: 72.75 kB / 0.6897 GB, free: 10.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1533, allocations: 4 kB / 0.6897 GB, free: 10.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001367/0.1535, allocations: 133.5 kB / 0.6898 GB, free: 10.06 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.1535, allocations: 10.17 kB / 0.6898 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.1535, allocations: 4 kB / 0.6898 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.1535, allocations: 3.938 kB / 0.6898 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.038e-05/0.1536, allocations: 0 / 0.6898 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.818e-06/0.1536, allocations: 0 / 0.6898 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.369e-05/0.1536, allocations: 11.84 kB / 0.6898 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.1536, allocations: 0 / 0.6898 GB, free: 10.04 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.0001094/0.1537, allocations: 125.4 kB / 0.69 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.067e-05/0.1537, allocations: 11.88 kB / 0.69 GB, free: 9.895 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.1538, allocations: 69.47 kB / 0.69 GB, free: 9.816 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1539, allocations: 0 / 0.69 GB, free: 9.816 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1539, allocations: 0 / 0.69 GB, free: 9.816 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.1539, allocations: 3.938 kB / 0.69 GB, free: 9.812 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.154, allocations: 173.7 kB / 0.6902 GB, free: 9.594 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.154, allocations: 0 / 0.6902 GB, free: 9.594 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.192e-06/0.154, allocations: 7.922 kB / 0.6902 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.154, allocations: 0 / 0.6902 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.154, allocations: 4 kB / 0.6902 GB, free: 9.582 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.154, allocations: 4.031 kB / 0.6902 GB, free: 9.578 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.154, allocations: 0 / 0.6902 GB, free: 9.578 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.018e-05/0.1541, allocations: 80.97 kB / 0.6903 GB, free: 9.48 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.736e-05/0.1541, allocations: 88.95 kB / 0.6904 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.1542, allocations: 0 / 0.6904 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.111e-05/0.1542, allocations: 0 / 0.6904 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.338e-05/0.1542, allocations: 3.984 kB / 0.6904 GB, free: 9.371 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.1542, allocations: 4.031 kB / 0.6904 GB, free: 9.367 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.476e-05/0.1543, allocations: 123.9 kB / 0.6905 GB, free: 9.246 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1543, allocations: 0 / 0.6905 GB, free: 9.246 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002911/0.1546, allocations: 87.98 kB / 0.6906 GB, free: 9.16 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.0006558/0.1552, allocations: 0.7392 MB / 0.6913 GB, free: 8.414 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001351/0.1554, allocations: 97.61 kB / 0.6914 GB, free: 8.312 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1554, allocations: 0 / 0.6914 GB, free: 8.312 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.159e-05/0.1554, allocations: 8 kB / 0.6914 GB, free: 8.305 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.1556, allocations: 8.125 kB / 0.6914 GB, free: 8.297 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.1568, allocations: 1.542 MB / 0.6929 GB, free: 6.676 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.157, allocations: 0.7004 MB / 0.6936 GB, free: 5.949 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.688e-05/0.1571, allocations: 0 / 0.6936 GB, free: 5.949 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.255e-05/0.1571, allocations: 23.42 kB / 0.6936 GB, free: 5.926 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1571, allocations: 0 / 0.6936 GB, free: 5.926 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2197/0.3768, allocations: 3.246 MB / 0.6968 GB, free: 2.824 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/0.377, allocations: 263.4 kB / 0.6971 GB, free: 2.562 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.606/1.983, allocations: 0 / 0.6971 GB, free: 2.562 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)