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.001242/0.001242, allocations: 101.2 kB / 16.27 MB, free: 5.969 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.001238/0.001238, allocations: 194.2 kB / 17.2 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7255/0.7255, allocations: 122.9 MB / 413.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 64.08 kB / 0.4912 GB, free: 7.355 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2992, allocations: 77.92 MB / 0.5673 GB, free: 32.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001565/0.3008, allocations: 0.51 MB / 0.5678 GB, free: 32.41 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001804/0.3026, allocations: 1.594 MB / 0.5693 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.012e-05/0.3026, allocations: 4.938 kB / 0.5693 GB, free: 31.28 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001659/0.3028, allocations: 62.61 kB / 0.5694 GB, free: 31.27 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.654e-05/0.3029, allocations: 36.27 kB / 0.5694 GB, free: 31.26 MB / 446.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.0007681/0.3036, allocations: 241.3 kB / 0.5697 GB, free: 31.17 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.797e-05/0.3037, allocations: 33.92 kB / 0.5697 GB, free: 31.16 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.3e-05/0.3037, allocations: 4.047 kB / 0.5697 GB, free: 31.16 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.384e-05/0.3038, allocations: 24.45 kB / 0.5697 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.911e-05/0.3038, allocations: 34.75 kB / 0.5697 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.3039, allocations: 0 / 0.5697 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004498/0.3043, allocations: 292.4 kB / 0.57 GB, free: 31.06 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.818e-05/0.3044, allocations: 30.58 kB / 0.5701 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.3044, allocations: 34.95 kB / 0.5701 GB, free: 31.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003691/0.3048, allocations: 283.2 kB / 0.5704 GB, free: 30.95 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.574e-06/0.3048, allocations: 0.8438 kB / 0.5704 GB, free: 30.95 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3048, allocations: 1.156 kB / 0.5704 GB, free: 30.95 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.3048, allocations: 0.5938 kB / 0.5704 GB, free: 30.95 MB / 446.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.0003285/0.3051, allocations: 437 kB / 0.5708 GB, free: 30.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.3052, allocations: 10.72 kB / 0.5708 GB, free: 30.52 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.005e-05/0.3052, allocations: 38.67 kB / 0.5708 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.609e-05/0.3052, allocations: 11.25 kB / 0.5708 GB, free: 30.47 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.3054, allocations: 192.7 kB / 0.571 GB, free: 30.26 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.853e-06/0.3054, allocations: 384 / 0.571 GB, free: 30.26 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-06/0.3054, allocations: 2.344 kB / 0.571 GB, free: 30.26 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.471e-05/0.3055, allocations: 45.69 kB / 0.5711 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-06/0.3055, allocations: 1.375 kB / 0.5711 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.142e-06/0.3055, allocations: 0.6094 kB / 0.5711 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.176e-06/0.3055, allocations: 1.281 kB / 0.5711 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.854e-05/0.3055, allocations: 19.2 kB / 0.5711 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000121/0.3056, allocations: 189.3 kB / 0.5713 GB, free: 30.01 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.711e-05/0.3057, allocations: 30.44 kB / 0.5713 GB, free: 29.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.983e-05/0.3057, allocations: 15.89 kB / 0.5713 GB, free: 29.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.3058, allocations: 5.953 kB / 0.5713 GB, free: 29.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.499e-05/0.3058, allocations: 37.38 kB / 0.5714 GB, free: 29.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3058, allocations: 0 / 0.5714 GB, free: 29.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001209/0.3059, allocations: 65.61 kB / 0.5714 GB, free: 29.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.571e-05/0.3059, allocations: 56.56 kB / 0.5715 GB, free: 29.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.3061, allocations: 211.2 kB / 0.5717 GB, free: 29.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.202e-06/0.3061, allocations: 25.7 kB / 0.5717 GB, free: 29.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.568e-05/0.3061, allocations: 104.8 kB / 0.5718 GB, free: 29.58 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.206e-06/0.3062, allocations: 3.906 kB / 0.5718 GB, free: 29.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.471e-05/0.3062, allocations: 30.19 kB / 0.5718 GB, free: 29.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.317e-05/0.3062, allocations: 323 kB / 0.5721 GB, free: 29.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.929e-05/0.3063, allocations: 55.36 kB / 0.5722 GB, free: 29.23 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.953e-05/0.3064, allocations: 61.11 kB / 0.5722 GB, free: 29.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.445e-05/0.3065, allocations: 95.2 kB / 0.5723 GB, free: 29.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3065, allocations: 0 / 0.5723 GB, free: 29.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001575/0.3066, allocations: 165.3 kB / 0.5725 GB, free: 29.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.3066, allocations: 8.469 kB / 0.5725 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.3067, allocations: 5.219 kB / 0.5725 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.3067, allocations: 0.75 kB / 0.5725 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.091e-05/0.3067, allocations: 0 / 0.5725 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.3067, allocations: 3.188 kB / 0.5725 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.623e-05/0.3067, allocations: 9.828 kB / 0.5725 GB, free: 29.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.3067, allocations: 5.062 kB / 0.5725 GB, free: 29.11 MB / 446.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 8.719e-05/0.3068, allocations: 133.1 kB / 0.5727 GB, free: 29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.446e-05/0.3069, allocations: 19.95 kB / 0.5727 GB, free: 28.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.97e-05/0.307, allocations: 61.2 kB / 0.5727 GB, free: 28.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.307, allocations: 0 / 0.5727 GB, free: 28.95 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.307, allocations: 0.625 kB / 0.5727 GB, free: 28.95 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.307, allocations: 1.812 kB / 0.5727 GB, free: 28.95 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.72e-05/0.3071, allocations: 182.8 kB / 0.5729 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3071, allocations: 1.156 kB / 0.5729 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-06/0.3071, allocations: 8.484 kB / 0.5729 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3071, allocations: 1.125 kB / 0.5729 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-06/0.3071, allocations: 1.484 kB / 0.5729 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3071, allocations: 0 / 0.5729 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3071, allocations: 5.125 kB / 0.5729 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.694e-05/0.3072, allocations: 83.62 kB / 0.573 GB, free: 28.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.222e-05/0.3072, allocations: 91.81 kB / 0.5731 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.3072, allocations: 1.938 kB / 0.5731 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.417e-05/0.3072, allocations: 1.344 kB / 0.5731 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.351e-05/0.3073, allocations: 1.703 kB / 0.5731 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.3073, allocations: 1.938 kB / 0.5731 GB, free: 28.56 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.33e-05/0.3074, allocations: 152.6 kB / 0.5732 GB, free: 28.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3074, allocations: 2.062 kB / 0.5732 GB, free: 28.47 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003207/0.3077, allocations: 88.45 kB / 0.5733 GB, free: 28.46 MB / 446.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.0005206/0.3082, allocations: 0.7413 MB / 0.5741 GB, free: 27.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001498/0.3084, allocations: 125.6 kB / 0.5742 GB, free: 27.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3084, allocations: 0 / 0.5742 GB, free: 27.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.551e-05/0.3084, allocations: 11.95 kB / 0.5742 GB, free: 27.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.3086, allocations: 8.469 kB / 0.5742 GB, free: 27.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.3098, allocations: 1.811 MB / 0.576 GB, free: 26.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001123/0.31, allocations: 0.7082 MB / 0.5767 GB, free: 25.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.726e-05/0.31, allocations: 1.938 kB / 0.5767 GB, free: 25.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3e-05/0.31, allocations: 29.48 kB / 0.5767 GB, free: 25.79 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.31, allocations: 0 / 0.5767 GB, free: 25.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.3277, allocations: 3.83 MB / 0.5804 GB, free: 24.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.087/7.415, allocations: 0.875 kB / 0.5804 GB, free: 24.8 MB / 446.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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)