Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_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/Buildings 10.0.0-master/package.mo): time 1.784/1.784, allocations: 390.4 MB / 397.7 MB, free: 10.61 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009456/0.0009456, allocations: 182.1 kB / 490.8 MB, free: 11.17 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.149/1.149, allocations: 221.4 MB / 0.7863 GB, free: 13.52 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008192/0.0008191, allocations: 79 kB / 0.9264 GB, free: 4.535 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2487/0.2496, allocations: 149.1 MB / 1.072 GB, free: 15.48 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.548/0.7976, allocations: 143 MB / 1.212 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1421/0.9397, allocations: 151 MB / 1.359 GB, free: 40.62 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.94, allocations: 71.95 kB / 1.359 GB, free: 40.55 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.01452/0.9545, allocations: 5.852 MB / 1.365 GB, free: 34.7 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.9546, allocations: 12.88 kB / 1.365 GB, free: 34.69 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.051e-05/0.9546, allocations: 7.906 kB / 1.365 GB, free: 34.68 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.9547, allocations: 179 kB / 1.365 GB, free: 34.47 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-06/0.9548, allocations: 0.7188 kB / 1.365 GB, free: 34.47 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.9548, allocations: 0 / 1.365 GB, free: 34.47 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.745e-05/0.9549, allocations: 20.7 kB / 1.365 GB, free: 34.45 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.025e-05/0.9549, allocations: 46.2 kB / 1.365 GB, free: 34.4 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.9549, allocations: 0 / 1.365 GB, free: 34.4 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.955, allocations: 1.344 kB / 1.365 GB, free: 34.4 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.955, allocations: 0 / 1.365 GB, free: 34.4 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001246/0.9551, allocations: 159 kB / 1.365 GB, free: 34.21 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 3.394e-05/0.9551, allocations: 30.5 kB / 1.365 GB, free: 34.17 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.56e-05/0.9552, allocations: 21.66 kB / 1.365 GB, free: 34.14 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.9552, allocations: 0.9062 kB / 1.365 GB, free: 34.14 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.186e-05/0.9552, allocations: 37.06 kB / 1.365 GB, free: 34.1 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.9552, allocations: 0 / 1.365 GB, free: 34.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1): time 0.0001678/0.9554, allocations: 58.58 kB / 1.365 GB, free: 34.04 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.555e-05/0.9554, allocations: 55.31 kB / 1.365 GB, free: 33.97 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.263e-05/0.9555, allocations: 148.7 kB / 1.366 GB, free: 33.82 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.9555, allocations: 25.7 kB / 1.366 GB, free: 33.79 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 2.162e-05/0.9556, allocations: 92.12 kB / 1.366 GB, free: 33.69 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.07e-05/0.9556, allocations: 4.906 kB / 1.366 GB, free: 33.69 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-06/0.9556, allocations: 0 / 1.366 GB, free: 33.69 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 4.332e-05/0.9556, allocations: 319.9 kB / 1.366 GB, free: 33.37 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.046e-05/0.9557, allocations: 43.97 kB / 1.366 GB, free: 33.32 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.587e-05/0.9557, allocations: 40.52 kB / 1.366 GB, free: 33.29 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.098e-05/0.9558, allocations: 52.89 kB / 1.366 GB, free: 33.23 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.9558, allocations: 0.625 kB / 1.366 GB, free: 33.23 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001809/0.956, allocations: 142.2 kB / 1.366 GB, free: 33.09 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.9561, allocations: 4 kB / 1.366 GB, free: 33.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.9561, allocations: 4.938 kB / 1.366 GB, free: 33.08 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.9561, allocations: 0 / 1.366 GB, free: 33.08 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.086e-05/0.9561, allocations: 0 / 1.366 GB, free: 33.08 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.9561, allocations: 0.5938 kB / 1.366 GB, free: 33.08 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.684e-05/0.9562, allocations: 15.84 kB / 1.366 GB, free: 33.07 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.9562, allocations: 4 kB / 1.366 GB, free: 33.07 MB / 0.8855 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 () * 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 5.117e-05/0.9562, allocations: 118.2 kB / 1.366 GB, free: 32.95 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.084e-05/0.9563, allocations: 7.906 kB / 1.366 GB, free: 32.94 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001498/0.9564, allocations: 81.95 kB / 1.367 GB, free: 32.86 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.9564, allocations: 0.5625 kB / 1.367 GB, free: 32.86 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.9564, allocations: 4.5 kB / 1.367 GB, free: 32.85 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.9564, allocations: 0.5625 kB / 1.367 GB, free: 32.85 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.06e-05/0.9565, allocations: 154.1 kB / 1.367 GB, free: 32.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.9565, allocations: 1.812 kB / 1.367 GB, free: 32.66 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.952e-06/0.9565, allocations: 0 / 1.367 GB, free: 32.66 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.9565, allocations: 0 / 1.367 GB, free: 32.66 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.9565, allocations: 4.578 kB / 1.367 GB, free: 32.66 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.9566, allocations: 0.7188 kB / 1.367 GB, free: 32.66 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.9566, allocations: 1.562 kB / 1.367 GB, free: 32.66 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.168e-05/0.9567, allocations: 87.11 kB / 1.367 GB, free: 32.56 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001258/0.9568, allocations: 479.1 kB / 1.367 GB, free: 32.07 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.9568, allocations: 81.02 kB / 1.367 GB, free: 31.97 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.9569, allocations: 5.844 kB / 1.367 GB, free: 31.97 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.321e-05/0.9569, allocations: 0 / 1.367 GB, free: 31.97 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.013e-05/0.9569, allocations: 3.984 kB / 1.367 GB, free: 31.96 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.9569, allocations: 4 kB / 1.367 GB, free: 31.96 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.071e-05/0.957, allocations: 121.3 kB / 1.367 GB, free: 31.84 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008623/0.9578, allocations: 119.8 kB / 1.368 GB, free: 31.73 MB / 0.8855 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 () * 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.0004257/0.9583, allocations: 242.6 kB / 1.368 GB, free: 31.51 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001284/0.9584, allocations: 106.4 kB / 1.368 GB, free: 31.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.9584, allocations: 0 / 1.368 GB, free: 31.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 1.857e-05/0.9584, allocations: 20.53 kB / 1.368 GB, free: 31.38 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001024/0.9585, allocations: 3.953 kB / 1.368 GB, free: 31.38 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002055/0.9588, allocations: 108.7 kB / 1.368 GB, free: 31.25 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.9589, allocations: 0.7081 MB / 1.369 GB, free: 30.52 MB / 0.8855 GB Notification: Performance of SimCode: time 2.3e-07/0.9589, allocations: 0 / 1.369 GB, free: 30.52 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)