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.001053/0.001053, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001075/0.001075, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.224/1.224, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001961/0.001961, allocations: 283 kB / 290.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8753/0.8753, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001534, allocations: 95.81 kB / 0.5948 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1352, allocations: 86.98 MB / 0.6797 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001496/0.1367, allocations: 0.5777 MB / 0.6803 GB, free: 424 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.1384, allocations: 1.599 MB / 0.6819 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.152e-05/0.1385, allocations: 0.5312 kB / 0.6819 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.1386, allocations: 52.58 kB / 0.6819 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.169e-05/0.1387, allocations: 41.44 kB / 0.6819 GB, free: 14.71 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.0006689/0.1394, allocations: 221.4 kB / 0.6822 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.364e-05/0.1394, allocations: 35.89 kB / 0.6822 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.908e-05/0.1395, allocations: 0 / 0.6822 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.077e-05/0.1395, allocations: 23.91 kB / 0.6822 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.359e-05/0.1395, allocations: 47.89 kB / 0.6823 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.897e-06/0.1396, allocations: 0.7812 kB / 0.6823 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000382/0.1399, allocations: 279.6 kB / 0.6825 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.282e-05/0.14, allocations: 32.52 kB / 0.6826 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.416e-05/0.14, allocations: 19.75 kB / 0.6826 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.1404, allocations: 308.4 kB / 0.6829 GB, free: 13.77 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.1404, allocations: 0 / 0.6829 GB, free: 13.77 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1404, allocations: 0.5312 kB / 0.6829 GB, free: 13.77 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.1404, allocations: 0.9375 kB / 0.6829 GB, free: 13.77 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.000362/0.1408, allocations: 427 kB / 0.6833 GB, free: 13.3 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.898e-05/0.1408, allocations: 9.156 kB / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.661e-05/0.1408, allocations: 30.75 kB / 0.6833 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.694e-05/0.1409, allocations: 16.75 kB / 0.6833 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.141, allocations: 193.2 kB / 0.6835 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-06/0.141, allocations: 4.375 kB / 0.6835 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.241e-06/0.141, allocations: 384 / 0.6835 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.449e-05/0.1411, allocations: 41.81 kB / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.38e-06/0.1411, allocations: 0 / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.749e-06/0.1411, allocations: 0 / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.026e-06/0.1411, allocations: 0 / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.767e-05/0.1412, allocations: 23.92 kB / 0.6836 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001459/0.1413, allocations: 189.7 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.569e-05/0.1414, allocations: 26.56 kB / 0.6838 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.825e-05/0.1414, allocations: 12.92 kB / 0.6838 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.245e-05/0.1414, allocations: 4 kB / 0.6838 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.1414, allocations: 42.48 kB / 0.6838 GB, free: 12.6 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1414, allocations: 0 / 0.6838 GB, free: 12.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001233/0.1416, allocations: 73.44 kB / 0.6839 GB, free: 12.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/0.1416, allocations: 59.47 kB / 0.684 GB, free: 12.45 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.1418, allocations: 206.9 kB / 0.6842 GB, free: 12.24 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.1418, allocations: 25.7 kB / 0.6842 GB, free: 12.21 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.407e-05/0.1419, allocations: 108 kB / 0.6843 GB, free: 12.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.833e-06/0.1419, allocations: 0 / 0.6843 GB, free: 12.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.682e-05/0.1419, allocations: 33.7 kB / 0.6843 GB, free: 12.06 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.29e-05/0.142, allocations: 322.8 kB / 0.6846 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.26e-05/0.1421, allocations: 51.98 kB / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.66e-05/0.1421, allocations: 59.97 kB / 0.6847 GB, free: 11.62 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.339e-05/0.1422, allocations: 90.75 kB / 0.6848 GB, free: 11.54 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1422, allocations: 0 / 0.6848 GB, free: 11.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001589/0.1424, allocations: 171.1 kB / 0.685 GB, free: 11.36 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.1424, allocations: 4 kB / 0.685 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.1424, allocations: 7.984 kB / 0.685 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.448e-06/0.1424, allocations: 0 / 0.685 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.947e-06/0.1424, allocations: 0 / 0.685 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.196e-06/0.1425, allocations: 0 / 0.685 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.448e-05/0.1425, allocations: 19.78 kB / 0.685 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.1425, allocations: 4.062 kB / 0.685 GB, free: 11.33 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.0001069/0.1426, allocations: 126.5 kB / 0.6852 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.54e-05/0.1426, allocations: 19.73 kB / 0.6852 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.531e-05/0.1427, allocations: 66.19 kB / 0.6852 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1427, allocations: 3.984 kB / 0.6852 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1427, allocations: 0 / 0.6852 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.1428, allocations: 0 / 0.6852 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.1429, allocations: 185.6 kB / 0.6854 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1429, allocations: 4.031 kB / 0.6854 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.57e-06/0.1429, allocations: 3.938 kB / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.1429, allocations: 0 / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-06/0.1429, allocations: 4 kB / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1429, allocations: 0 / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.1429, allocations: 0 / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.73e-05/0.143, allocations: 77.03 kB / 0.6855 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.143, allocations: 96.89 kB / 0.6856 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1431, allocations: 3.984 kB / 0.6856 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.419e-05/0.1431, allocations: 0 / 0.6856 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.023e-05/0.1431, allocations: 7.938 kB / 0.6856 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1431, allocations: 0 / 0.6856 GB, free: 10.64 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001054/0.1432, allocations: 152.4 kB / 0.6857 GB, free: 10.49 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1432, allocations: 0 / 0.6857 GB, free: 10.49 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002851/0.1435, allocations: 80 kB / 0.6858 GB, free: 10.41 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.000618/0.1441, allocations: 0.7442 MB / 0.6866 GB, free: 9.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001601/0.1443, allocations: 137.6 kB / 0.6867 GB, free: 9.52 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1443, allocations: 0 / 0.6867 GB, free: 9.52 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.704e-05/0.1443, allocations: 15.98 kB / 0.6867 GB, free: 9.504 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.1445, allocations: 4 kB / 0.6867 GB, free: 9.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.1458, allocations: 1.813 MB / 0.6885 GB, free: 7.613 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.1461, allocations: 0.7041 MB / 0.6892 GB, free: 6.883 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.753e-05/0.1461, allocations: 7.984 kB / 0.6892 GB, free: 6.875 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.6e-05/0.1461, allocations: 27.42 kB / 0.6892 GB, free: 6.848 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1462, allocations: 0 / 0.6892 GB, free: 6.848 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01257/0.1587, allocations: 3.772 MB / 0.6929 GB, free: 3.223 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000227/0.159, allocations: 257.1 kB / 0.6931 GB, free: 2.965 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/1.814, allocations: 0 / 0.6931 GB, free: 2.965 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)