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.00104/0.00104, 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.001081/0.001081, allocations: 191.8 kB / 16.14 MB, free: 6.707 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.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001911/0.001911, allocations: 286.9 kB / 290.2 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8873/0.8873, allocations: 169.2 MB / 0.4977 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 88.33 kB / 0.5946 GB, free: 28.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1479, allocations: 86.99 MB / 0.6795 GB, free: 1.055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.00174/0.1497, allocations: 0.5725 MB / 0.6801 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.1518, allocations: 1.632 MB / 0.6817 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.632e-05/0.1518, allocations: 4 kB / 0.6817 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.1519, allocations: 19.97 kB / 0.6817 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.522e-05/0.152, allocations: 19.91 kB / 0.6817 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.0006984/0.1527, allocations: 187.6 kB / 0.6819 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.652e-05/0.1527, allocations: 19.97 kB / 0.6819 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.782e-05/0.1528, allocations: 0 / 0.6819 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.934e-05/0.1528, allocations: 23.92 kB / 0.682 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.625e-05/0.1529, allocations: 19.91 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.1529, allocations: 0 / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004457/0.1533, allocations: 271.6 kB / 0.6822 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.394e-05/0.1534, allocations: 19.92 kB / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.48e-05/0.1534, allocations: 15.81 kB / 0.6823 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003421/0.1538, allocations: 275.6 kB / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.1538, allocations: 0 / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.1538, allocations: 0 / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.066e-06/0.1538, allocations: 4 kB / 0.6825 GB, free: 13.98 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.0003824/0.1542, allocations: 411.1 kB / 0.6829 GB, free: 13.53 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.1542, allocations: 12.03 kB / 0.6829 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.918e-05/0.1543, allocations: 30.75 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.599e-05/0.1543, allocations: 8.844 kB / 0.683 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001311/0.1544, allocations: 180.3 kB / 0.6831 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.1544, allocations: 4.375 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.546e-06/0.1544, allocations: 4.359 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.263e-05/0.1545, allocations: 41.81 kB / 0.6832 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.1546, allocations: 4 kB / 0.6832 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.871e-06/0.1546, allocations: 0 / 0.6832 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.1546, allocations: 0 / 0.6832 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.712e-05/0.1546, allocations: 23.88 kB / 0.6832 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001426/0.1547, allocations: 169.7 kB / 0.6834 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.787e-05/0.1548, allocations: 26.56 kB / 0.6834 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.947e-05/0.1548, allocations: 12.92 kB / 0.6834 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.1549, allocations: 4 kB / 0.6834 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.1549, allocations: 42.5 kB / 0.6835 GB, free: 12.86 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.1549, allocations: 4 kB / 0.6835 GB, free: 12.85 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001296/0.155, allocations: 65.52 kB / 0.6835 GB, free: 12.78 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.804e-05/0.1551, allocations: 51.41 kB / 0.6836 GB, free: 12.72 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.1552, allocations: 168.4 kB / 0.6837 GB, free: 12.55 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.1552, allocations: 25.7 kB / 0.6838 GB, free: 12.52 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.577e-05/0.1553, allocations: 92.14 kB / 0.6839 GB, free: 12.42 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.478e-06/0.1553, allocations: 4.031 kB / 0.6839 GB, free: 12.42 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.715e-05/0.1553, allocations: 33.7 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.175e-05/0.1554, allocations: 322.8 kB / 0.6842 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.493e-05/0.1555, allocations: 35.98 kB / 0.6842 GB, free: 12.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.119e-05/0.1555, allocations: 39.98 kB / 0.6843 GB, free: 11.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.462e-05/0.1556, allocations: 72.75 kB / 0.6843 GB, free: 11.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1556, allocations: 0 / 0.6843 GB, free: 11.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001291/0.1557, allocations: 129.5 kB / 0.6845 GB, free: 11.77 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.1558, allocations: 11.98 kB / 0.6845 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.1558, allocations: 4.062 kB / 0.6845 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.477e-06/0.1558, allocations: 0 / 0.6845 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.103e-05/0.1558, allocations: 0 / 0.6845 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.1558, allocations: 4 kB / 0.6845 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.19e-05/0.1559, allocations: 7.875 kB / 0.6845 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.1559, allocations: 0 / 0.6845 GB, free: 11.75 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.0001273/0.156, allocations: 122.5 kB / 0.6846 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.156, allocations: 11.84 kB / 0.6846 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.1561, allocations: 65.48 kB / 0.6847 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1561, allocations: 4 kB / 0.6847 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1561, allocations: 3.938 kB / 0.6847 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.1561, allocations: 0 / 0.6847 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001056/0.1563, allocations: 169.6 kB / 0.6848 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1563, allocations: 0 / 0.6848 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.424e-06/0.1563, allocations: 7.922 kB / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1563, allocations: 0 / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.1563, allocations: 4 kB / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1563, allocations: 0 / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1563, allocations: 4.031 kB / 0.6849 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.449e-05/0.1564, allocations: 77.03 kB / 0.6849 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.651e-05/0.1564, allocations: 84.95 kB / 0.685 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.1564, allocations: 0 / 0.685 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.119e-05/0.1565, allocations: 7.938 kB / 0.685 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.168e-05/0.1565, allocations: 3.984 kB / 0.685 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-06/0.1565, allocations: 4 kB / 0.685 GB, free: 11.08 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.045e-05/0.1566, allocations: 129.2 kB / 0.6852 GB, free: 10.96 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1566, allocations: 0 / 0.6852 GB, free: 10.96 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003035/0.1569, allocations: 87.98 kB / 0.6852 GB, free: 10.87 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.0006627/0.1576, allocations: 0.7406 MB / 0.686 GB, free: 10.12 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001451/0.1577, allocations: 101.6 kB / 0.6861 GB, free: 10.02 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1577, allocations: 0 / 0.6861 GB, free: 10.02 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.455e-05/0.1577, allocations: 8 kB / 0.6861 GB, free: 10.01 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.1579, allocations: 4 kB / 0.6861 GB, free: 10.01 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.1592, allocations: 1.549 MB / 0.6876 GB, free: 8.383 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.1594, allocations: 0.6926 MB / 0.6883 GB, free: 7.664 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.861e-05/0.1595, allocations: 0 / 0.6883 GB, free: 7.664 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.168e-05/0.1595, allocations: 19.42 kB / 0.6883 GB, free: 7.645 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1595, allocations: 0 / 0.6883 GB, free: 7.645 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3056/0.4651, allocations: 3.353 MB / 0.6916 GB, free: 4.414 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002237/0.4653, allocations: 250.3 kB / 0.6918 GB, free: 4.16 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/2.138, allocations: 0 / 0.6918 GB, free: 4.16 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)