Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 106.9 kB / 16.41 MB, free: 6.492 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.001115/0.001115, allocations: 192.1 kB / 17.34 MB, free: 5.762 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.275/1.275, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002008/0.002008, allocations: 287.1 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9029/0.9029, allocations: 169.2 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 92.19 kB / 0.6821 GB, free: 7.016 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4812/0.4833, allocations: 86.99 MB / 0.767 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001771/0.4851, allocations: 0.5181 MB / 0.7675 GB, free: 3.438 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002514/0.4876, allocations: 1.6 MB / 0.7691 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.981e-05/0.4877, allocations: 4 kB / 0.7691 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002062/0.4879, allocations: 19.91 kB / 0.7691 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.242e-05/0.488, allocations: 11.98 kB / 0.7691 GB, free: 1.785 MB / 0.5294 GB [/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/BuildingSystems 2.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.001266/0.4892, allocations: 247.3 kB / 0.7694 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.4894, allocations: 27.91 kB / 0.7694 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.751e-05/0.4894, allocations: 0 / 0.7694 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.338e-05/0.4895, allocations: 15.92 kB / 0.7694 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.933e-05/0.4896, allocations: 19.92 kB / 0.7694 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.4896, allocations: 0 / 0.7694 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007478/0.4903, allocations: 331.5 kB / 0.7697 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.674e-05/0.4904, allocations: 11.98 kB / 0.7697 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.251e-05/0.4905, allocations: 23.81 kB / 0.7698 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005655/0.491, allocations: 283.3 kB / 0.77 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.491, allocations: 0 / 0.77 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.084e-06/0.4911, allocations: 4 kB / 0.77 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.488e-06/0.4911, allocations: 0 / 0.77 GB, free: 0.8398 MB / 0.5294 GB 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.0006092/0.4917, allocations: 401.4 kB / 0.7704 GB, free: 416 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.4917, allocations: 12.03 kB / 0.7704 GB, free: 404 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.569e-05/0.4918, allocations: 4.844 kB / 0.7704 GB, free: 400 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.492, allocations: 193 kB / 0.7706 GB, free: 168 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.492, allocations: 384 / 0.7706 GB, free: 168 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.345e-05/0.492, allocations: 384 / 0.7706 GB, free: 168 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001302/0.4922, allocations: 45.94 kB / 0.7707 GB, free: 116 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.4922, allocations: 4 kB / 0.7707 GB, free: 112 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.4922, allocations: 0 / 0.7707 GB, free: 112 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.4922, allocations: 0 / 0.7707 GB, free: 112 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.244e-05/0.4923, allocations: 16 kB / 0.7707 GB, free: 96 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002315/0.4925, allocations: 177.6 kB / 0.7709 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.345e-05/0.4926, allocations: 26.56 kB / 0.7709 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.595e-05/0.4926, allocations: 16.92 kB / 0.7709 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.521e-05/0.4926, allocations: 4 kB / 0.7709 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.4927, allocations: 42.44 kB / 0.7709 GB, free: 15.76 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.4927, allocations: 3.938 kB / 0.771 GB, free: 15.76 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001883/0.4929, allocations: 61.58 kB / 0.771 GB, free: 15.69 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.4929, allocations: 51.41 kB / 0.7711 GB, free: 15.63 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001733/0.4931, allocations: 169.3 kB / 0.7712 GB, free: 15.45 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.4931, allocations: 29.64 kB / 0.7712 GB, free: 15.42 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.51e-05/0.4932, allocations: 92.14 kB / 0.7713 GB, free: 15.32 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.599e-05/0.4932, allocations: 8.031 kB / 0.7713 GB, free: 15.32 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.496e-05/0.4933, allocations: 25.7 kB / 0.7714 GB, free: 15.29 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.4934, allocations: 322.8 kB / 0.7717 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.849e-05/0.4935, allocations: 39.98 kB / 0.7717 GB, free: 14.92 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.647e-05/0.4935, allocations: 43.92 kB / 0.7718 GB, free: 14.88 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.794e-05/0.4936, allocations: 68.81 kB / 0.7718 GB, free: 14.81 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4936, allocations: 4 kB / 0.7718 GB, free: 14.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001589/0.4938, allocations: 121.6 kB / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.4938, allocations: 12 kB / 0.772 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/0.4938, allocations: 4 kB / 0.772 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.4939, allocations: 0 / 0.772 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.589e-05/0.4939, allocations: 0 / 0.772 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.4939, allocations: 0 / 0.772 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.861e-05/0.4939, allocations: 11.84 kB / 0.772 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.4939, allocations: 0 / 0.772 GB, free: 14.65 MB / 0.545 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 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001816/0.4941, allocations: 128.2 kB / 0.7721 GB, free: 14.52 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.4941, allocations: 11.78 kB / 0.7721 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001235/0.4943, allocations: 61.55 kB / 0.7722 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.4943, allocations: 0 / 0.7722 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.4943, allocations: 0 / 0.7722 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.4943, allocations: 0 / 0.7722 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000142/0.4945, allocations: 173.7 kB / 0.7723 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.4945, allocations: 0 / 0.7723 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.491e-06/0.4945, allocations: 0 / 0.7723 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.4945, allocations: 3.938 kB / 0.7723 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.4945, allocations: 0 / 0.7723 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4945, allocations: 0 / 0.7723 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.4945, allocations: 4.031 kB / 0.7723 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.452e-05/0.4946, allocations: 80.97 kB / 0.7724 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.4e-05/0.4947, allocations: 92.94 kB / 0.7725 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.4947, allocations: 0 / 0.7725 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.199e-05/0.4947, allocations: 0 / 0.7725 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.032e-05/0.4947, allocations: 3.984 kB / 0.7725 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.4947, allocations: 4 kB / 0.7725 GB, free: 14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.661e-05/0.4948, allocations: 124.8 kB / 0.7726 GB, free: 13.88 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4948, allocations: 0 / 0.7726 GB, free: 13.88 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003762/0.4952, allocations: 87.92 kB / 0.7727 GB, free: 13.79 MB / 0.545 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 () * 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.0005956/0.4958, allocations: 229.9 kB / 0.7729 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001779/0.496, allocations: 105.7 kB / 0.773 GB, free: 13.48 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.496, allocations: 0 / 0.773 GB, free: 13.48 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.493e-05/0.4961, allocations: 11.94 kB / 0.773 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001421/0.4962, allocations: 4 kB / 0.773 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002986/0.4965, allocations: 183.2 kB / 0.7732 GB, free: 13.25 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.4968, allocations: 0.6924 MB / 0.7739 GB, free: 12.53 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.856e-05/0.4968, allocations: 11.44 kB / 0.7739 GB, free: 12.52 MB / 0.545 GB Notification: Performance of SimCode: time 3.21e-07/0.4968, allocations: 4.125 kB / 0.7739 GB, free: 12.52 MB / 0.545 GB Notification: Performance of Templates: time 0.004678/0.5015, allocations: 2.251 MB / 0.7761 GB, free: 10.26 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)