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.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.001734/0.001734, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 191.6 kB / 16.53 MB, free: 6.391 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.442/1.442, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.974/0.974, allocations: 143 MB / 433.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 59.91 kB / 0.5143 GB, free: 11.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1419, allocations: 82.05 MB / 0.5944 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001557/0.1435, allocations: 0.5029 MB / 0.5949 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002013/0.1455, allocations: 1.598 MB / 0.5964 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.92e-05/0.1456, allocations: 7.938 kB / 0.5964 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.1457, allocations: 19.91 kB / 0.5965 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.425e-05/0.1457, allocations: 11.92 kB / 0.5965 GB, free: 7.348 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/IBPSA/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.0007867/0.1465, allocations: 254.7 kB / 0.5967 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.045e-05/0.1466, allocations: 19.92 kB / 0.5967 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.242e-05/0.1466, allocations: 3.984 kB / 0.5967 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.003e-05/0.1467, allocations: 19.91 kB / 0.5968 GB, free: 7.059 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.86e-05/0.1467, allocations: 19.92 kB / 0.5968 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.173e-05/0.1467, allocations: 0 / 0.5968 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004564/0.1472, allocations: 291.5 kB / 0.5971 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.55e-05/0.1473, allocations: 11.98 kB / 0.5971 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.665e-05/0.1473, allocations: 19.81 kB / 0.5971 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003435/0.1476, allocations: 275.4 kB / 0.5974 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1477, allocations: 0 / 0.5974 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.313e-06/0.1477, allocations: 0 / 0.5974 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.1477, allocations: 0 / 0.5974 GB, free: 6.453 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.0003892/0.1481, allocations: 411.4 kB / 0.5977 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.1481, allocations: 12.03 kB / 0.5978 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.576e-05/0.1481, allocations: 34.75 kB / 0.5978 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.496e-05/0.1482, allocations: 4.844 kB / 0.5978 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.1483, allocations: 188.1 kB / 0.598 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.273e-06/0.1483, allocations: 384 / 0.598 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.1484, allocations: 384 / 0.598 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.094e-05/0.1484, allocations: 37.83 kB / 0.598 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.1485, allocations: 4 kB / 0.598 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.182e-06/0.1485, allocations: 0 / 0.598 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.196e-06/0.1485, allocations: 4 kB / 0.598 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.646e-05/0.1485, allocations: 15.98 kB / 0.598 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001523/0.1487, allocations: 181.6 kB / 0.5982 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.16e-05/0.1487, allocations: 26.52 kB / 0.5982 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.186e-05/0.1487, allocations: 16.91 kB / 0.5982 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.1488, allocations: 4 kB / 0.5983 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.1488, allocations: 34.5 kB / 0.5983 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1488, allocations: 0 / 0.5983 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001259/0.1489, allocations: 65.58 kB / 0.5983 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.822e-05/0.149, allocations: 51.41 kB / 0.5984 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.1491, allocations: 173.2 kB / 0.5986 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.1491, allocations: 29.64 kB / 0.5986 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.865e-05/0.1492, allocations: 96.03 kB / 0.5987 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.829e-06/0.1492, allocations: 7.938 kB / 0.5987 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.295e-05/0.1493, allocations: 25.7 kB / 0.5987 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.952e-05/0.1494, allocations: 322.8 kB / 0.599 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.829e-05/0.1494, allocations: 40.11 kB / 0.5991 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.015e-05/0.1495, allocations: 43.92 kB / 0.5991 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.071e-05/0.1496, allocations: 68.83 kB / 0.5992 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1496, allocations: 0 / 0.5992 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000138/0.1497, allocations: 121.5 kB / 0.5993 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.1497, allocations: 4 kB / 0.5993 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.1497, allocations: 4 kB / 0.5993 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.1498, allocations: 7.922 kB / 0.5993 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.025e-05/0.1498, allocations: 0 / 0.5993 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.1498, allocations: 0 / 0.5993 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.403e-05/0.1498, allocations: 15.91 kB / 0.5993 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.1498, allocations: 0 / 0.5993 GB, free: 4.215 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 (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.0001311/0.15, allocations: 129.8 kB / 0.5994 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.234e-05/0.15, allocations: 7.844 kB / 0.5994 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.643e-05/0.1501, allocations: 57.56 kB / 0.5995 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1501, allocations: 3.984 kB / 0.5995 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1501, allocations: 0 / 0.5995 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1501, allocations: 4.031 kB / 0.5995 GB, free: 4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.1502, allocations: 165.7 kB / 0.5997 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1502, allocations: 0 / 0.5997 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.691e-06/0.1502, allocations: 3.938 kB / 0.5997 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1502, allocations: 0 / 0.5997 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.1502, allocations: 7.922 kB / 0.5997 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1503, allocations: 0 / 0.5997 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1503, allocations: 0 / 0.5997 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.896e-05/0.1503, allocations: 81.03 kB / 0.5998 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.615e-05/0.1504, allocations: 88.95 kB / 0.5998 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.1504, allocations: 0 / 0.5998 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.334e-05/0.1504, allocations: 4 kB / 0.5998 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.131e-05/0.1504, allocations: 0 / 0.5998 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.1504, allocations: 4 kB / 0.5998 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.606e-05/0.1505, allocations: 134.7 kB / 0.6 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1505, allocations: 0 / 0.6 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003035/0.1508, allocations: 83.98 kB / 0.6001 GB, free: 3.355 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 (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.0006611/0.1515, allocations: 0.7492 MB / 0.6008 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001508/0.1517, allocations: 105.7 kB / 0.6009 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.1517, allocations: 0 / 0.6009 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.594e-05/0.1517, allocations: 8 kB / 0.6009 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.1519, allocations: 4 kB / 0.6009 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.1531, allocations: 1.532 MB / 0.6024 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002314/0.1533, allocations: 0.6962 MB / 0.6031 GB, free: 144 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.717e-05/0.1534, allocations: 4 kB / 0.6031 GB, free: 140 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.423e-05/0.1534, allocations: 23.42 kB / 0.6031 GB, free: 120 kB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1534, allocations: 192 / 0.6031 GB, free: 120 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2404/0.3938, allocations: 3.455 MB / 0.6065 GB, free: 43.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.497/7.891, allocations: 3.703 kB / 0.6065 GB, free: 43.36 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)