Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001477/0.001478, allocations: 113.5 kB / 17.08 MB, free: 5.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 193.2 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "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 / 245.7 MB, free: 4.203 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.245/1.245, allocations: 173.4 MB / 471.3 MB, free: 6.656 MB / 366.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 66.41 kB / 0.6489 GB, free: 22.87 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.1807, allocations: 89.53 MB / 0.7364 GB, free: 3.688 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001666/0.1824, allocations: 0.5071 MB / 0.7369 GB, free: 3.184 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002383/0.1848, allocations: 1.608 MB / 0.7384 GB, free: 1.559 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.074e-05/0.1849, allocations: 3.938 kB / 0.7384 GB, free: 1.555 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.185, allocations: 15.92 kB / 0.7385 GB, free: 1.539 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.597e-05/0.1851, allocations: 11.98 kB / 0.7385 GB, free: 1.527 MB / 0.545 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/IDEAS 3.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.0008339/0.1859, allocations: 245.4 kB / 0.7387 GB, free: 1.289 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.256e-05/0.186, allocations: 27.95 kB / 0.7387 GB, free: 1.262 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.422e-05/0.186, allocations: 4 kB / 0.7387 GB, free: 1.258 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.772e-05/0.1861, allocations: 11.92 kB / 0.7387 GB, free: 1.246 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 3.587e-05/0.1861, allocations: 11.98 kB / 0.7388 GB, free: 1.234 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.1861, allocations: 0 / 0.7388 GB, free: 1.234 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000552/0.1867, allocations: 339.5 kB / 0.7391 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.307e-05/0.1867, allocations: 19.92 kB / 0.7391 GB, free: 0.8828 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.081e-05/0.1868, allocations: 15.81 kB / 0.7391 GB, free: 0.8672 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004085/0.1872, allocations: 291.1 kB / 0.7394 GB, free: 0.582 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1872, allocations: 0 / 0.7394 GB, free: 0.582 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1872, allocations: 0 / 0.7394 GB, free: 0.582 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.1873, allocations: 4 kB / 0.7394 GB, free: 0.5781 MB / 0.545 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.0004516/0.1877, allocations: 402.7 kB / 0.7398 GB, free: 140 kB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.1878, allocations: 12.03 kB / 0.7398 GB, free: 128 kB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.359e-05/0.1878, allocations: 16.83 kB / 0.7398 GB, free: 112 kB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.188, allocations: 180.3 kB / 0.74 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-06/0.1881, allocations: 384 / 0.74 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.1881, allocations: 4.375 kB / 0.74 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.405e-05/0.1882, allocations: 46 kB / 0.74 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.1882, allocations: 0 / 0.74 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-06/0.1882, allocations: 0 / 0.74 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.1882, allocations: 0 / 0.74 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.412e-05/0.1882, allocations: 23.86 kB / 0.7401 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001807/0.1884, allocations: 173.7 kB / 0.7402 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.46e-05/0.1885, allocations: 22.58 kB / 0.7402 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.312e-05/0.1885, allocations: 12.92 kB / 0.7403 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.1886, allocations: 7.984 kB / 0.7403 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.1886, allocations: 34.5 kB / 0.7403 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 2.675e-06/0.1886, allocations: 3.984 kB / 0.7403 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001498/0.1887, allocations: 69.58 kB / 0.7404 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.1888, allocations: 55.53 kB / 0.7404 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.189, allocations: 170 kB / 0.7406 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.189, allocations: 25.7 kB / 0.7406 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.747e-05/0.1891, allocations: 96.12 kB / 0.7407 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.2e-05/0.1891, allocations: 3.953 kB / 0.7407 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.101e-05/0.1891, allocations: 29.66 kB / 0.7407 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1893, allocations: 318.8 kB / 0.741 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.002e-05/0.1894, allocations: 39.98 kB / 0.7411 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.873e-05/0.1894, allocations: 43.98 kB / 0.7411 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.014e-05/0.1895, allocations: 76.8 kB / 0.7412 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1895, allocations: 0 / 0.7412 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001656/0.1897, allocations: 129.5 kB / 0.7413 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1897, allocations: 11.94 kB / 0.7413 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.1897, allocations: 0 / 0.7413 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.1897, allocations: 0 / 0.7413 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.097e-05/0.1898, allocations: 0 / 0.7413 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.038e-06/0.1898, allocations: 0 / 0.7413 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.588e-05/0.1898, allocations: 15.89 kB / 0.7413 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.1898, allocations: 4.062 kB / 0.7413 GB, free: 14.36 MB / 0.5606 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.000217/0.19, allocations: 121.8 kB / 0.7415 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.901e-05/0.1901, allocations: 15.88 kB / 0.7415 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.1902, allocations: 57.5 kB / 0.7415 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1902, allocations: 4 kB / 0.7415 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.1902, allocations: 0 / 0.7415 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1902, allocations: 0 / 0.7415 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.1903, allocations: 173.7 kB / 0.7417 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1903, allocations: 0 / 0.7417 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.188e-06/0.1904, allocations: 0 / 0.7417 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.1904, allocations: 3.938 kB / 0.7417 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.1904, allocations: 4 kB / 0.7417 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1904, allocations: 0 / 0.7417 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1904, allocations: 0 / 0.7417 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.763e-05/0.1905, allocations: 77.08 kB / 0.7418 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.472e-05/0.1905, allocations: 93.02 kB / 0.7419 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.095e-05/0.1906, allocations: 0 / 0.7419 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.111e-05/0.1906, allocations: 0 / 0.7419 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.357e-05/0.1906, allocations: 4 kB / 0.7419 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.1906, allocations: 0 / 0.7419 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.542e-05/0.1907, allocations: 122.5 kB / 0.742 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1907, allocations: 3.938 kB / 0.742 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003142/0.191, allocations: 87.8 kB / 0.7421 GB, free: 13.51 MB / 0.5606 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.0005159/0.1916, allocations: 239.9 kB / 0.7423 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001697/0.1917, allocations: 93.67 kB / 0.7424 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.1917, allocations: 4 kB / 0.7424 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.759e-05/0.1918, allocations: 11.98 kB / 0.7424 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.1919, allocations: 8.125 kB / 0.7424 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002909/0.1922, allocations: 198.8 kB / 0.7426 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.1925, allocations: 0.6924 MB / 0.7433 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.796e-05/0.1926, allocations: 11.44 kB / 0.7433 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.1926, allocations: 0 / 0.7433 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of Templates: time 0.004512/0.1971, allocations: 2.251 MB / 0.7455 GB, free: 9.957 MB / 0.5606 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.818380034994334] Failed to read output from testmodel.py, exit status != 0: 0.20372736104764044 0.217067961 0.027199099 Calling exit ...