Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 99.98 kB / 16.94 MB, free: 5.867 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.001295/0.001295, allocations: 185.3 kB / 17.86 MB, free: 5.164 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.462/1.462, allocations: 222.9 MB / 241.6 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8509/0.8509, allocations: 125.4 MB / 417.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 67.91 kB / 0.4948 GB, free: 4.398 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3846/0.3866, allocations: 78.56 MB / 0.5715 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001781/0.3884, allocations: 0.5055 MB / 0.572 GB, free: 31.09 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002056/0.3905, allocations: 1.608 MB / 0.5736 GB, free: 29.95 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.116e-05/0.3906, allocations: 0 / 0.5736 GB, free: 29.95 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001956/0.3908, allocations: 63.94 kB / 0.5736 GB, free: 29.95 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.199e-05/0.3908, allocations: 30.77 kB / 0.5737 GB, free: 29.94 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.0009217/0.3918, allocations: 244.6 kB / 0.5739 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.079e-05/0.3919, allocations: 30.48 kB / 0.5739 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.619e-05/0.3919, allocations: 11.31 kB / 0.5739 GB, free: 29.83 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.121e-05/0.392, allocations: 22.45 kB / 0.574 GB, free: 29.83 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.259e-05/0.392, allocations: 37.62 kB / 0.574 GB, free: 29.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.323e-05/0.392, allocations: 1.344 kB / 0.574 GB, free: 29.82 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00051/0.3926, allocations: 286.7 kB / 0.5743 GB, free: 29.73 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.532e-05/0.3926, allocations: 26.41 kB / 0.5743 GB, free: 29.73 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.032e-05/0.3927, allocations: 30.8 kB / 0.5743 GB, free: 29.7 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004025/0.3931, allocations: 287 kB / 0.5746 GB, free: 29.62 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3931, allocations: 1.75 kB / 0.5746 GB, free: 29.62 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3931, allocations: 0 / 0.5746 GB, free: 29.62 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.3931, allocations: 0.5 kB / 0.5746 GB, free: 29.62 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.0003698/0.3935, allocations: 441.3 kB / 0.575 GB, free: 29.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.3935, allocations: 10.12 kB / 0.575 GB, free: 29.2 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.298e-05/0.3936, allocations: 8.422 kB / 0.575 GB, free: 29.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.3937, allocations: 190.6 kB / 0.5752 GB, free: 28.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/0.3937, allocations: 4.375 kB / 0.5752 GB, free: 28.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.3937, allocations: 2.469 kB / 0.5752 GB, free: 28.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.966e-05/0.3938, allocations: 46.42 kB / 0.5753 GB, free: 28.94 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.3938, allocations: 0 / 0.5753 GB, free: 28.94 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.515e-06/0.3939, allocations: 0.9688 kB / 0.5753 GB, free: 28.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3939, allocations: 1.641 kB / 0.5753 GB, free: 28.94 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.267e-05/0.3939, allocations: 22.38 kB / 0.5753 GB, free: 28.94 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001375/0.394, allocations: 189.8 kB / 0.5755 GB, free: 28.73 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.173e-05/0.3941, allocations: 25.38 kB / 0.5755 GB, free: 28.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.328e-05/0.3941, allocations: 17.36 kB / 0.5755 GB, free: 28.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.3942, allocations: 5.984 kB / 0.5755 GB, free: 28.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.659e-05/0.3942, allocations: 37.06 kB / 0.5755 GB, free: 28.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.3942, allocations: 0 / 0.5755 GB, free: 28.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001416/0.3943, allocations: 74.36 kB / 0.5756 GB, free: 28.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.077e-05/0.3944, allocations: 52.69 kB / 0.5757 GB, free: 28.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001633/0.3945, allocations: 207.1 kB / 0.5759 GB, free: 28.43 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.943e-06/0.3945, allocations: 25.7 kB / 0.5759 GB, free: 28.39 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.878e-05/0.3946, allocations: 107.5 kB / 0.576 GB, free: 28.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.02e-05/0.3946, allocations: 3.906 kB / 0.576 GB, free: 28.29 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.885e-05/0.3946, allocations: 29.73 kB / 0.576 GB, free: 28.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.993e-05/0.3947, allocations: 325.5 kB / 0.5763 GB, free: 27.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.553e-05/0.3948, allocations: 57.09 kB / 0.5764 GB, free: 27.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.443e-05/0.3948, allocations: 53.75 kB / 0.5764 GB, free: 27.94 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.462e-05/0.3949, allocations: 96.5 kB / 0.5765 GB, free: 27.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3949, allocations: 1.469 kB / 0.5765 GB, free: 27.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001659/0.3951, allocations: 162.1 kB / 0.5767 GB, free: 27.85 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.3951, allocations: 9.438 kB / 0.5767 GB, free: 27.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.3952, allocations: 9.312 kB / 0.5767 GB, free: 27.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.3952, allocations: 0.7969 kB / 0.5767 GB, free: 27.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.177e-05/0.3952, allocations: 0 / 0.5767 GB, free: 27.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3952, allocations: 3.297 kB / 0.5767 GB, free: 27.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.525e-05/0.3952, allocations: 10.59 kB / 0.5767 GB, free: 27.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.3952, allocations: 0 / 0.5767 GB, free: 27.83 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: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001104/0.3954, allocations: 136 kB / 0.5769 GB, free: 27.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.434e-05/0.3954, allocations: 15.88 kB / 0.5769 GB, free: 27.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.949e-05/0.3955, allocations: 68.39 kB / 0.5769 GB, free: 27.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.3955, allocations: 3.984 kB / 0.5769 GB, free: 27.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3955, allocations: 2.172 kB / 0.5769 GB, free: 27.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3955, allocations: 0 / 0.5769 GB, free: 27.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.446e-05/0.3956, allocations: 178.3 kB / 0.5771 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3956, allocations: 3.031 kB / 0.5771 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.049e-06/0.3956, allocations: 2.078 kB / 0.5771 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3956, allocations: 3.938 kB / 0.5771 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/0.3956, allocations: 1.891 kB / 0.5771 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3956, allocations: 3.938 kB / 0.5771 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3956, allocations: 4.688 kB / 0.5771 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.472e-05/0.3957, allocations: 81.92 kB / 0.5772 GB, free: 27.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.409e-05/0.3957, allocations: 92.91 kB / 0.5773 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.3958, allocations: 1.203 kB / 0.5773 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.311e-05/0.3958, allocations: 3.219 kB / 0.5773 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.109e-05/0.3958, allocations: 4.594 kB / 0.5773 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.3958, allocations: 0 / 0.5773 GB, free: 27.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.793e-05/0.3959, allocations: 150.3 kB / 0.5774 GB, free: 27.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3959, allocations: 1.469 kB / 0.5774 GB, free: 27.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000355/0.3963, allocations: 89.55 kB / 0.5775 GB, free: 27.16 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.0004926/0.3968, allocations: 224.6 kB / 0.5777 GB, free: 27.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001842/0.397, allocations: 126.3 kB / 0.5779 GB, free: 26.99 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.397, allocations: 4.781 kB / 0.5779 GB, free: 26.99 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.81e-05/0.397, allocations: 10.48 kB / 0.5779 GB, free: 26.99 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001439/0.3972, allocations: 4.188 kB / 0.5779 GB, free: 26.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002989/0.3975, allocations: 244.4 kB / 0.5781 GB, free: 26.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.3976, allocations: 0.7078 MB / 0.5788 GB, free: 26.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.345e-05/0.3976, allocations: 12.81 kB / 0.5788 GB, free: 26.1 MB / 446.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3976, allocations: 0 / 0.5788 GB, free: 26.1 MB / 446.1 MB Notification: Performance of Templates: time 0.004617/0.4023, allocations: 2.381 MB / 0.5811 GB, free: 25.33 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)