Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.conf.json 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/IBPSA 4.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 179 kB / 13.19 MB, free: 2.133 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4767/0.4767, allocations: 90.8 MB / 104.5 MB, free: 13.92 MB / 90.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: 221.3 MB / 348.3 MB, free: 12.54 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008291/0.0008292, allocations: 95.92 kB / 421.2 MB, free: 5.664 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.52e-05/2.538e-05, allocations: 0 / 0.4897 GB, free: 46.52 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1325, allocations: 72.32 MB / 0.5603 GB, free: 6.312 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.41/0.5426, allocations: 103.2 MB / 0.6611 GB, free: 4.66 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/0.5428, allocations: 75.02 kB / 0.6612 GB, free: 4.621 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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 FrontEnd - DAE generated: time 0.01555/0.5584, allocations: 5.728 MB / 0.6668 GB, free: 15.72 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.5584, allocations: 0 / 0.6668 GB, free: 15.72 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.5584, allocations: 0 / 0.6668 GB, free: 15.72 MB / 474.7 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.0003645/0.5588, allocations: 416.8 kB / 0.6672 GB, free: 15.27 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.5589, allocations: 15.98 kB / 0.6672 GB, free: 15.26 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.452e-05/0.5589, allocations: 34.52 kB / 0.6672 GB, free: 15.21 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.672e-05/0.5589, allocations: 7.906 kB / 0.6672 GB, free: 15.21 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001713/0.5591, allocations: 190.1 kB / 0.6674 GB, free: 14.98 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.837e-06/0.5591, allocations: 0 / 0.6674 GB, free: 14.98 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.472e-05/0.5591, allocations: 4 kB / 0.6674 GB, free: 14.98 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.5593, allocations: 41.62 kB / 0.6674 GB, free: 14.93 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.5593, allocations: 0 / 0.6674 GB, free: 14.93 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-06/0.5593, allocations: 0 / 0.6674 GB, free: 14.93 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.5593, allocations: 7.953 kB / 0.6674 GB, free: 14.93 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.904e-05/0.5593, allocations: 19.97 kB / 0.6675 GB, free: 14.91 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001659/0.5595, allocations: 179.2 kB / 0.6676 GB, free: 14.69 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.566e-05/0.5596, allocations: 30.5 kB / 0.6677 GB, free: 14.65 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.737e-05/0.5596, allocations: 12.91 kB / 0.6677 GB, free: 14.64 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.5596, allocations: 7.984 kB / 0.6677 GB, free: 14.63 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/0.5597, allocations: 34.25 kB / 0.6677 GB, free: 14.59 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.5597, allocations: 7.938 kB / 0.6677 GB, free: 14.58 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001391/0.5598, allocations: 53.58 kB / 0.6678 GB, free: 14.52 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.5599, allocations: 63.34 kB / 0.6678 GB, free: 14.45 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.56, allocations: 147 kB / 0.668 GB, free: 14.31 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.56, allocations: 25.7 kB / 0.668 GB, free: 14.28 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.603e-05/0.5601, allocations: 93.56 kB / 0.6681 GB, free: 14.19 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.5601, allocations: 10.91 kB / 0.6681 GB, free: 14.18 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-06/0.5601, allocations: 0 / 0.6681 GB, free: 14.18 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.928e-05/0.5602, allocations: 317.6 kB / 0.6684 GB, free: 13.87 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.056e-05/0.5603, allocations: 42.59 kB / 0.6684 GB, free: 13.83 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.735e-05/0.5603, allocations: 42.34 kB / 0.6685 GB, free: 13.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.784e-05/0.5604, allocations: 41.52 kB / 0.6685 GB, free: 13.77 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.5604, allocations: 0 / 0.6685 GB, free: 13.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001563/0.5605, allocations: 131 kB / 0.6686 GB, free: 13.64 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.5606, allocations: 4 kB / 0.6687 GB, free: 13.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/0.5606, allocations: 7.984 kB / 0.6687 GB, free: 13.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.5606, allocations: 7.922 kB / 0.6687 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.153e-05/0.5606, allocations: 64 / 0.6687 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.5606, allocations: 4 kB / 0.6687 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.454e-05/0.5607, allocations: 11.86 kB / 0.6687 GB, free: 13.61 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.5607, allocations: 4 kB / 0.6687 GB, free: 13.61 MB / 474.7 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 (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 () * 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 6.817e-05/0.5608, allocations: 105 kB / 0.6688 GB, free: 13.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.271e-05/0.5608, allocations: 11.89 kB / 0.6688 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.5609, allocations: 71.69 kB / 0.6689 GB, free: 13.41 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.5609, allocations: 0 / 0.6689 GB, free: 13.41 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.5609, allocations: 4.031 kB / 0.6689 GB, free: 13.41 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.561, allocations: 4 kB / 0.6689 GB, free: 13.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.712e-05/0.5611, allocations: 168.2 kB / 0.669 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.5611, allocations: 4 kB / 0.669 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.6e-06/0.5611, allocations: 0 / 0.669 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.5611, allocations: 0 / 0.669 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.5611, allocations: 0 / 0.669 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.5611, allocations: 3.984 kB / 0.669 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.5611, allocations: 0 / 0.669 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.204e-05/0.5612, allocations: 88.84 kB / 0.6691 GB, free: 13.09 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.038e-05/0.5613, allocations: 85.02 kB / 0.6692 GB, free: 12.98 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.5613, allocations: 3.938 kB / 0.6692 GB, free: 12.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.188e-05/0.5613, allocations: 0 / 0.6692 GB, free: 12.98 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.478e-05/0.5613, allocations: 7.922 kB / 0.6692 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.5613, allocations: 11.94 kB / 0.6692 GB, free: 12.96 MB / 474.7 MB Notification: Performance of sorting global known variables: time 7.409e-05/0.5614, allocations: 124.1 kB / 0.6693 GB, free: 12.85 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5614, allocations: 0 / 0.6693 GB, free: 12.85 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0003335/0.5618, allocations: 111 kB / 0.6695 GB, free: 12.75 MB / 474.7 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 () * 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.0007398/0.5625, allocations: 0.7575 MB / 0.6702 GB, free: 11.99 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001557/0.5627, allocations: 102.8 kB / 0.6703 GB, free: 11.89 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.5627, allocations: 0 / 0.6703 GB, free: 11.89 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 2.291e-05/0.5627, allocations: 11.98 kB / 0.6703 GB, free: 11.88 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.1e-05/0.5628, allocations: 7.062 kB / 0.6703 GB, free: 11.88 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003925/0.5632, allocations: 194.1 kB / 0.6705 GB, free: 11.65 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.5634, allocations: 0.7004 MB / 0.6712 GB, free: 10.93 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 2.795e-05/0.5635, allocations: 12.12 kB / 0.6712 GB, free: 10.91 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.562e-05/0.5635, allocations: 24.3 kB / 0.6712 GB, free: 10.9 MB / 474.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5635, allocations: 3.938 kB / 0.6712 GB, free: 10.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01457/0.5781, allocations: 3.389 MB / 0.6745 GB, free: 7.629 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001996/0.5783, allocations: 194.7 kB / 0.6747 GB, free: 7.398 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.531/2.109, allocations: 3.938 kB / 0.6747 GB, free: 7.395 MB / 474.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)