Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/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: translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001385/0.001385, allocations: 104.4 kB / 15.98 MB, free: 6.344 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.001494/0.001494, allocations: 194.9 kB / 16.91 MB, free: 6.195 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.325/1.325, allocations: 222.9 MB / 240.6 MB, free: 13.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7465/0.7465, allocations: 122.9 MB / 413.6 MB, free: 8 kB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 63.91 kB / 0.4906 GB, free: 7.762 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3565, allocations: 77.91 MB / 0.5667 GB, free: 31.96 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001752/0.3583, allocations: 0.5815 MB / 0.5673 GB, free: 31.61 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.3602, allocations: 1.593 MB / 0.5688 GB, free: 30.48 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.934e-05/0.3603, allocations: 0 / 0.5688 GB, free: 30.48 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.3604, allocations: 15.72 kB / 0.5688 GB, free: 30.48 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.83e-05/0.3605, allocations: 12.53 kB / 0.5689 GB, free: 30.47 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.0008436/0.3613, allocations: 229.8 kB / 0.5691 GB, free: 30.38 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.743e-05/0.3614, allocations: 24.03 kB / 0.5691 GB, free: 30.38 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.3614, allocations: 7.359 kB / 0.5691 GB, free: 30.37 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.145e-05/0.3615, allocations: 14.56 kB / 0.5691 GB, free: 30.37 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.359e-05/0.3615, allocations: 13.36 kB / 0.5691 GB, free: 30.37 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.3615, allocations: 3.984 kB / 0.5691 GB, free: 30.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004967/0.362, allocations: 286.5 kB / 0.5694 GB, free: 30.27 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.184e-05/0.3621, allocations: 19.52 kB / 0.5694 GB, free: 30.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.664e-05/0.3621, allocations: 20.73 kB / 0.5694 GB, free: 30.25 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004081/0.3625, allocations: 276.6 kB / 0.5697 GB, free: 30.18 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3626, allocations: 4.656 kB / 0.5697 GB, free: 30.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3626, allocations: 5.594 kB / 0.5697 GB, free: 30.17 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.3626, allocations: 3.562 kB / 0.5697 GB, free: 30.17 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.0003407/0.3629, allocations: 401.9 kB / 0.5701 GB, free: 29.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.363, allocations: 10.75 kB / 0.5701 GB, free: 29.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.124e-05/0.363, allocations: 7.312 kB / 0.5701 GB, free: 29.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001089/0.3631, allocations: 178.9 kB / 0.5703 GB, free: 29.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.3631, allocations: 5.719 kB / 0.5703 GB, free: 29.56 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-06/0.3631, allocations: 384 / 0.5703 GB, free: 29.56 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.408e-05/0.3632, allocations: 44.16 kB / 0.5703 GB, free: 29.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.63e-06/0.3632, allocations: 0.5625 kB / 0.5703 GB, free: 29.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.303e-06/0.3633, allocations: 0.5625 kB / 0.5703 GB, free: 29.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.3633, allocations: 1.156 kB / 0.5703 GB, free: 29.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.121e-05/0.3633, allocations: 21.33 kB / 0.5704 GB, free: 29.52 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001339/0.3634, allocations: 178.3 kB / 0.5705 GB, free: 29.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.168e-05/0.3635, allocations: 23.92 kB / 0.5706 GB, free: 29.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.127e-05/0.3635, allocations: 14.47 kB / 0.5706 GB, free: 29.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.3636, allocations: 6.859 kB / 0.5706 GB, free: 29.29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.811e-05/0.3636, allocations: 36.28 kB / 0.5706 GB, free: 29.24 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.3636, allocations: 1 kB / 0.5706 GB, free: 29.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001415/0.3637, allocations: 68 kB / 0.5707 GB, free: 29.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.996e-05/0.3638, allocations: 52 kB / 0.5707 GB, free: 29.14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.3639, allocations: 166.9 kB / 0.5709 GB, free: 29.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.314e-06/0.3639, allocations: 25.7 kB / 0.5709 GB, free: 28.99 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.3639, allocations: 98.95 kB / 0.571 GB, free: 28.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.778e-06/0.364, allocations: 2.344 kB / 0.571 GB, free: 28.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.566e-05/0.364, allocations: 24.97 kB / 0.571 GB, free: 28.88 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.888e-05/0.3641, allocations: 321.9 kB / 0.5713 GB, free: 28.56 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.44e-05/0.3641, allocations: 41.44 kB / 0.5714 GB, free: 28.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.499e-05/0.3642, allocations: 45.14 kB / 0.5714 GB, free: 28.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.452e-05/0.3643, allocations: 67.91 kB / 0.5715 GB, free: 28.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3643, allocations: 0 / 0.5715 GB, free: 28.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001491/0.3644, allocations: 133.8 kB / 0.5716 GB, free: 28.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3644, allocations: 9.031 kB / 0.5716 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.3645, allocations: 2.719 kB / 0.5716 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.3645, allocations: 1.094 kB / 0.5716 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.344e-05/0.3645, allocations: 0.6562 kB / 0.5716 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.3645, allocations: 3.125 kB / 0.5716 GB, free: 28.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.222e-05/0.3645, allocations: 9.719 kB / 0.5716 GB, free: 28.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.3646, allocations: 1.719 kB / 0.5716 GB, free: 28.46 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: 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.0001428/0.3647, allocations: 122.4 kB / 0.5718 GB, free: 28.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.3647, allocations: 11.02 kB / 0.5718 GB, free: 28.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.3648, allocations: 62.95 kB / 0.5718 GB, free: 28.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3648, allocations: 5.703 kB / 0.5718 GB, free: 28.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3649, allocations: 0 / 0.5718 GB, free: 28.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3649, allocations: 0.9688 kB / 0.5718 GB, free: 28.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.841e-05/0.365, allocations: 171 kB / 0.572 GB, free: 28.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.365, allocations: 0 / 0.572 GB, free: 28.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.42e-06/0.365, allocations: 1.75 kB / 0.572 GB, free: 28.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.365, allocations: 4.781 kB / 0.572 GB, free: 28.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.365, allocations: 1.062 kB / 0.572 GB, free: 28.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.365, allocations: 1.672 kB / 0.572 GB, free: 28.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.365, allocations: 1.125 kB / 0.572 GB, free: 28.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.213e-05/0.3651, allocations: 78.89 kB / 0.5721 GB, free: 28.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.231e-05/0.3651, allocations: 88.08 kB / 0.5722 GB, free: 27.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.3651, allocations: 1.25 kB / 0.5722 GB, free: 27.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.178e-05/0.3651, allocations: 5.781 kB / 0.5722 GB, free: 27.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.759e-06/0.3652, allocations: 0 / 0.5722 GB, free: 27.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.3652, allocations: 1.625 kB / 0.5722 GB, free: 27.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.224e-05/0.3652, allocations: 124 kB / 0.5723 GB, free: 27.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3653, allocations: 1.625 kB / 0.5723 GB, free: 27.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003567/0.3656, allocations: 88.55 kB / 0.5724 GB, free: 27.82 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.0004296/0.366, allocations: 234.4 kB / 0.5726 GB, free: 27.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001397/0.3662, allocations: 97.95 kB / 0.5727 GB, free: 27.65 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.3662, allocations: 0.5312 kB / 0.5727 GB, free: 27.65 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.54e-05/0.3662, allocations: 13.91 kB / 0.5727 GB, free: 27.65 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.3664, allocations: 5.844 kB / 0.5727 GB, free: 27.65 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002305/0.3666, allocations: 178.6 kB / 0.5729 GB, free: 27.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001198/0.3667, allocations: 0.6922 MB / 0.5736 GB, free: 26.81 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.612e-05/0.3668, allocations: 3.609 kB / 0.5736 GB, free: 26.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.102e-05/0.3668, allocations: 10.34 kB / 0.5736 GB, free: 26.8 MB / 446.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3668, allocations: 0 / 0.5736 GB, free: 26.8 MB / 446.1 MB Notification: Performance of Templates: time 0.004997/0.3718, allocations: 2.085 MB / 0.5756 GB, free: 26.69 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)