Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-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: translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 95.62 kB / 15.05 MB, free: 1.113 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.001571/0.001571, allocations: 181.3 kB / 15.95 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 223.2 MB / 239.9 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9432/0.9432, allocations: 143.3 MB / 434.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002765/0.0002764, allocations: 12 kB / 0.5158 GB, free: 11.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.146, allocations: 83.4 MB / 0.5973 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.0005711/0.1466, allocations: 246.2 kB / 0.5975 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001751/0.1484, allocations: 1.545 MB / 0.599 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.501e-05/0.1484, allocations: 0 / 0.599 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.1486, allocations: 51.92 kB / 0.5991 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.319e-05/0.1486, allocations: 31.94 kB / 0.5991 GB, free: 5.922 MB / 0.4981 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.000593/0.1492, allocations: 183.5 kB / 0.5993 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.737e-05/0.1493, allocations: 23.97 kB / 0.5993 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.206e-05/0.1493, allocations: 4 kB / 0.5993 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.158e-05/0.1494, allocations: 23.89 kB / 0.5993 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.012e-05/0.1494, allocations: 27.97 kB / 0.5993 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.346e-06/0.1494, allocations: 7.875 kB / 0.5993 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000347/0.1498, allocations: 219.7 kB / 0.5996 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.001e-05/0.1498, allocations: 35.89 kB / 0.5996 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.363e-05/0.1499, allocations: 37.64 kB / 0.5996 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.1501, allocations: 199.6 kB / 0.5998 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.1501, allocations: 0 / 0.5998 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.233e-06/0.1501, allocations: 0 / 0.5998 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.286e-06/0.1502, allocations: 0 / 0.5998 GB, free: 5.168 MB / 0.4981 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.0003551/0.1505, allocations: 423.1 kB / 0.6002 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.8e-05/0.1505, allocations: 8.031 kB / 0.6002 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.669e-05/0.1506, allocations: 7.906 kB / 0.6002 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.1507, allocations: 199.9 kB / 0.6004 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.987e-06/0.1508, allocations: 4 kB / 0.6004 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.1508, allocations: 0 / 0.6004 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.506e-05/0.1508, allocations: 41.62 kB / 0.6005 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.1509, allocations: 0 / 0.6005 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-06/0.1509, allocations: 3.984 kB / 0.6005 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.1509, allocations: 4 kB / 0.6005 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.018e-05/0.1509, allocations: 19.92 kB / 0.6005 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001551/0.1511, allocations: 193.5 kB / 0.6007 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.653e-05/0.1511, allocations: 26.58 kB / 0.6007 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.114e-05/0.1512, allocations: 8.047 kB / 0.6007 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.1512, allocations: 34.56 kB / 0.6007 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1512, allocations: 0 / 0.6007 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001356/0.1513, allocations: 69.53 kB / 0.6008 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.1514, allocations: 55.39 kB / 0.6009 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.1515, allocations: 212 kB / 0.6011 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.1516, allocations: 29.7 kB / 0.6011 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.064e-05/0.1516, allocations: 108 kB / 0.6012 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.803e-06/0.1516, allocations: 0 / 0.6012 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.594e-06/0.1516, allocations: 0 / 0.6012 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.408e-05/0.1517, allocations: 322.8 kB / 0.6015 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.283e-05/0.1518, allocations: 63.91 kB / 0.6016 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.69e-05/0.1519, allocations: 51.98 kB / 0.6016 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.801e-05/0.1519, allocations: 63.92 kB / 0.6017 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1519, allocations: 0 / 0.6017 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001609/0.1521, allocations: 161.5 kB / 0.6018 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.1521, allocations: 4 kB / 0.6018 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.1521, allocations: 4 kB / 0.6018 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.917e-06/0.1521, allocations: 0 / 0.6018 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.24e-05/0.1522, allocations: 3.984 kB / 0.6018 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1522, allocations: 3.984 kB / 0.6019 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.674e-05/0.1522, allocations: 19.69 kB / 0.6019 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.1522, allocations: 0 / 0.6019 GB, free: 2.852 MB / 0.4981 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.1523, allocations: 133.8 kB / 0.602 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.243e-05/0.1524, allocations: 7.906 kB / 0.602 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.1525, allocations: 66.23 kB / 0.6021 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1525, allocations: 0 / 0.6021 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1525, allocations: 3.938 kB / 0.6021 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.1525, allocations: 0 / 0.6021 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.1526, allocations: 185.6 kB / 0.6022 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1526, allocations: 3.953 kB / 0.6023 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.881e-06/0.1526, allocations: 3.984 kB / 0.6023 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1526, allocations: 4.031 kB / 0.6023 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.22e-06/0.1526, allocations: 4 kB / 0.6023 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1526, allocations: 0 / 0.6023 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1526, allocations: 0 / 0.6023 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.428e-05/0.1527, allocations: 84.94 kB / 0.6023 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.876e-05/0.1528, allocations: 84.97 kB / 0.6024 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.1528, allocations: 0 / 0.6024 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.464e-05/0.1528, allocations: 4 kB / 0.6024 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.242e-05/0.1528, allocations: 8.016 kB / 0.6024 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.1528, allocations: 0 / 0.6024 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001024/0.1529, allocations: 143.2 kB / 0.6026 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1529, allocations: 0 / 0.6026 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003038/0.1533, allocations: 87.98 kB / 0.6027 GB, free: 1.941 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004225/0.1537, allocations: 230.9 kB / 0.6029 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001577/0.1539, allocations: 125.7 kB / 0.603 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1539, allocations: 0 / 0.603 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.406e-05/0.1539, allocations: 8 kB / 0.603 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.447e-05/0.154, allocations: 6.25 kB / 0.603 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002788/0.1543, allocations: 219.8 kB / 0.6032 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.1545, allocations: 0.7121 MB / 0.6039 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.59e-05/0.1545, allocations: 0 / 0.6039 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.137e-05/0.1545, allocations: 11.44 kB / 0.6039 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1545, allocations: 0 / 0.6039 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of Templates: time 0.2412/0.3958, allocations: 2.097 MB / 0.606 GB, free: 39.77 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile Environment - environmentSimulation: (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) Environment - environmentSimulation: