Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001043, allocations: 102.5 kB / 15.06 MB, free: 1.098 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.001182/0.001182, allocations: 173.3 kB / 15.95 MB, free: 212 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.357/1.357, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9557/0.9557, allocations: 143.3 MB / 434.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000298/0.000298, allocations: 8 kB / 0.5158 GB, free: 11.33 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1382, allocations: 83.42 MB / 0.5973 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0005273/0.1388, allocations: 246.2 kB / 0.5975 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001741/0.1405, allocations: 1.537 MB / 0.599 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.679e-05/0.1406, allocations: 0 / 0.599 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000114/0.1407, allocations: 23.97 kB / 0.599 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.139e-05/0.1407, allocations: 7.984 kB / 0.599 GB, free: 6.027 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.00059/0.1413, allocations: 183.5 kB / 0.5992 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.235e-05/0.1414, allocations: 19.95 kB / 0.5992 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.25e-05/0.1414, allocations: 4 kB / 0.5992 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.701e-05/0.1414, allocations: 11.92 kB / 0.5992 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.266e-05/0.1415, allocations: 15.94 kB / 0.5993 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.186e-06/0.1415, allocations: 0 / 0.5993 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003511/0.1418, allocations: 227.6 kB / 0.5995 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.144e-05/0.1419, allocations: 19.92 kB / 0.5995 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.316e-05/0.1419, allocations: 29.7 kB / 0.5995 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002582/0.1422, allocations: 195.6 kB / 0.5997 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.1422, allocations: 0 / 0.5997 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.022e-06/0.1422, allocations: 0 / 0.5997 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.126e-06/0.1422, allocations: 4 kB / 0.5997 GB, free: 5.324 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.0003338/0.1425, allocations: 395.3 kB / 0.6001 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.1426, allocations: 12.03 kB / 0.6001 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.852e-05/0.1426, allocations: 3.906 kB / 0.6001 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.1428, allocations: 185.2 kB / 0.6003 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.391e-06/0.1428, allocations: 3.938 kB / 0.6003 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.1428, allocations: 4 kB / 0.6003 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.618e-05/0.1429, allocations: 37.69 kB / 0.6003 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.1429, allocations: 4 kB / 0.6003 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.58e-06/0.1429, allocations: 0 / 0.6003 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-06/0.1429, allocations: 0 / 0.6003 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.816e-05/0.1429, allocations: 19.98 kB / 0.6004 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.1431, allocations: 181.5 kB / 0.6005 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.698e-05/0.1431, allocations: 26.52 kB / 0.6006 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.1432, allocations: 4.062 kB / 0.6006 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.623e-05/0.1432, allocations: 34.56 kB / 0.6006 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 8.31e-07/0.1432, allocations: 0 / 0.6006 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001249/0.1433, allocations: 65.58 kB / 0.6007 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.1434, allocations: 59.34 kB / 0.6007 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.1435, allocations: 163.2 kB / 0.6009 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.108e-05/0.1435, allocations: 25.7 kB / 0.6009 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.093e-05/0.1436, allocations: 92.14 kB / 0.601 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.746e-06/0.1436, allocations: 3.906 kB / 0.601 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.464e-06/0.1436, allocations: 0 / 0.601 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.905e-05/0.1437, allocations: 327 kB / 0.6013 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.709e-05/0.1437, allocations: 39.92 kB / 0.6013 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.796e-05/0.1438, allocations: 39.98 kB / 0.6014 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.992e-05/0.1438, allocations: 51.92 kB / 0.6014 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1438, allocations: 0 / 0.6014 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000133/0.144, allocations: 125.6 kB / 0.6015 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.144, allocations: 10.19 kB / 0.6015 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.144, allocations: 0 / 0.6015 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.228e-06/0.144, allocations: 0 / 0.6015 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.023e-05/0.144, allocations: 64 / 0.6015 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.1441, allocations: 11.98 kB / 0.6016 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.153e-05/0.1441, allocations: 7.844 kB / 0.6016 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.1441, allocations: 0 / 0.6016 GB, free: 3.223 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: 9 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],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.00011/0.1442, allocations: 125.8 kB / 0.6017 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.127e-05/0.1442, allocations: 7.906 kB / 0.6017 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.421e-05/0.1443, allocations: 57.5 kB / 0.6017 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1443, allocations: 7.984 kB / 0.6018 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1443, allocations: 4.031 kB / 0.6018 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-06/0.1444, allocations: 0 / 0.6018 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.869e-05/0.1445, allocations: 173.6 kB / 0.6019 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1445, allocations: 3.953 kB / 0.6019 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.168e-06/0.1445, allocations: 0 / 0.6019 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.1445, allocations: 0 / 0.6019 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-06/0.1445, allocations: 4 kB / 0.6019 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.175e-06/0.1445, allocations: 4 kB / 0.6019 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.1445, allocations: 3.984 kB / 0.6019 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.286e-05/0.1446, allocations: 84.97 kB / 0.602 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.663e-05/0.1446, allocations: 84.97 kB / 0.6021 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.134e-05/0.1446, allocations: 0 / 0.6021 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.357e-05/0.1447, allocations: 4 kB / 0.6021 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.17e-05/0.1447, allocations: 0 / 0.6021 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.1447, allocations: 0 / 0.6021 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.736e-05/0.1448, allocations: 125.3 kB / 0.6022 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1448, allocations: 0 / 0.6022 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002987/0.1451, allocations: 87.98 kB / 0.6023 GB, free: 2.359 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.0004186/0.1455, allocations: 224.5 kB / 0.6025 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001416/0.1457, allocations: 93.67 kB / 0.6026 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1457, allocations: 4.062 kB / 0.6026 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.52e-05/0.1457, allocations: 19.92 kB / 0.6026 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.033e-05/0.1458, allocations: 4 kB / 0.6026 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002456/0.146, allocations: 163.2 kB / 0.6028 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002094/0.1463, allocations: 0.6965 MB / 0.6035 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.747e-05/0.1463, allocations: 8.047 kB / 0.6035 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.199e-05/0.1463, allocations: 11.44 kB / 0.6035 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1463, allocations: 0 / 0.6035 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of Templates: time 0.2296/0.3759, allocations: 2.067 MB / 0.6055 GB, free: 40.39 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile Environment - environmentSimulation: (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) Environment - environmentSimulation: