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: "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",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.001252/0.001252, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.269/1.269, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002013/0.002013, allocations: 288.4 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9166/0.9166, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 94.23 kB / 0.5953 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1387, allocations: 86.99 MB / 0.6803 GB, free: 0.625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001662/0.1404, allocations: 0.5189 MB / 0.6808 GB, free: 120 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.1424, allocations: 1.598 MB / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.192e-05/0.1425, allocations: 0 / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001614/0.1426, allocations: 67.84 kB / 0.6824 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.202e-05/0.1427, allocations: 35.89 kB / 0.6824 GB, free: 14.4 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.0008245/0.1435, allocations: 235.3 kB / 0.6827 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.356e-05/0.1436, allocations: 39.83 kB / 0.6827 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.548e-05/0.1436, allocations: 0 / 0.6827 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.569e-05/0.1437, allocations: 23.97 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.821e-05/0.1437, allocations: 47.89 kB / 0.6828 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.1438, allocations: 0 / 0.6828 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004721/0.1442, allocations: 283.5 kB / 0.683 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.567e-05/0.1443, allocations: 28.44 kB / 0.6831 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.083e-05/0.1443, allocations: 23.75 kB / 0.6831 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003862/0.1447, allocations: 291.5 kB / 0.6834 GB, free: 13.45 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1447, allocations: 7.938 kB / 0.6834 GB, free: 13.44 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1448, allocations: 0 / 0.6834 GB, free: 13.44 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.1448, allocations: 0 / 0.6834 GB, free: 13.44 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.00042/0.1452, allocations: 431 kB / 0.6838 GB, free: 12.97 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.1452, allocations: 12.03 kB / 0.6838 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.366e-05/0.1453, allocations: 34.75 kB / 0.6838 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.42e-05/0.1453, allocations: 16.69 kB / 0.6839 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.1455, allocations: 193.2 kB / 0.684 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.1455, allocations: 384 / 0.684 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.064e-05/0.1455, allocations: 4.375 kB / 0.684 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.627e-05/0.1456, allocations: 41.81 kB / 0.6841 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.1456, allocations: 0 / 0.6841 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.1456, allocations: 4 kB / 0.6841 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.1457, allocations: 0 / 0.6841 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.285e-05/0.1457, allocations: 19.98 kB / 0.6841 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001632/0.1459, allocations: 177.7 kB / 0.6843 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.937e-05/0.1459, allocations: 34.5 kB / 0.6843 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.112e-05/0.1459, allocations: 12.92 kB / 0.6843 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.519e-05/0.146, allocations: 11.98 kB / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.146, allocations: 38.5 kB / 0.6844 GB, free: 12.26 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 2.204e-06/0.146, allocations: 0 / 0.6844 GB, free: 12.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001503/0.1462, allocations: 73.44 kB / 0.6844 GB, free: 12.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.1462, allocations: 51.41 kB / 0.6845 GB, free: 12.12 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.1464, allocations: 206.9 kB / 0.6847 GB, free: 11.91 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.887e-05/0.1464, allocations: 25.7 kB / 0.6847 GB, free: 11.88 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.071e-05/0.1465, allocations: 112 kB / 0.6848 GB, free: 11.76 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.457e-06/0.1465, allocations: 0 / 0.6848 GB, free: 11.76 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.811e-05/0.1466, allocations: 37.83 kB / 0.6848 GB, free: 11.72 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1467, allocations: 322.8 kB / 0.6852 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.467e-05/0.1468, allocations: 51.98 kB / 0.6852 GB, free: 11.34 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.663e-05/0.1468, allocations: 55.97 kB / 0.6853 GB, free: 11.29 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.451e-05/0.1469, allocations: 90.75 kB / 0.6853 GB, free: 11.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1469, allocations: 0 / 0.6853 GB, free: 11.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001771/0.1471, allocations: 169.3 kB / 0.6855 GB, free: 11.03 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.1471, allocations: 7.984 kB / 0.6855 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.1471, allocations: 0 / 0.6855 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.1472, allocations: 8.062 kB / 0.6855 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.387e-05/0.1472, allocations: 3.938 kB / 0.6855 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.1472, allocations: 0 / 0.6855 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.935e-05/0.1472, allocations: 7.844 kB / 0.6855 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.1472, allocations: 4 kB / 0.6855 GB, free: 11 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.0001369/0.1474, allocations: 130.5 kB / 0.6857 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.1474, allocations: 19.69 kB / 0.6857 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001065/0.1475, allocations: 66.25 kB / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.1475, allocations: 0 / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1475, allocations: 0 / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.1475, allocations: 0 / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.1477, allocations: 185.6 kB / 0.6859 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1477, allocations: 0 / 0.6859 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.187e-06/0.1477, allocations: 11.92 kB / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1477, allocations: 0 / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.589e-06/0.1477, allocations: 0 / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1477, allocations: 0 / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1477, allocations: 7.938 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001041/0.1478, allocations: 81.06 kB / 0.686 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.999e-05/0.1479, allocations: 96.84 kB / 0.6861 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.1479, allocations: 0 / 0.6861 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.376e-05/0.1479, allocations: 0 / 0.6861 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.532e-05/0.1479, allocations: 4 kB / 0.6861 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-06/0.1479, allocations: 4 kB / 0.6861 GB, free: 10.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001176/0.1481, allocations: 144.4 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1481, allocations: 4.031 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003383/0.1484, allocations: 87.98 kB / 0.6863 GB, free: 10.07 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.0007/0.1491, allocations: 0.7564 MB / 0.6871 GB, free: 9.305 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001663/0.1493, allocations: 125.7 kB / 0.6872 GB, free: 9.176 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1493, allocations: 0 / 0.6872 GB, free: 9.176 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.631e-05/0.1493, allocations: 11.98 kB / 0.6872 GB, free: 9.164 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.1495, allocations: 8 kB / 0.6872 GB, free: 9.156 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.151, allocations: 1.809 MB / 0.689 GB, free: 7.273 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.1512, allocations: 0.7041 MB / 0.6897 GB, free: 6.543 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.737e-05/0.1512, allocations: 0 / 0.6897 GB, free: 6.543 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.954e-05/0.1513, allocations: 27.42 kB / 0.6897 GB, free: 6.516 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1513, allocations: 0 / 0.6897 GB, free: 6.516 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01916/0.1704, allocations: 3.839 MB / 0.6935 GB, free: 2.77 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.861/7.031, allocations: 15.97 kB / 0.6935 GB, free: 2.762 MB / 494.1 MB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)