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.004732/0.004732, allocations: 96.39 kB / 15.73 MB, free: 6 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.001169/0.001169, allocations: 189 kB / 16.67 MB, free: 5.93 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002184/0.002184, allocations: 278.7 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9645/0.9645, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 93.92 kB / 0.6809 GB, free: 32 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1443, allocations: 86.97 MB / 0.7659 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001548/0.1459, allocations: 0.5128 MB / 0.7664 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002107/0.148, allocations: 1.611 MB / 0.7679 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.939e-05/0.1481, allocations: 0 / 0.7679 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.1483, allocations: 59.84 kB / 0.768 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.444e-05/0.1483, allocations: 31.94 kB / 0.768 GB, free: 6.75 MB / 0.5606 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/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.0008546/0.1492, allocations: 243.3 kB / 0.7683 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.046e-05/0.1492, allocations: 31.95 kB / 0.7683 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.357e-05/0.1493, allocations: 0 / 0.7683 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.765e-05/0.1493, allocations: 27.91 kB / 0.7683 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.132e-05/0.1494, allocations: 39.89 kB / 0.7684 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.102e-05/0.1494, allocations: 4 kB / 0.7684 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005221/0.1499, allocations: 331.5 kB / 0.7687 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.99e-05/0.15, allocations: 31.91 kB / 0.7687 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.088e-05/0.15, allocations: 23.75 kB / 0.7687 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003875/0.1504, allocations: 307.3 kB / 0.769 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1504, allocations: 0 / 0.769 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.242e-06/0.1505, allocations: 0 / 0.769 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.658e-06/0.1505, allocations: 0 / 0.769 GB, free: 5.73 MB / 0.5606 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.0004208/0.1509, allocations: 438.4 kB / 0.7694 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.1509, allocations: 8.031 kB / 0.7695 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.472e-05/0.151, allocations: 30.75 kB / 0.7695 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.216e-05/0.151, allocations: 12.84 kB / 0.7695 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.1512, allocations: 189.4 kB / 0.7697 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.1512, allocations: 4.375 kB / 0.7697 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.05e-05/0.1512, allocations: 4.375 kB / 0.7697 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.636e-05/0.1513, allocations: 41.81 kB / 0.7697 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.1513, allocations: 0 / 0.7697 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.703e-06/0.1513, allocations: 0 / 0.7697 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.1513, allocations: 0 / 0.7697 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.225e-05/0.1513, allocations: 23.92 kB / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001695/0.1515, allocations: 185.6 kB / 0.7699 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.947e-05/0.1516, allocations: 34.58 kB / 0.77 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.634e-05/0.1516, allocations: 20.91 kB / 0.77 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/0.1517, allocations: 4 kB / 0.77 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.1517, allocations: 38.44 kB / 0.77 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.362e-06/0.1517, allocations: 0 / 0.77 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001564/0.1519, allocations: 77.52 kB / 0.7701 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.1519, allocations: 51.41 kB / 0.7701 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.1521, allocations: 214.9 kB / 0.7703 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.1521, allocations: 29.7 kB / 0.7704 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.474e-05/0.1522, allocations: 100.1 kB / 0.7705 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.099e-05/0.1522, allocations: 3.984 kB / 0.7705 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.1522, allocations: 29.72 kB / 0.7705 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.441e-05/0.1523, allocations: 322.8 kB / 0.7708 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.755e-05/0.1524, allocations: 55.97 kB / 0.7709 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.159e-05/0.1525, allocations: 57.8 kB / 0.7709 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.376e-05/0.1526, allocations: 88.78 kB / 0.771 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.1526, allocations: 4.031 kB / 0.771 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001713/0.1527, allocations: 175.5 kB / 0.7712 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.1528, allocations: 4 kB / 0.7712 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.1528, allocations: 4 kB / 0.7712 GB, free: 3.297 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.1528, allocations: 0 / 0.7712 GB, free: 3.297 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.452e-05/0.1528, allocations: 3.984 kB / 0.7712 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.1528, allocations: 3.984 kB / 0.7712 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.006e-05/0.1529, allocations: 11.89 kB / 0.7712 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.1529, allocations: 0 / 0.7712 GB, free: 3.277 MB / 0.5606 GB 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.0001574/0.153, allocations: 130.5 kB / 0.7713 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.014e-05/0.1531, allocations: 15.84 kB / 0.7713 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.1532, allocations: 74.16 kB / 0.7714 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.1532, allocations: 0 / 0.7714 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1532, allocations: 0 / 0.7714 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1532, allocations: 0 / 0.7714 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.1533, allocations: 185.7 kB / 0.7716 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1533, allocations: 3.984 kB / 0.7716 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.044e-06/0.1534, allocations: 3.938 kB / 0.7716 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1534, allocations: 4.031 kB / 0.7716 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.1534, allocations: 4 kB / 0.7716 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1534, allocations: 0 / 0.7716 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1534, allocations: 0 / 0.7716 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.953e-05/0.1535, allocations: 77.03 kB / 0.7717 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.1535, allocations: 93 kB / 0.7718 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.1535, allocations: 0 / 0.7718 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.449e-05/0.1536, allocations: 4.031 kB / 0.7718 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.148e-05/0.1536, allocations: 7.984 kB / 0.7718 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.1536, allocations: 3.938 kB / 0.7718 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000103/0.1537, allocations: 144.4 kB / 0.7719 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1537, allocations: 3.938 kB / 0.7719 GB, free: 2.438 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003458/0.154, allocations: 87.8 kB / 0.772 GB, free: 2.352 MB / 0.5606 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.0007212/0.1548, allocations: 0.7442 MB / 0.7727 GB, free: 1.598 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001787/0.155, allocations: 125.7 kB / 0.7729 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.155, allocations: 0 / 0.7729 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.851e-05/0.155, allocations: 24.02 kB / 0.7729 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.1552, allocations: 9.938 kB / 0.7729 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2878/0.4429, allocations: 1.817 MB / 0.7747 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/0.4431, allocations: 0.7032 MB / 0.7753 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.533e-05/0.4432, allocations: 2.828 kB / 0.7754 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.872e-05/0.4432, allocations: 26.42 kB / 0.7754 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of SimCode: time 8.91e-07/0.4432, allocations: 0.5938 kB / 0.7754 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0205/0.4637, allocations: 3.889 MB / 0.7792 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.502/7.966, allocations: 3.281 kB / 0.7792 GB, free: 12.75 MB / 0.5606 GB (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)