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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 189.9 kB / 7.802 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4696/0.4696, allocations: 90.84 MB / 99.06 MB, free: 14.93 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.314/1.314, allocations: 221.4 MB / 342.7 MB, free: 5.285 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.0009908/0.0009908, allocations: 104.1 kB / 415.5 MB, free: 6.445 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1711/0.1721, allocations: 78.44 MB / 493.9 MB, free: 7.996 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.5626, allocations: 72.3 MB / 0.553 GB, free: 73.37 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1193/0.682, allocations: 102.5 MB / 0.653 GB, free: 7.516 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.6822, allocations: 75.95 kB / 0.6531 GB, free: 7.441 MB / 474.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: 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.01732/0.6996, allocations: 5.844 MB / 0.6588 GB, free: 1.59 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.6996, allocations: 8.75 kB / 0.6588 GB, free: 1.582 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.367e-05/0.6996, allocations: 7.906 kB / 0.6588 GB, free: 1.574 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.6998, allocations: 191.6 kB / 0.659 GB, free: 1.348 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.6999, allocations: 0 / 0.659 GB, free: 1.348 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.6999, allocations: 3.906 kB / 0.659 GB, free: 1.344 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.007e-05/0.7, allocations: 28.72 kB / 0.659 GB, free: 1.316 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.036e-05/0.7, allocations: 46.58 kB / 0.6591 GB, free: 1.266 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.7, allocations: 0 / 0.6591 GB, free: 1.266 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.7001, allocations: 0.9375 kB / 0.6591 GB, free: 1.266 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.7001, allocations: 0 / 0.6591 GB, free: 1.266 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001571/0.7002, allocations: 156.5 kB / 0.6592 GB, free: 1.078 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.875e-05/0.7003, allocations: 32.41 kB / 0.6593 GB, free: 1.039 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.053e-05/0.7003, allocations: 20.84 kB / 0.6593 GB, free: 1.016 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.7004, allocations: 0 / 0.6593 GB, free: 1.016 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.7004, allocations: 35.06 kB / 0.6593 GB, free: 0.9727 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.7004, allocations: 0 / 0.6593 GB, free: 0.9727 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001783/0.7006, allocations: 59.17 kB / 0.6594 GB, free: 0.9102 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.7006, allocations: 51.41 kB / 0.6594 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.7007, allocations: 161.5 kB / 0.6596 GB, free: 0.6875 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.7008, allocations: 25.7 kB / 0.6596 GB, free: 0.6562 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.784e-05/0.7008, allocations: 84.67 kB / 0.6597 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.618e-06/0.7008, allocations: 4.625 kB / 0.6597 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.7008, allocations: 0 / 0.6597 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.701, allocations: 323.6 kB / 0.66 GB, free: 248 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.274e-05/0.701, allocations: 44.59 kB / 0.66 GB, free: 204 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.019e-05/0.7011, allocations: 39.98 kB / 0.6601 GB, free: 164 kB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.7012, allocations: 49.78 kB / 0.6601 GB, free: 120 kB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.7012, allocations: 0 / 0.6601 GB, free: 120 kB / 474.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002335/0.7014, allocations: 145.6 kB / 0.6603 GB, free: 15.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.7015, allocations: 4 kB / 0.6603 GB, free: 15.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/0.7015, allocations: 4 kB / 0.6603 GB, free: 15.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.7015, allocations: 3.984 kB / 0.6603 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.094e-05/0.7015, allocations: 0.7812 kB / 0.6603 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.7015, allocations: 0 / 0.6603 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.911e-05/0.7016, allocations: 8.531 kB / 0.6603 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.7016, allocations: 4 kB / 0.6603 GB, free: 15.94 MB / 490.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 7.297e-05/0.7017, allocations: 110.4 kB / 0.6604 GB, free: 15.83 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.61e-05/0.7017, allocations: 11.81 kB / 0.6604 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001834/0.7019, allocations: 85.73 kB / 0.6605 GB, free: 15.73 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.7019, allocations: 0 / 0.6605 GB, free: 15.73 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.7019, allocations: 1 kB / 0.6605 GB, free: 15.73 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.7019, allocations: 4 kB / 0.6605 GB, free: 15.73 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.552e-05/0.702, allocations: 146.2 kB / 0.6606 GB, free: 15.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.702, allocations: 0.6875 kB / 0.6606 GB, free: 15.55 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.222e-06/0.702, allocations: 4 kB / 0.6606 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.702, allocations: 0.5938 kB / 0.6606 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-06/0.7021, allocations: 0.6562 kB / 0.6606 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.7021, allocations: 0 / 0.6606 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.7021, allocations: 6.578 kB / 0.6606 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001206/0.7022, allocations: 90.53 kB / 0.6607 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002292/0.7024, allocations: 480.4 kB / 0.6612 GB, free: 14.95 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.431e-05/0.7025, allocations: 82.08 kB / 0.6613 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.7025, allocations: 1.406 kB / 0.6613 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.43e-05/0.7025, allocations: 4 kB / 0.6613 GB, free: 14.84 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.506e-05/0.7026, allocations: 4.188 kB / 0.6613 GB, free: 14.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.7026, allocations: 3.984 kB / 0.6613 GB, free: 14.84 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.458e-05/0.7026, allocations: 115.3 kB / 0.6614 GB, free: 14.72 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0009491/0.7036, allocations: 115.9 kB / 0.6615 GB, free: 14.61 MB / 490.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.0004907/0.7041, allocations: 243.4 kB / 0.6617 GB, free: 14.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.7043, allocations: 105.7 kB / 0.6618 GB, free: 14.28 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7043, allocations: 0 / 0.6618 GB, free: 14.28 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.386e-05/0.7043, allocations: 15.92 kB / 0.6618 GB, free: 14.27 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.751e-05/0.7044, allocations: 15.75 kB / 0.6619 GB, free: 14.25 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002406/0.7047, allocations: 107.6 kB / 0.662 GB, free: 14.12 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.705, allocations: 0.7036 MB / 0.6627 GB, free: 13.39 MB / 490.7 MB Notification: Performance of SimCode: time 3.11e-07/0.705, allocations: 4.125 kB / 0.6627 GB, free: 13.39 MB / 490.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)