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: "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",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.005651/0.005651, allocations: 100.1 kB / 15.73 MB, free: 6.004 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.001364/0.001364, allocations: 191.5 kB / 16.67 MB, free: 5.926 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.254/1.254, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002027/0.002026, allocations: 296.4 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8811/0.8811, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 95.84 kB / 0.6809 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.3813, allocations: 86.98 MB / 0.7659 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001509/0.3828, allocations: 0.5188 MB / 0.7664 GB, free: 3.336 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002003/0.3848, allocations: 1.604 MB / 0.7679 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.2e-05/0.3849, allocations: 0 / 0.7679 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.385, allocations: 19.91 kB / 0.768 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.609e-05/0.3851, allocations: 15.92 kB / 0.768 GB, free: 1.68 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.0008084/0.3859, allocations: 239.3 kB / 0.7682 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.327e-05/0.386, allocations: 23.91 kB / 0.7682 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.232e-05/0.386, allocations: 8 kB / 0.7682 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.717e-05/0.386, allocations: 15.92 kB / 0.7683 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.49e-05/0.3861, allocations: 15.92 kB / 0.7683 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.799e-06/0.3861, allocations: 0 / 0.7683 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004985/0.3866, allocations: 339.5 kB / 0.7686 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.313e-05/0.3866, allocations: 15.98 kB / 0.7686 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.547e-05/0.3867, allocations: 19.81 kB / 0.7686 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003713/0.3871, allocations: 278.2 kB / 0.7689 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.3871, allocations: 0 / 0.7689 GB, free: 0.7461 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3871, allocations: 4 kB / 0.7689 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.027e-06/0.3871, allocations: 4 kB / 0.7689 GB, free: 0.7383 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.0004009/0.3875, allocations: 403.2 kB / 0.7693 GB, free: 304 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.3875, allocations: 8.031 kB / 0.7693 GB, free: 296 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.194e-05/0.3876, allocations: 34.69 kB / 0.7693 GB, free: 252 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.54e-05/0.3876, allocations: 8.844 kB / 0.7693 GB, free: 244 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.3877, allocations: 187 kB / 0.7695 GB, free: 20 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.958e-06/0.3878, allocations: 4.375 kB / 0.7695 GB, free: 16 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.087e-06/0.3878, allocations: 384 / 0.7695 GB, free: 16 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.772e-05/0.3879, allocations: 49.86 kB / 0.7696 GB, free: 15.96 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.3879, allocations: 0 / 0.7696 GB, free: 15.96 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.692e-06/0.3879, allocations: 0 / 0.7696 GB, free: 15.96 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.3879, allocations: 0 / 0.7696 GB, free: 15.96 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.956e-05/0.3879, allocations: 19.98 kB / 0.7696 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001458/0.3881, allocations: 169.6 kB / 0.7697 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.233e-05/0.3881, allocations: 30.5 kB / 0.7698 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.85e-05/0.3882, allocations: 12.92 kB / 0.7698 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.3882, allocations: 11.98 kB / 0.7698 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.3882, allocations: 38.5 kB / 0.7698 GB, free: 15.61 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3882, allocations: 0 / 0.7698 GB, free: 15.61 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001333/0.3884, allocations: 61.59 kB / 0.7699 GB, free: 15.54 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.82e-05/0.3884, allocations: 55.34 kB / 0.7699 GB, free: 15.48 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.3886, allocations: 162.2 kB / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.3886, allocations: 25.7 kB / 0.7701 GB, free: 15.27 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.843e-05/0.3886, allocations: 104.1 kB / 0.7702 GB, free: 15.17 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.558e-06/0.3886, allocations: 8 kB / 0.7702 GB, free: 15.16 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.592e-05/0.3887, allocations: 21.72 kB / 0.7703 GB, free: 15.13 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3888, allocations: 322.8 kB / 0.7706 GB, free: 14.81 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.193e-05/0.3889, allocations: 35.98 kB / 0.7706 GB, free: 14.77 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.245e-05/0.3889, allocations: 43.92 kB / 0.7706 GB, free: 14.73 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.154e-05/0.389, allocations: 72.75 kB / 0.7707 GB, free: 14.66 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.389, allocations: 0 / 0.7707 GB, free: 14.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001525/0.3892, allocations: 133.5 kB / 0.7708 GB, free: 14.52 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.3892, allocations: 12 kB / 0.7708 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.3892, allocations: 0 / 0.7708 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.3892, allocations: 0 / 0.7708 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.633e-05/0.3893, allocations: 4 kB / 0.7709 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.3893, allocations: 0 / 0.7709 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.828e-05/0.3893, allocations: 7.844 kB / 0.7709 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.906e-06/0.3893, allocations: 0 / 0.7709 GB, free: 14.5 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.0001631/0.3895, allocations: 121.8 kB / 0.771 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.723e-05/0.3895, allocations: 15.83 kB / 0.771 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.3896, allocations: 61.56 kB / 0.771 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3896, allocations: 0 / 0.771 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3896, allocations: 0 / 0.771 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.3897, allocations: 0 / 0.771 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.3898, allocations: 169.7 kB / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3898, allocations: 0 / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.236e-06/0.3898, allocations: 7.875 kB / 0.7712 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3898, allocations: 4 kB / 0.7712 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.3898, allocations: 0 / 0.7712 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.3898, allocations: 32 / 0.7712 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3898, allocations: 4 kB / 0.7712 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.987e-05/0.3899, allocations: 77.03 kB / 0.7713 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.989e-05/0.39, allocations: 92.88 kB / 0.7714 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.39, allocations: 4 kB / 0.7714 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.237e-05/0.39, allocations: 0 / 0.7714 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.598e-06/0.39, allocations: 0 / 0.7714 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.39, allocations: 4 kB / 0.7714 GB, free: 13.85 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.017e-05/0.3901, allocations: 125.5 kB / 0.7715 GB, free: 13.73 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3901, allocations: 3.938 kB / 0.7715 GB, free: 13.72 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003551/0.3905, allocations: 83.98 kB / 0.7716 GB, free: 13.64 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.000772/0.3913, allocations: 0.7452 MB / 0.7723 GB, free: 12.89 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001626/0.3914, allocations: 97.67 kB / 0.7724 GB, free: 12.79 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3914, allocations: 0 / 0.7724 GB, free: 12.79 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.556e-05/0.3915, allocations: 11.98 kB / 0.7724 GB, free: 12.78 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001435/0.3916, allocations: 8 kB / 0.7724 GB, free: 12.77 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.3931, allocations: 1.524 MB / 0.7739 GB, free: 11.16 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.3934, allocations: 0.7039 MB / 0.7746 GB, free: 10.43 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.88e-05/0.3934, allocations: 0 / 0.7746 GB, free: 10.43 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.115e-05/0.3934, allocations: 19.42 kB / 0.7746 GB, free: 10.41 MB / 0.545 GB Notification: Performance of SimCode: time 5.41e-07/0.3934, allocations: 4 kB / 0.7746 GB, free: 10.41 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02126/0.4147, allocations: 3.516 MB / 0.7781 GB, free: 7.02 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.321/7.736, allocations: 0.625 kB / 0.7781 GB, free: 7.02 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)