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.001193/0.001193, 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.0009404/0.0009405, allocations: 189 kB / 16.25 MB, free: 6.625 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.239/1.239, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001921/0.001921, allocations: 282.7 kB / 290.3 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8808/0.8808, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 90.06 kB / 0.5948 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1345, allocations: 86.98 MB / 0.6797 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001526/0.136, allocations: 0.569 MB / 0.6803 GB, free: 420 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001841/0.1379, allocations: 1.612 MB / 0.6818 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.343e-05/0.1379, allocations: 0.5625 kB / 0.6818 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001147/0.138, allocations: 16.59 kB / 0.6819 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.205e-05/0.1381, allocations: 11.92 kB / 0.6819 GB, free: 14.75 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.0006979/0.1388, allocations: 218 kB / 0.6821 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.779e-05/0.1388, allocations: 31.91 kB / 0.6821 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.083e-05/0.1389, allocations: 4 kB / 0.6821 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.502e-05/0.1389, allocations: 15.92 kB / 0.6821 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.123e-05/0.1389, allocations: 15.92 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.957e-06/0.139, allocations: 0 / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003912/0.1394, allocations: 287.6 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.445e-05/0.1394, allocations: 23.91 kB / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.15e-05/0.1394, allocations: 15.81 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003206/0.1398, allocations: 279.6 kB / 0.6827 GB, free: 13.89 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.1398, allocations: 4 kB / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1398, allocations: 0 / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.1398, allocations: 0 / 0.6827 GB, free: 13.88 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.0003595/0.1402, allocations: 411.1 kB / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.1402, allocations: 12.03 kB / 0.6831 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.508e-05/0.1402, allocations: 30.75 kB / 0.6832 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.135e-05/0.1403, allocations: 4.844 kB / 0.6832 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.1404, allocations: 176.3 kB / 0.6833 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.702e-06/0.1404, allocations: 384 / 0.6833 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-06/0.1404, allocations: 4.375 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.563e-05/0.1405, allocations: 45.81 kB / 0.6834 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.57e-06/0.1405, allocations: 3.938 kB / 0.6834 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.18e-06/0.1405, allocations: 4 kB / 0.6834 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.805e-06/0.1405, allocations: 0 / 0.6834 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.458e-05/0.1406, allocations: 15.94 kB / 0.6834 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001408/0.1407, allocations: 169.7 kB / 0.6836 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.028e-05/0.1407, allocations: 26.56 kB / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.843e-05/0.1408, allocations: 20.86 kB / 0.6836 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.1408, allocations: 4 kB / 0.6836 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.1408, allocations: 34.5 kB / 0.6837 GB, free: 12.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.1408, allocations: 0 / 0.6837 GB, free: 12.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001272/0.141, allocations: 69.52 kB / 0.6837 GB, free: 12.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.141, allocations: 55.41 kB / 0.6838 GB, free: 12.63 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.1411, allocations: 168.4 kB / 0.6839 GB, free: 12.46 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.1411, allocations: 29.83 kB / 0.684 GB, free: 12.42 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.949e-05/0.1412, allocations: 96.12 kB / 0.6841 GB, free: 12.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.216e-06/0.1412, allocations: 3.906 kB / 0.6841 GB, free: 12.32 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.535e-05/0.1412, allocations: 25.7 kB / 0.6841 GB, free: 12.29 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1414, allocations: 322.8 kB / 0.6844 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.32e-05/0.1414, allocations: 35.98 kB / 0.6844 GB, free: 11.93 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.99e-05/0.1414, allocations: 47.92 kB / 0.6845 GB, free: 11.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.29e-05/0.1415, allocations: 68.81 kB / 0.6845 GB, free: 11.81 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1415, allocations: 4.031 kB / 0.6845 GB, free: 11.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000135/0.1417, allocations: 137.4 kB / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.1417, allocations: 8 kB / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.1417, allocations: 0 / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.406e-06/0.1417, allocations: 0 / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.957e-06/0.1417, allocations: 0 / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.1417, allocations: 0 / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.097e-05/0.1418, allocations: 7.938 kB / 0.6847 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.1418, allocations: 0 / 0.6847 GB, free: 11.65 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.0001105/0.1419, allocations: 126.5 kB / 0.6848 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.246e-05/0.1419, allocations: 11.84 kB / 0.6848 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.001e-05/0.142, allocations: 61.48 kB / 0.6849 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.142, allocations: 3.984 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.142, allocations: 3.938 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-06/0.142, allocations: 4 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.1421, allocations: 177.6 kB / 0.6851 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1421, allocations: 0 / 0.6851 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.4e-06/0.1421, allocations: 3.938 kB / 0.6851 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1422, allocations: 32 / 0.6851 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-06/0.1422, allocations: 4 kB / 0.6851 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1422, allocations: 0 / 0.6851 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1422, allocations: 7.938 kB / 0.6851 GB, free: 11.19 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.528e-05/0.1422, allocations: 73.03 kB / 0.6851 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-05/0.1423, allocations: 88.95 kB / 0.6852 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.055e-05/0.1423, allocations: 0 / 0.6852 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.175e-05/0.1423, allocations: 0 / 0.6852 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.317e-05/0.1423, allocations: 8.016 kB / 0.6852 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.1424, allocations: 7.938 kB / 0.6852 GB, free: 10.98 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.126e-05/0.1424, allocations: 120.7 kB / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1424, allocations: 0 / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002823/0.1427, allocations: 83.98 kB / 0.6854 GB, free: 10.78 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.000622/0.1433, allocations: 0.7422 MB / 0.6862 GB, free: 10.03 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001359/0.1435, allocations: 97.67 kB / 0.6863 GB, free: 9.926 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1435, allocations: 0 / 0.6863 GB, free: 9.926 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.617e-05/0.1435, allocations: 15.92 kB / 0.6863 GB, free: 9.91 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.1437, allocations: 11.42 kB / 0.6863 GB, free: 9.902 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.1448, allocations: 1.529 MB / 0.6878 GB, free: 8.297 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.1451, allocations: 0.6924 MB / 0.6884 GB, free: 7.578 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.848e-05/0.1451, allocations: 7.984 kB / 0.6885 GB, free: 7.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.84e-05/0.1451, allocations: 19.42 kB / 0.6885 GB, free: 7.551 MB / 494.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1451, allocations: 0 / 0.6885 GB, free: 7.551 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01188/0.157, allocations: 3.389 MB / 0.6918 GB, free: 4.309 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001732/0.1572, allocations: 253 kB / 0.692 GB, free: 4.055 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.634/1.791, allocations: 0 / 0.692 GB, free: 4.055 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)