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.001842/0.001842, allocations: 106.8 kB / 16.4 MB, free: 6.445 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.002065/0.002065, allocations: 191.7 kB / 19.36 MB, free: 3.727 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.388/1.388, allocations: 222.9 MB / 245.1 MB, free: 15.03 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.15/1.15, allocations: 173.4 MB / 470.7 MB, free: 13.61 MB / 382.1 MB " [Timeout remaining time 178] 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.001978/0.001978, allocations: 64.61 kB / 0.6478 GB, free: 11.78 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1797, allocations: 89.51 MB / 0.7352 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001828/0.1816, allocations: 0.511 MB / 0.7357 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002424/0.1841, allocations: 1.608 MB / 0.7373 GB, free: 148 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.738e-05/0.1841, allocations: 0 / 0.7373 GB, free: 148 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.1843, allocations: 19.91 kB / 0.7373 GB, free: 128 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.415e-05/0.1844, allocations: 7.938 kB / 0.7373 GB, free: 120 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.001014/0.1854, allocations: 247.3 kB / 0.7375 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.789e-05/0.1855, allocations: 27.86 kB / 0.7376 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.508e-05/0.1855, allocations: 0 / 0.7376 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.438e-05/0.1855, allocations: 15.97 kB / 0.7376 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.1857, allocations: 15.92 kB / 0.7376 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.1857, allocations: 0 / 0.7376 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005985/0.1863, allocations: 339.4 kB / 0.7379 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.391e-05/0.1864, allocations: 19.92 kB / 0.7379 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.099e-05/0.1864, allocations: 19.81 kB / 0.738 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000447/0.1869, allocations: 279.5 kB / 0.7382 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1869, allocations: 0 / 0.7382 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.854e-06/0.1869, allocations: 0 / 0.7382 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.1869, allocations: 0 / 0.7382 GB, free: 15.17 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.0004836/0.1874, allocations: 416.9 kB / 0.7386 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1874, allocations: 12.03 kB / 0.7386 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.897e-05/0.1875, allocations: 30.75 kB / 0.7387 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.939e-05/0.1875, allocations: 4.891 kB / 0.7387 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.1877, allocations: 188.2 kB / 0.7389 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.321e-06/0.1877, allocations: 4.375 kB / 0.7389 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.1878, allocations: 8.375 kB / 0.7389 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.55e-05/0.1879, allocations: 37.83 kB / 0.7389 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.1879, allocations: 0 / 0.7389 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-06/0.1879, allocations: 0 / 0.7389 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1879, allocations: 4 kB / 0.7389 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.986e-05/0.1879, allocations: 15.98 kB / 0.7389 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002048/0.1881, allocations: 177.6 kB / 0.7391 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.015e-05/0.1882, allocations: 38.5 kB / 0.7391 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.45e-05/0.1882, allocations: 16.91 kB / 0.7391 GB, free: 14.08 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.1883, allocations: 4 kB / 0.7391 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.1883, allocations: 38.44 kB / 0.7392 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1883, allocations: 0 / 0.7392 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001575/0.1885, allocations: 69.62 kB / 0.7393 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.1885, allocations: 51.41 kB / 0.7393 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.1887, allocations: 173.6 kB / 0.7395 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.1887, allocations: 29.64 kB / 0.7395 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.32e-05/0.1888, allocations: 96.12 kB / 0.7396 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.157e-06/0.1888, allocations: 0 / 0.7396 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/0.1889, allocations: 29.7 kB / 0.7396 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002367/0.1891, allocations: 322.8 kB / 0.7399 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.024e-05/0.1892, allocations: 39.98 kB / 0.74 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.833e-05/0.1892, allocations: 39.98 kB / 0.74 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.835e-05/0.1893, allocations: 72.84 kB / 0.7401 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1893, allocations: 0 / 0.7401 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000269/0.1896, allocations: 137.5 kB / 0.7402 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.1896, allocations: 10.03 kB / 0.7402 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.1897, allocations: 3.984 kB / 0.7402 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.1897, allocations: 0 / 0.7402 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.766e-05/0.1897, allocations: 3.938 kB / 0.7402 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.1897, allocations: 0 / 0.7402 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.808e-05/0.1897, allocations: 7.953 kB / 0.7402 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.1898, allocations: 3.938 kB / 0.7402 GB, free: 12.9 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.0001802/0.1899, allocations: 125.9 kB / 0.7403 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.76e-05/0.19, allocations: 11.89 kB / 0.7404 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.1901, allocations: 53.56 kB / 0.7404 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1901, allocations: 7.984 kB / 0.7404 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1901, allocations: 0 / 0.7404 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.1901, allocations: 0 / 0.7404 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.1903, allocations: 165.7 kB / 0.7406 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1903, allocations: 0 / 0.7406 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.103e-06/0.1903, allocations: 7.969 kB / 0.7406 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.1903, allocations: 3.984 kB / 0.7406 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.1903, allocations: 4 kB / 0.7406 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.1903, allocations: 3.938 kB / 0.7406 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1903, allocations: 0 / 0.7406 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.403e-05/0.1904, allocations: 77.08 kB / 0.7407 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.5e-05/0.1905, allocations: 85 kB / 0.7408 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.1905, allocations: 0 / 0.7408 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.258e-05/0.1906, allocations: 4.031 kB / 0.7408 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.688e-05/0.1906, allocations: 8 kB / 0.7408 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-06/0.1906, allocations: 0 / 0.7408 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001011/0.1907, allocations: 123.2 kB / 0.7409 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1907, allocations: 3.938 kB / 0.7409 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003889/0.1911, allocations: 87.8 kB / 0.741 GB, free: 12.04 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.000904/0.192, allocations: 0.7383 MB / 0.7417 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001935/0.1922, allocations: 101.6 kB / 0.7418 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.1922, allocations: 4.094 kB / 0.7418 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.596e-05/0.1923, allocations: 8 kB / 0.7418 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/0.1924, allocations: 15.84 kB / 0.7418 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.1942, allocations: 1.534 MB / 0.7433 GB, free: 9.547 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004323/0.1946, allocations: 0.6924 MB / 0.744 GB, free: 8.828 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.717e-05/0.1947, allocations: 3.984 kB / 0.744 GB, free: 8.824 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.234e-05/0.1947, allocations: 19.44 kB / 0.744 GB, free: 8.805 MB / 0.5762 GB Notification: Performance of SimCode: time 6.31e-07/0.1947, allocations: 0 / 0.744 GB, free: 8.805 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.2212, allocations: 3.463 MB / 0.7474 GB, free: 5.418 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.18/8.402, allocations: 16.62 kB / 0.7474 GB, free: 5.402 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.56254974217154] Failed to read output from testmodel.py, exit status != 0: 8.474534024018794 8.806927657 8.617785138 Calling exit ...