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.001873/0.001873, allocations: 104.9 kB / 16.39 MB, free: 6.371 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.002117/0.002117, allocations: 192.6 kB / 19.35 MB, free: 3.836 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.426/1.426, allocations: 222.9 MB / 245 MB, free: 15.01 MB / 206.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.067/1.067, allocations: 173.4 MB / 470.7 MB, free: 13.61 MB / 382.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: "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 68.33 kB / 0.6478 GB, free: 11.76 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1874, allocations: 89.53 MB / 0.7352 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001609/0.1891, allocations: 0.5012 MB / 0.7357 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002274/0.1914, allocations: 1.6 MB / 0.7373 GB, free: 120 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.246e-05/0.1914, allocations: 4 kB / 0.7373 GB, free: 116 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001336/0.1916, allocations: 19.92 kB / 0.7373 GB, free: 96 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.38e-05/0.1916, allocations: 7.984 kB / 0.7373 GB, free: 88 kB / 0.5606 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.0008799/0.1925, allocations: 253.4 kB / 0.7375 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.916e-05/0.1926, allocations: 27.91 kB / 0.7376 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.473e-05/0.1926, allocations: 0 / 0.7376 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 2.965e-05/0.1927, allocations: 11.98 kB / 0.7376 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.093e-05/0.1927, allocations: 19.92 kB / 0.7376 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.1927, allocations: 0 / 0.7376 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005456/0.1933, allocations: 331.5 kB / 0.7379 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.154e-05/0.1933, allocations: 23.92 kB / 0.7379 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.724e-05/0.1934, allocations: 15.81 kB / 0.738 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004085/0.1938, allocations: 287.4 kB / 0.7382 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1938, allocations: 3.938 kB / 0.7382 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.653e-06/0.1938, allocations: 0 / 0.7382 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.1938, allocations: 0 / 0.7382 GB, free: 15.13 MB / 0.5762 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.0004786/0.1943, allocations: 418.7 kB / 0.7386 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.1943, allocations: 8.031 kB / 0.7386 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.228e-05/0.1944, allocations: 34.75 kB / 0.7387 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.614e-05/0.1944, allocations: 4.891 kB / 0.7387 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001802/0.1946, allocations: 180.3 kB / 0.7388 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.1946, allocations: 8.344 kB / 0.7389 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.1946, allocations: 384 / 0.7389 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.391e-05/0.1947, allocations: 41.83 kB / 0.7389 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.1947, allocations: 0 / 0.7389 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.1947, allocations: 4 kB / 0.7389 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1948, allocations: 0 / 0.7389 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.343e-05/0.1948, allocations: 23.92 kB / 0.7389 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001885/0.195, allocations: 173.6 kB / 0.7391 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.914e-05/0.195, allocations: 26.58 kB / 0.7391 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.791e-05/0.1951, allocations: 16.91 kB / 0.7391 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.1951, allocations: 7.938 kB / 0.7391 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.1952, allocations: 38.5 kB / 0.7392 GB, free: 14 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1952, allocations: 0 / 0.7392 GB, free: 14 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001488/0.1953, allocations: 65.58 kB / 0.7392 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.1954, allocations: 51.41 kB / 0.7393 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.1955, allocations: 177.5 kB / 0.7395 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.1956, allocations: 25.7 kB / 0.7395 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.827e-05/0.1956, allocations: 96.12 kB / 0.7396 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.654e-06/0.1956, allocations: 0 / 0.7396 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.652e-05/0.1957, allocations: 29.83 kB / 0.7396 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1958, allocations: 322.8 kB / 0.7399 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.785e-05/0.1959, allocations: 39.98 kB / 0.7399 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.973e-05/0.1959, allocations: 47.97 kB / 0.74 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.224e-05/0.196, allocations: 64.83 kB / 0.7401 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1961, allocations: 0 / 0.7401 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001675/0.1962, allocations: 141.5 kB / 0.7402 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.1962, allocations: 4 kB / 0.7402 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.1963, allocations: 4 kB / 0.7402 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1963, allocations: 4.062 kB / 0.7402 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.131e-05/0.1963, allocations: 0 / 0.7402 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.1963, allocations: 0 / 0.7402 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.56e-05/0.1963, allocations: 11.94 kB / 0.7402 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.1964, allocations: 0 / 0.7402 GB, free: 12.87 MB / 0.5762 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.0001818/0.1965, allocations: 125.1 kB / 0.7403 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.408e-05/0.1966, allocations: 11.83 kB / 0.7403 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001217/0.1967, allocations: 65.5 kB / 0.7404 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.1967, allocations: 0 / 0.7404 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1967, allocations: 0 / 0.7404 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1967, allocations: 3.938 kB / 0.7404 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001407/0.1969, allocations: 173.7 kB / 0.7406 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1969, allocations: 0 / 0.7406 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.913e-06/0.1969, allocations: 3.938 kB / 0.7406 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1969, allocations: 0 / 0.7406 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.059e-06/0.1969, allocations: 0 / 0.7406 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1969, allocations: 0 / 0.7406 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1969, allocations: 0 / 0.7406 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.405e-05/0.197, allocations: 81.09 kB / 0.7407 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.437e-05/0.1971, allocations: 93 kB / 0.7407 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.1971, allocations: 0 / 0.7407 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.132e-05/0.1971, allocations: 0 / 0.7407 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.646e-05/0.1971, allocations: 0 / 0.7407 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.147e-06/0.1971, allocations: 7.938 kB / 0.7408 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001005/0.1972, allocations: 122.7 kB / 0.7409 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1972, allocations: 4.031 kB / 0.7409 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003214/0.1976, allocations: 87.8 kB / 0.741 GB, free: 12.01 MB / 0.5762 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.0008079/0.1984, allocations: 0.7477 MB / 0.7417 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001703/0.1986, allocations: 97.66 kB / 0.7418 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1986, allocations: 0 / 0.7418 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.728e-05/0.1986, allocations: 11.94 kB / 0.7418 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001391/0.1987, allocations: 15.91 kB / 0.7418 GB, free: 11.13 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.2001, allocations: 1.527 MB / 0.7433 GB, free: 9.52 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.2005, allocations: 0.6924 MB / 0.744 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.938e-05/0.2005, allocations: 4.031 kB / 0.744 GB, free: 8.797 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.28e-05/0.2006, allocations: 23.42 kB / 0.744 GB, free: 8.773 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/0.2006, allocations: 0 / 0.744 GB, free: 8.773 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02443/0.225, allocations: 3.471 MB / 0.7474 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.035/8.26, allocations: 8.625 kB / 0.7474 GB, free: 5.367 MB / 0.5762 GB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_1d.fmu > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.25208061793819] Failed to read output from testmodel.py, exit status != 0: 8.326586259994656 8.625489584 8.429427942 Calling exit ...