Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 113.9 kB / 16.41 MB, free: 6.508 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.001313/0.001313, allocations: 191.7 kB / 19.35 MB, free: 3.734 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.436/1.436, allocations: 222.9 MB / 245.1 MB, free: 15 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.063/1.063, allocations: 173.4 MB / 470.6 MB, free: 13.64 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_2d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 73.14 kB / 0.6477 GB, free: 11.84 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1768, allocations: 89.51 MB / 0.7352 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001623/0.1784, allocations: 0.5072 MB / 0.7356 GB, free: 1.84 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002497/0.1809, allocations: 1.604 MB / 0.7372 GB, free: 224 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.229e-05/0.181, allocations: 0 / 0.7372 GB, free: 224 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002209/0.1812, allocations: 63.84 kB / 0.7373 GB, free: 160 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.421e-05/0.1813, allocations: 31.89 kB / 0.7373 GB, free: 128 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.001001/0.1823, allocations: 246.6 kB / 0.7375 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.688e-05/0.1824, allocations: 35.84 kB / 0.7376 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.903e-05/0.1825, allocations: 11.98 kB / 0.7376 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.123e-05/0.1825, allocations: 19.97 kB / 0.7376 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7e-05/0.1826, allocations: 39.89 kB / 0.7376 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.1826, allocations: 0 / 0.7376 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005857/0.1832, allocations: 335.5 kB / 0.738 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.392e-05/0.1833, allocations: 27.92 kB / 0.738 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 4.058e-05/0.1833, allocations: 27.75 kB / 0.738 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004256/0.1838, allocations: 287.4 kB / 0.7383 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.1838, allocations: 4 kB / 0.7383 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.392e-06/0.1838, allocations: 0 / 0.7383 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.1838, allocations: 0 / 0.7383 GB, free: 15.11 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.0004904/0.1843, allocations: 438.4 kB / 0.7387 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.1843, allocations: 8.031 kB / 0.7387 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.603e-05/0.1844, allocations: 38.69 kB / 0.7388 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.842e-05/0.1844, allocations: 12.84 kB / 0.7388 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/0.1846, allocations: 200 kB / 0.739 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.302e-06/0.1846, allocations: 384 / 0.739 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.629e-05/0.1847, allocations: 8.312 kB / 0.739 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.383e-05/0.1847, allocations: 41.81 kB / 0.739 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.1848, allocations: 0 / 0.739 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.112e-06/0.1848, allocations: 4 kB / 0.739 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.1848, allocations: 0 / 0.739 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.676e-05/0.1848, allocations: 15.98 kB / 0.739 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001901/0.185, allocations: 185.7 kB / 0.7392 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.544e-05/0.1851, allocations: 34.5 kB / 0.7392 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.59e-05/0.1851, allocations: 20.92 kB / 0.7393 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 4.049e-05/0.1852, allocations: 15.89 kB / 0.7393 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.1852, allocations: 34.5 kB / 0.7393 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1852, allocations: 0 / 0.7393 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001562/0.1854, allocations: 65.59 kB / 0.7394 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.1854, allocations: 59.47 kB / 0.7394 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000232/0.1856, allocations: 219.4 kB / 0.7396 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.1857, allocations: 25.7 kB / 0.7397 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.16e-05/0.1857, allocations: 104.1 kB / 0.7398 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.087e-06/0.1858, allocations: 0 / 0.7398 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.798e-05/0.1858, allocations: 33.7 kB / 0.7398 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.186, allocations: 322.8 kB / 0.7401 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.478e-05/0.1861, allocations: 51.98 kB / 0.7401 GB, free: 12.99 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.531e-05/0.1861, allocations: 59.97 kB / 0.7402 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.1863, allocations: 92.78 kB / 0.7403 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1863, allocations: 0 / 0.7403 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001991/0.1865, allocations: 175.8 kB / 0.7405 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.1865, allocations: 8 kB / 0.7405 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.1865, allocations: 0 / 0.7405 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1865, allocations: 0 / 0.7405 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.319e-05/0.1866, allocations: 0 / 0.7405 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.1866, allocations: 0 / 0.7405 GB, free: 12.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.21e-05/0.1866, allocations: 11.89 kB / 0.7405 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.1866, allocations: 4.062 kB / 0.7405 GB, free: 12.64 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: 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.0001954/0.1868, allocations: 133.8 kB / 0.7406 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.058e-05/0.1868, allocations: 15.84 kB / 0.7406 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.187, allocations: 58.25 kB / 0.7407 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.187, allocations: 0 / 0.7407 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.187, allocations: 0 / 0.7407 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.187, allocations: 4 kB / 0.7407 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.1871, allocations: 181.6 kB / 0.7409 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.1872, allocations: 4.031 kB / 0.7409 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.287e-05/0.1872, allocations: 11.88 kB / 0.7409 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1872, allocations: 0 / 0.7409 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.1872, allocations: 0 / 0.7409 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1872, allocations: 0 / 0.7409 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1872, allocations: 0 / 0.7409 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.365e-05/0.1873, allocations: 81.03 kB / 0.7409 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.634e-05/0.1874, allocations: 97.02 kB / 0.741 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.1874, allocations: 4 kB / 0.741 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.266e-05/0.1874, allocations: 0 / 0.741 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.721e-05/0.1874, allocations: 4 kB / 0.741 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-06/0.1874, allocations: 0 / 0.741 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001343/0.1876, allocations: 152.9 kB / 0.7412 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1876, allocations: 0 / 0.7412 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003282/0.1879, allocations: 87.8 kB / 0.7413 GB, free: 11.71 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.0008038/0.1887, allocations: 0.7497 MB / 0.742 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001977/0.1889, allocations: 129.7 kB / 0.7421 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1889, allocations: 0 / 0.7421 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 2.208e-05/0.189, allocations: 15.98 kB / 0.7422 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.1891, allocations: 4 kB / 0.7422 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.191, allocations: 1.82 MB / 0.7439 GB, free: 8.898 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.1913, allocations: 0.7002 MB / 0.7446 GB, free: 8.172 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.862e-05/0.1913, allocations: 0 / 0.7446 GB, free: 8.172 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.663e-05/0.1914, allocations: 35.36 kB / 0.7446 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/0.1914, allocations: 0 / 0.7446 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02522/0.2166, allocations: 3.861 MB / 0.7484 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.045/8.262, allocations: 19.34 kB / 0.7484 GB, free: 4.34 MB / 0.5762 GB " [Timeout remaining time 652] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d_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_2d.fmu > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.332938503008336] Failed to read output from testmodel.py, exit status != 0: 8.333000190905295 8.626681479 8.439335328 Calling exit ...