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.001198/0.001198, allocations: 107.2 kB / 16.41 MB, free: 6.438 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.001249/0.001249, allocations: 190.7 kB / 17.35 MB, free: 5.703 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.251/1.251, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002107/0.002107, allocations: 280.7 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.877/0.877, allocations: 169.2 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 99.83 kB / 0.6821 GB, free: 7.012 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.357, allocations: 86.97 MB / 0.767 GB, free: 4.121 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001471/0.3585, allocations: 0.5181 MB / 0.7675 GB, free: 3.609 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001842/0.3604, allocations: 1.616 MB / 0.7691 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.331e-05/0.3604, allocations: 0 / 0.7691 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.3606, allocations: 19.92 kB / 0.7691 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.025e-05/0.3606, allocations: 7.984 kB / 0.7691 GB, free: 1.949 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.000745/0.3613, allocations: 251.2 kB / 0.7694 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.455e-05/0.3614, allocations: 15.97 kB / 0.7694 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 2.973e-05/0.3614, allocations: 8 kB / 0.7694 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.829e-05/0.3615, allocations: 19.92 kB / 0.7694 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.485e-05/0.3615, allocations: 15.92 kB / 0.7694 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.25e-05/0.3615, allocations: 0 / 0.7694 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004839/0.362, allocations: 331.5 kB / 0.7697 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.163e-05/0.3621, allocations: 19.98 kB / 0.7698 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.402e-05/0.3621, allocations: 15.81 kB / 0.7698 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.3625, allocations: 283.3 kB / 0.77 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.3625, allocations: 0 / 0.77 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of FrontEnd: time 9.22e-07/0.3625, allocations: 0 / 0.77 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.3626, allocations: 4 kB / 0.7701 GB, free: 1.004 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.0003575/0.3629, allocations: 413.5 kB / 0.7704 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.913e-05/0.363, allocations: 8.031 kB / 0.7705 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.163e-05/0.363, allocations: 12.83 kB / 0.7705 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.3632, allocations: 179.1 kB / 0.7706 GB, free: 336 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.934e-06/0.3632, allocations: 4.312 kB / 0.7706 GB, free: 332 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-06/0.3632, allocations: 384 / 0.7706 GB, free: 332 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.028e-05/0.3633, allocations: 42 kB / 0.7707 GB, free: 284 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-06/0.3633, allocations: 0 / 0.7707 GB, free: 284 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.891e-06/0.3633, allocations: 7.938 kB / 0.7707 GB, free: 276 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-06/0.3633, allocations: 0 / 0.7707 GB, free: 276 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.787e-05/0.3633, allocations: 19.92 kB / 0.7707 GB, free: 256 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001444/0.3635, allocations: 181.6 kB / 0.7709 GB, free: 24 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 4.12e-05/0.3635, allocations: 22.58 kB / 0.7709 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.033e-05/0.3636, allocations: 8.922 kB / 0.7709 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.3636, allocations: 7.984 kB / 0.7709 GB, free: 15.97 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.3636, allocations: 42.5 kB / 0.771 GB, free: 15.92 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 2.234e-06/0.3636, allocations: 3.984 kB / 0.771 GB, free: 15.92 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.000126/0.3638, allocations: 61.53 kB / 0.771 GB, free: 15.85 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.346e-05/0.3638, allocations: 55.41 kB / 0.7711 GB, free: 15.79 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.3639, allocations: 162.2 kB / 0.7712 GB, free: 15.61 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.3639, allocations: 29.7 kB / 0.7713 GB, free: 15.58 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.175e-05/0.364, allocations: 92.12 kB / 0.7713 GB, free: 15.48 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.947e-06/0.364, allocations: 8.031 kB / 0.7714 GB, free: 15.48 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-05/0.364, allocations: 25.72 kB / 0.7714 GB, free: 15.45 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3641, allocations: 326.8 kB / 0.7717 GB, free: 15.12 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.68e-05/0.3642, allocations: 35.98 kB / 0.7717 GB, free: 15.08 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.551e-05/0.3642, allocations: 35.98 kB / 0.7718 GB, free: 15.05 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.255e-05/0.3643, allocations: 72.81 kB / 0.7718 GB, free: 14.97 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3643, allocations: 0 / 0.7718 GB, free: 14.97 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001596/0.3645, allocations: 129.5 kB / 0.7719 GB, free: 14.84 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.3645, allocations: 7.938 kB / 0.772 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3645, allocations: 4.062 kB / 0.772 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.3645, allocations: 8 kB / 0.772 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.028e-05/0.3646, allocations: 0 / 0.772 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.3646, allocations: 0 / 0.772 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.251e-05/0.3646, allocations: 7.844 kB / 0.772 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.3646, allocations: 4 kB / 0.772 GB, free: 14.81 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.0001288/0.3647, allocations: 128.2 kB / 0.7721 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.295e-05/0.3648, allocations: 11.84 kB / 0.7721 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.077e-05/0.3648, allocations: 65.5 kB / 0.7722 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.3649, allocations: 0 / 0.7722 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.3649, allocations: 0 / 0.7722 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.311e-05/0.3649, allocations: 81.02 kB / 0.7723 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.3649, allocations: 4 kB / 0.7723 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.198e-05/0.3649, allocations: 0 / 0.7723 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.708e-06/0.3649, allocations: 3.984 kB / 0.7723 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.41e-05/0.365, allocations: 121 kB / 0.7724 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001163/0.3652, allocations: 234.7 kB / 0.7726 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.723e-05/0.3652, allocations: 8 kB / 0.7726 GB, free: 14.11 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.233e-05/0.3653, allocations: 121.5 kB / 0.7727 GB, free: 13.99 MB / 0.545 GB Notification: Performance of Backend: time 2.4e-07/0.3653, allocations: 3.938 kB / 0.7727 GB, free: 13.99 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000716/0.366, allocations: 295.6 kB / 0.773 GB, free: 13.71 MB / 0.545 GB Notification: Performance of SimCode: time 0.0003446/0.3663, allocations: 0.6036 MB / 0.7736 GB, free: 13.06 MB / 0.545 GB Notification: Performance of Templates: time 0.004415/0.3708, allocations: 2.165 MB / 0.7757 GB, free: 10.89 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)