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.001193/0.001193, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001262/0.001262, allocations: 195.3 kB / 16.14 MB, free: 6.715 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.234/1.234, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001926/0.001926, allocations: 290.8 kB / 290.2 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8807/0.8807, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 91.77 kB / 0.5946 GB, free: 28.37 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1356, allocations: 86.98 MB / 0.6795 GB, free: 1.109 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001541/0.1372, allocations: 0.5704 MB / 0.6801 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.1391, allocations: 1.64 MB / 0.6817 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.192e-05/0.1391, allocations: 0.5938 kB / 0.6817 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.1393, allocations: 56.62 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.259e-05/0.1393, allocations: 36.77 kB / 0.6818 GB, free: 14.8 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.0006112/0.1399, allocations: 192.4 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.007e-05/0.14, allocations: 35.89 kB / 0.682 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.642e-05/0.14, allocations: 8.641 kB / 0.682 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.706e-05/0.1401, allocations: 11.98 kB / 0.682 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.078e-05/0.1401, allocations: 47.89 kB / 0.6821 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.165e-05/0.1401, allocations: 0 / 0.6821 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003841/0.1405, allocations: 271.6 kB / 0.6823 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.608e-05/0.1406, allocations: 31.91 kB / 0.6824 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.017e-05/0.1406, allocations: 27.69 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003138/0.1409, allocations: 291.5 kB / 0.6827 GB, free: 13.91 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.141, allocations: 0 / 0.6827 GB, free: 13.91 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.141, allocations: 0 / 0.6827 GB, free: 13.91 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.035e-06/0.141, allocations: 0 / 0.6827 GB, free: 13.91 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.0003644/0.1413, allocations: 435 kB / 0.6831 GB, free: 13.44 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.1414, allocations: 8.031 kB / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.984e-05/0.1414, allocations: 30.75 kB / 0.6831 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.615e-05/0.1414, allocations: 12.75 kB / 0.6831 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.1416, allocations: 188.7 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.765e-06/0.1416, allocations: 4.375 kB / 0.6833 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.892e-06/0.1416, allocations: 384 / 0.6833 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.081e-05/0.1417, allocations: 45.81 kB / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.67e-06/0.1417, allocations: 0 / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-06/0.1417, allocations: 4 kB / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.1417, allocations: 3.938 kB / 0.6834 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.679e-05/0.1418, allocations: 16 kB / 0.6834 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001489/0.1419, allocations: 193.6 kB / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.835e-05/0.142, allocations: 22.58 kB / 0.6836 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.055e-05/0.142, allocations: 16.91 kB / 0.6836 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.142, allocations: 7.938 kB / 0.6836 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.142, allocations: 38.5 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.904e-06/0.142, allocations: 3.984 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001252/0.1422, allocations: 81.42 kB / 0.6837 GB, free: 12.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.505e-05/0.1422, allocations: 51.41 kB / 0.6838 GB, free: 12.58 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.1424, allocations: 203.5 kB / 0.684 GB, free: 12.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.1424, allocations: 25.7 kB / 0.684 GB, free: 12.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.142e-05/0.1424, allocations: 108 kB / 0.6841 GB, free: 12.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.672e-06/0.1425, allocations: 0 / 0.6841 GB, free: 12.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.593e-05/0.1425, allocations: 33.83 kB / 0.6841 GB, free: 12.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.905e-05/0.1426, allocations: 326.8 kB / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.864e-05/0.1427, allocations: 55.97 kB / 0.6845 GB, free: 11.81 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.49e-05/0.1427, allocations: 51.98 kB / 0.6845 GB, free: 11.76 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.164e-05/0.1428, allocations: 92.7 kB / 0.6846 GB, free: 11.67 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.1428, allocations: 0 / 0.6846 GB, free: 11.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001569/0.143, allocations: 170.8 kB / 0.6848 GB, free: 11.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.143, allocations: 4 kB / 0.6848 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.143, allocations: 4 kB / 0.6848 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.143, allocations: 4.062 kB / 0.6848 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.427e-06/0.143, allocations: 0 / 0.6848 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.143, allocations: 0 / 0.6848 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.381e-05/0.1431, allocations: 11.84 kB / 0.6848 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.787e-06/0.1431, allocations: 3.984 kB / 0.6848 GB, free: 11.47 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.0001225/0.1432, allocations: 130.5 kB / 0.6849 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.508e-05/0.1432, allocations: 15.75 kB / 0.685 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.421e-05/0.1433, allocations: 74.17 kB / 0.685 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.1433, allocations: 0 / 0.685 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.1433, allocations: 0 / 0.685 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1433, allocations: 0 / 0.685 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.1435, allocations: 177.7 kB / 0.6852 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1435, allocations: 0 / 0.6852 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.27e-06/0.1435, allocations: 3.938 kB / 0.6852 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.1435, allocations: 0 / 0.6852 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-06/0.1435, allocations: 3.984 kB / 0.6852 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1435, allocations: 4 kB / 0.6852 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1435, allocations: 0 / 0.6852 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.21e-05/0.1436, allocations: 85 kB / 0.6853 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.348e-05/0.1436, allocations: 92.86 kB / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.1436, allocations: 0 / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.331e-05/0.1436, allocations: 7.938 kB / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.011e-05/0.1437, allocations: 4 kB / 0.6854 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.1437, allocations: 0 / 0.6854 GB, free: 10.78 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.82e-05/0.1438, allocations: 152.3 kB / 0.6855 GB, free: 10.63 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1438, allocations: 8.031 kB / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002873/0.1441, allocations: 83.98 kB / 0.6856 GB, free: 10.54 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.000641/0.1447, allocations: 0.7497 MB / 0.6864 GB, free: 9.785 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001582/0.1449, allocations: 129.6 kB / 0.6865 GB, free: 9.652 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1449, allocations: 4 kB / 0.6865 GB, free: 9.648 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.307e-05/0.1449, allocations: 8 kB / 0.6865 GB, free: 9.641 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.1451, allocations: 4 kB / 0.6865 GB, free: 9.637 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.1464, allocations: 1.821 MB / 0.6883 GB, free: 7.738 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.1467, allocations: 0.7043 MB / 0.689 GB, free: 7.008 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.783e-05/0.1467, allocations: 0 / 0.689 GB, free: 7.008 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.438e-05/0.1467, allocations: 27.42 kB / 0.689 GB, free: 6.98 MB / 494.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1467, allocations: 0 / 0.689 GB, free: 6.98 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3006/0.4473, allocations: 3.743 MB / 0.6926 GB, free: 3.359 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/0.4476, allocations: 249.3 kB / 0.6929 GB, free: 3.109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/2.127, allocations: 0 / 0.6929 GB, free: 3.109 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)