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.001074/0.001074, allocations: 112.6 kB / 16.42 MB, free: 6.445 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.001011/0.001011, allocations: 189.6 kB / 17.35 MB, free: 5.738 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.289/1.289, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002071/0.002071, allocations: 290.8 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9034/0.9034, allocations: 169.3 MB / 0.499 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 91.86 kB / 0.6821 GB, free: 7.035 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3744, allocations: 86.97 MB / 0.767 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001427/0.3758, allocations: 0.5152 MB / 0.7675 GB, free: 3.445 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00184/0.3777, allocations: 1.604 MB / 0.7691 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.685e-05/0.3777, allocations: 0 / 0.7691 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.3779, allocations: 23.91 kB / 0.7691 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.139e-05/0.3779, allocations: 11.94 kB / 0.7691 GB, free: 1.789 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.0007363/0.3786, allocations: 247.3 kB / 0.7694 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.847e-05/0.3787, allocations: 19.92 kB / 0.7694 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.097e-05/0.3787, allocations: 0 / 0.7694 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.637e-05/0.3788, allocations: 15.92 kB / 0.7694 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.897e-05/0.3788, allocations: 23.91 kB / 0.7694 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.3788, allocations: 0 / 0.7694 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004752/0.3793, allocations: 335.5 kB / 0.7697 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.908e-05/0.3794, allocations: 19.97 kB / 0.7698 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.557e-05/0.3794, allocations: 23.81 kB / 0.7698 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003228/0.3797, allocations: 275.4 kB / 0.77 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.3797, allocations: 0 / 0.77 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.256e-06/0.3797, allocations: 4 kB / 0.77 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.877e-06/0.3798, allocations: 0 / 0.77 GB, free: 0.8438 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.0003768/0.3801, allocations: 405.4 kB / 0.7704 GB, free: 416 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.3802, allocations: 8.031 kB / 0.7704 GB, free: 408 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.954e-05/0.3802, allocations: 8.844 kB / 0.7704 GB, free: 400 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.3804, allocations: 191 kB / 0.7706 GB, free: 172 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-06/0.3804, allocations: 4.312 kB / 0.7706 GB, free: 168 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-06/0.3804, allocations: 384 / 0.7706 GB, free: 168 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.195e-05/0.3805, allocations: 38.02 kB / 0.7707 GB, free: 124 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.66e-06/0.3805, allocations: 0 / 0.7707 GB, free: 124 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-06/0.3805, allocations: 4 kB / 0.7707 GB, free: 120 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.3805, allocations: 3.984 kB / 0.7707 GB, free: 116 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.462e-05/0.3805, allocations: 15.98 kB / 0.7707 GB, free: 100 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.3807, allocations: 173.6 kB / 0.7709 GB, free: 15.88 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.581e-05/0.3807, allocations: 34.52 kB / 0.7709 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.009e-05/0.3808, allocations: 16.91 kB / 0.7709 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.3808, allocations: 4 kB / 0.7709 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/0.3808, allocations: 34.5 kB / 0.7709 GB, free: 15.77 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3808, allocations: 0 / 0.7709 GB, free: 15.77 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.00013/0.381, allocations: 57.59 kB / 0.771 GB, free: 15.71 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.381, allocations: 59.52 kB / 0.7711 GB, free: 15.64 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.3811, allocations: 162.2 kB / 0.7712 GB, free: 15.46 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.3811, allocations: 25.7 kB / 0.7712 GB, free: 15.43 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.363e-05/0.3812, allocations: 108 kB / 0.7713 GB, free: 15.32 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.458e-06/0.3812, allocations: 3.906 kB / 0.7713 GB, free: 15.32 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.279e-05/0.3813, allocations: 25.7 kB / 0.7714 GB, free: 15.29 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.391e-05/0.3814, allocations: 322.8 kB / 0.7717 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.833e-05/0.3814, allocations: 43.97 kB / 0.7717 GB, free: 14.92 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.838e-05/0.3815, allocations: 39.98 kB / 0.7718 GB, free: 14.88 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.944e-05/0.3815, allocations: 80.89 kB / 0.7718 GB, free: 14.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3815, allocations: 0 / 0.7718 GB, free: 14.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001271/0.3817, allocations: 121.6 kB / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.3817, allocations: 11.94 kB / 0.772 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.3817, allocations: 0 / 0.772 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.3817, allocations: 0 / 0.772 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.166e-05/0.3817, allocations: 3.984 kB / 0.772 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.3818, allocations: 0 / 0.772 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.299e-05/0.3818, allocations: 15.78 kB / 0.772 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.3818, allocations: 0 / 0.772 GB, free: 14.64 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.0001077/0.3819, allocations: 134.3 kB / 0.7721 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.389e-05/0.3819, allocations: 11.84 kB / 0.7721 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.726e-05/0.382, allocations: 49.56 kB / 0.7722 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.382, allocations: 0 / 0.7722 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.382, allocations: 0 / 0.7722 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.138e-05/0.3821, allocations: 89 kB / 0.7723 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.053e-05/0.3821, allocations: 0 / 0.7723 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.8e-05/0.3821, allocations: 4.031 kB / 0.7723 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.397e-05/0.3821, allocations: 4 kB / 0.7723 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.231e-05/0.3822, allocations: 124.9 kB / 0.7724 GB, free: 14.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001107/0.3823, allocations: 226.7 kB / 0.7726 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.944e-05/0.3824, allocations: 11.98 kB / 0.7726 GB, free: 13.95 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.952e-05/0.3824, allocations: 125.5 kB / 0.7727 GB, free: 13.83 MB / 0.545 GB Notification: Performance of Backend: time 1.8e-07/0.3825, allocations: 0 / 0.7727 GB, free: 13.83 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006989/0.3832, allocations: 305.2 kB / 0.773 GB, free: 13.54 MB / 0.545 GB Notification: Performance of SimCode: time 0.0003596/0.3835, allocations: 0.6032 MB / 0.7736 GB, free: 12.89 MB / 0.545 GB Notification: Performance of Templates: time 0.004359/0.3879, allocations: 2.165 MB / 0.7757 GB, free: 10.73 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)