Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.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_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",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.001177/0.001177, allocations: 188.1 kB / 7.804 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4825/0.4825, allocations: 90.85 MB / 99.07 MB, free: 14.94 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.333/1.333, allocations: 221.4 MB / 342.8 MB, free: 5.242 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.001059/0.001059, allocations: 96.78 kB / 415.5 MB, free: 6.41 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1745/0.1756, allocations: 78.44 MB / 493.9 MB, free: 7.984 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.5713, allocations: 72.3 MB / 0.553 GB, free: 73.2 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1173/0.6886, allocations: 102.5 MB / 0.653 GB, free: 7.523 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.6889, allocations: 71.95 kB / 0.6531 GB, free: 7.453 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.01822/0.7072, allocations: 5.947 MB / 0.6589 GB, free: 1.496 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.7072, allocations: 8.625 kB / 0.6589 GB, free: 1.488 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.774e-05/0.7073, allocations: 11.81 kB / 0.6589 GB, free: 1.477 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.7075, allocations: 195.4 kB / 0.6591 GB, free: 1.246 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.7075, allocations: 2.969 kB / 0.6591 GB, free: 1.246 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.7075, allocations: 4 kB / 0.6591 GB, free: 1.242 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.961e-05/0.7076, allocations: 27.97 kB / 0.6592 GB, free: 1.215 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.836e-05/0.7077, allocations: 46.55 kB / 0.6592 GB, free: 1.164 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.7077, allocations: 2.688 kB / 0.6592 GB, free: 1.164 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.7077, allocations: 0 / 0.6592 GB, free: 1.164 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.7077, allocations: 4 kB / 0.6592 GB, free: 1.16 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001982/0.708, allocations: 163.1 kB / 0.6594 GB, free: 0.9648 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.196e-05/0.708, allocations: 31.38 kB / 0.6594 GB, free: 0.9258 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.004e-05/0.7081, allocations: 16.91 kB / 0.6594 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.727e-05/0.7081, allocations: 4.938 kB / 0.6594 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.7082, allocations: 39.02 kB / 0.6594 GB, free: 0.8555 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 1.303e-06/0.7082, allocations: 0.6875 kB / 0.6594 GB, free: 0.8555 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002651/0.7084, allocations: 66.08 kB / 0.6595 GB, free: 0.7852 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.7085, allocations: 53.31 kB / 0.6596 GB, free: 0.7227 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.7087, allocations: 189.3 kB / 0.6597 GB, free: 0.5312 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.7087, allocations: 25.7 kB / 0.6598 GB, free: 0.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.421e-05/0.7088, allocations: 104 kB / 0.6599 GB, free: 404 kB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.7088, allocations: 0.6875 kB / 0.6599 GB, free: 404 kB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.231e-06/0.7088, allocations: 0 / 0.6599 GB, free: 404 kB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.709, allocations: 323.4 kB / 0.6602 GB, free: 72 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.02e-05/0.7091, allocations: 59.12 kB / 0.6602 GB, free: 16 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.7092, allocations: 59.95 kB / 0.6603 GB, free: 15.96 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.7094, allocations: 67.97 kB / 0.6604 GB, free: 15.89 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.7094, allocations: 0.5 kB / 0.6604 GB, free: 15.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002632/0.7097, allocations: 205.1 kB / 0.6605 GB, free: 15.69 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.7097, allocations: 4 kB / 0.6606 GB, free: 15.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.337e-05/0.7097, allocations: 4.562 kB / 0.6606 GB, free: 15.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.7097, allocations: 5.391 kB / 0.6606 GB, free: 15.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.27e-05/0.7098, allocations: 4 kB / 0.6606 GB, free: 15.67 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.678e-06/0.7098, allocations: 3.938 kB / 0.6606 GB, free: 15.67 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.409e-05/0.7098, allocations: 8.375 kB / 0.6606 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.7099, allocations: 4 kB / 0.6606 GB, free: 15.66 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: 10 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],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 0.0001023/0.71, allocations: 114.3 kB / 0.6607 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.615e-05/0.71, allocations: 7.906 kB / 0.6607 GB, free: 15.53 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002147/0.7102, allocations: 91.19 kB / 0.6608 GB, free: 15.44 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.7102, allocations: 0.7188 kB / 0.6608 GB, free: 15.44 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/0.7102, allocations: 4.906 kB / 0.6608 GB, free: 15.44 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.7103, allocations: 4.125 kB / 0.6608 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.7104, allocations: 158.2 kB / 0.6609 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.7104, allocations: 1.688 kB / 0.6609 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.991e-06/0.7104, allocations: 0 / 0.6609 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.7104, allocations: 0 / 0.6609 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.7104, allocations: 3.984 kB / 0.661 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.7104, allocations: 6 kB / 0.661 GB, free: 15.23 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.7105, allocations: 0 / 0.661 GB, free: 15.23 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001412/0.7106, allocations: 100.8 kB / 0.6611 GB, free: 15.12 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002484/0.7109, allocations: 477.3 kB / 0.6615 GB, free: 14.63 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.048e-05/0.7109, allocations: 88.92 kB / 0.6616 GB, free: 14.52 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.928e-05/0.7109, allocations: 0 / 0.6616 GB, free: 14.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.549e-05/0.711, allocations: 0 / 0.6616 GB, free: 14.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.292e-05/0.711, allocations: 7.984 kB / 0.6616 GB, free: 14.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.711, allocations: 4.062 kB / 0.6616 GB, free: 14.51 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0001153/0.7111, allocations: 135.2 kB / 0.6617 GB, free: 14.38 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001137/0.7123, allocations: 123.9 kB / 0.6619 GB, free: 14.26 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.0005877/0.7129, allocations: 246.5 kB / 0.6621 GB, free: 14.04 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000216/0.7131, allocations: 133.6 kB / 0.6622 GB, free: 13.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.7131, allocations: 0 / 0.6622 GB, free: 13.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.643e-05/0.7131, allocations: 15.98 kB / 0.6622 GB, free: 13.88 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00013/0.7133, allocations: 8.094 kB / 0.6622 GB, free: 13.87 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003221/0.7136, allocations: 143.5 kB / 0.6624 GB, free: 13.71 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002868/0.7139, allocations: 0.7288 MB / 0.6631 GB, free: 12.95 MB / 490.7 MB Notification: Performance of SimCode: time 2.11e-07/0.7139, allocations: 0 / 0.6631 GB, free: 12.95 MB / 490.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)