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/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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 106.5 kB / 16.4 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002012/0.002013, allocations: 193.2 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.308/2.308, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.388/1.388, allocations: 115.3 MB / 406.5 MB, free: 6.137 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002465/0.002465, allocations: 68.11 kB / 0.5572 GB, free: 32.46 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2749, allocations: 76.18 MB / 0.6316 GB, free: 4.965 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.003249/0.2782, allocations: 0.5048 MB / 0.632 GB, free: 4.461 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004587/0.2828, allocations: 1.607 MB / 0.6336 GB, free: 2.836 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.24e-05/0.2829, allocations: 0 / 0.6336 GB, free: 2.836 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.2834, allocations: 55.86 kB / 0.6337 GB, free: 2.781 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 6.944e-05/0.2835, allocations: 39.94 kB / 0.6337 GB, free: 2.742 MB / 478.1 MB [/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/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 NFTyping.typeClassSections: time 0.00184/0.2853, allocations: 239.3 kB / 0.6339 GB, free: 2.508 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.2856, allocations: 31.89 kB / 0.634 GB, free: 2.477 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.849e-05/0.2856, allocations: 7.984 kB / 0.634 GB, free: 2.469 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.996e-05/0.2857, allocations: 19.92 kB / 0.634 GB, free: 2.449 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.2859, allocations: 55.81 kB / 0.634 GB, free: 2.395 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.2859, allocations: 0 / 0.634 GB, free: 2.395 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.287, allocations: 327.5 kB / 0.6344 GB, free: 2.074 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.2871, allocations: 31.91 kB / 0.6344 GB, free: 2.043 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 4.882e-05/0.2871, allocations: 19.75 kB / 0.6344 GB, free: 2.023 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008144/0.288, allocations: 295.3 kB / 0.6347 GB, free: 1.734 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.288, allocations: 0 / 0.6347 GB, free: 1.734 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.288, allocations: 0 / 0.6347 GB, free: 1.734 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.288, allocations: 0 / 0.6347 GB, free: 1.734 MB / 478.1 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.0007539/0.2888, allocations: 438.5 kB / 0.6351 GB, free: 1.262 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.245e-05/0.2889, allocations: 8.031 kB / 0.6351 GB, free: 1.254 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.339e-05/0.2889, allocations: 34.75 kB / 0.6351 GB, free: 1.211 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.564e-05/0.289, allocations: 8.844 kB / 0.6352 GB, free: 1.203 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002903/0.2893, allocations: 196.7 kB / 0.6353 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.2893, allocations: 384 / 0.6353 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.079e-05/0.2893, allocations: 8.297 kB / 0.6354 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001685/0.2895, allocations: 41.81 kB / 0.6354 GB, free: 0.918 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.2895, allocations: 0 / 0.6354 GB, free: 0.918 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.2896, allocations: 4 kB / 0.6354 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.2896, allocations: 0 / 0.6354 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.698e-05/0.2896, allocations: 19.98 kB / 0.6354 GB, free: 0.8945 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003203/0.29, allocations: 185.6 kB / 0.6356 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.161e-05/0.2901, allocations: 26.56 kB / 0.6356 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.466e-05/0.2901, allocations: 16.86 kB / 0.6356 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.785e-05/0.2902, allocations: 11.89 kB / 0.6356 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.738e-05/0.2903, allocations: 46.5 kB / 0.6357 GB, free: 0.543 MB / 478.1 MB Notification: Performance of pre-optimization done (n=1): time 2.014e-06/0.2903, allocations: 0 / 0.6357 GB, free: 0.543 MB / 478.1 MB Notification: Performance of matching and sorting (n=1): time 0.0003028/0.2906, allocations: 61.59 kB / 0.6357 GB, free: 488 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.2907, allocations: 51.41 kB / 0.6358 GB, free: 424 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003782/0.2911, allocations: 210.8 kB / 0.636 GB, free: 200 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.2912, allocations: 25.7 kB / 0.636 GB, free: 168 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.2913, allocations: 108.1 kB / 0.6361 GB, free: 56 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.271e-05/0.2914, allocations: 3.906 kB / 0.6361 GB, free: 52 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.2915, allocations: 33.83 kB / 0.6362 GB, free: 12 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000254/0.2917, allocations: 326.8 kB / 0.6365 GB, free: 15.68 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.2919, allocations: 55.92 kB / 0.6365 GB, free: 15.63 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.281e-05/0.292, allocations: 58.64 kB / 0.6366 GB, free: 15.57 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.2922, allocations: 88.78 kB / 0.6367 GB, free: 15.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2922, allocations: 0 / 0.6367 GB, free: 15.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003496/0.2925, allocations: 165.4 kB / 0.6368 GB, free: 15.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.2926, allocations: 4 kB / 0.6368 GB, free: 15.31 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.077e-05/0.2926, allocations: 4 kB / 0.6368 GB, free: 15.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.2927, allocations: 8 kB / 0.6368 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.387e-05/0.2927, allocations: 0 / 0.6368 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.2927, allocations: 0 / 0.6368 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.208e-05/0.2928, allocations: 11.91 kB / 0.6369 GB, free: 15.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.2928, allocations: 0 / 0.6369 GB, free: 15.29 MB / 494.1 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 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0002452/0.2931, allocations: 133.8 kB / 0.637 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.581e-05/0.2931, allocations: 15.75 kB / 0.637 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001998/0.2934, allocations: 70.19 kB / 0.6371 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2934, allocations: 0 / 0.6371 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.2934, allocations: 0 / 0.6371 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.2934, allocations: 0 / 0.6371 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002/0.2936, allocations: 181.6 kB / 0.6372 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2936, allocations: 0 / 0.6372 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.482e-05/0.2936, allocations: 3.938 kB / 0.6372 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.2937, allocations: 0 / 0.6372 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.2937, allocations: 4 kB / 0.6372 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.2937, allocations: 4 kB / 0.6372 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2937, allocations: 0 / 0.6372 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001548/0.2939, allocations: 89 kB / 0.6373 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.166e-05/0.294, allocations: 92.84 kB / 0.6374 GB, free: 14.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.294, allocations: 4 kB / 0.6374 GB, free: 14.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.559e-05/0.294, allocations: 0 / 0.6374 GB, free: 14.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.089e-05/0.2941, allocations: 0 / 0.6374 GB, free: 14.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.2941, allocations: 0 / 0.6374 GB, free: 14.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002538/0.2943, allocations: 152.4 kB / 0.6376 GB, free: 14.45 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2943, allocations: 4.031 kB / 0.6376 GB, free: 14.45 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006119/0.295, allocations: 87.98 kB / 0.6377 GB, free: 14.36 MB / 494.1 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 () * 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.001375/0.2964, allocations: 0.7433 MB / 0.6384 GB, free: 13.61 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003261/0.2967, allocations: 129.7 kB / 0.6385 GB, free: 13.48 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.2967, allocations: 0 / 0.6385 GB, free: 13.48 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.73e-05/0.2968, allocations: 11.98 kB / 0.6385 GB, free: 13.46 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.297, allocations: 11.94 kB / 0.6385 GB, free: 13.45 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002954/0.3, allocations: 1.815 MB / 0.6403 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005079/0.3006, allocations: 0.7041 MB / 0.641 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.424e-05/0.3006, allocations: 4.031 kB / 0.641 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.301e-05/0.3007, allocations: 27.42 kB / 0.641 GB, free: 10.79 MB / 494.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3007, allocations: 4 kB / 0.641 GB, free: 10.79 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0394/0.3401, allocations: 3.892 MB / 0.6448 GB, free: 6.977 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.25, allocations: 8.703 kB / 0.6448 GB, free: 6.973 MB / 494.1 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/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)