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.001277/0.001277, allocations: 111.4 kB / 16.41 MB, free: 6.496 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.001278/0.001278, allocations: 191.7 kB / 19.36 MB, free: 3.75 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.404/1.404, allocations: 222.9 MB / 245.1 MB, free: 15.02 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.074/1.074, allocations: 173.5 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_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.001952/0.001952, allocations: 72.75 kB / 0.6478 GB, free: 11.8 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1792, allocations: 89.52 MB / 0.7352 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001656/0.1809, allocations: 0.5167 MB / 0.7357 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002415/0.1833, allocations: 1.6 MB / 0.7373 GB, free: 156 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.484e-05/0.1834, allocations: 0 / 0.7373 GB, free: 156 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002113/0.1836, allocations: 63.86 kB / 0.7373 GB, free: 92 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.127e-05/0.1836, allocations: 31.94 kB / 0.7374 GB, free: 60 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.0009173/0.1846, allocations: 239.3 kB / 0.7376 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.725e-05/0.1847, allocations: 47.83 kB / 0.7377 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.625e-05/0.1847, allocations: 0 / 0.7377 GB, free: 15.78 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.976e-05/0.1847, allocations: 19.98 kB / 0.7377 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.717e-05/0.1848, allocations: 43.88 kB / 0.7377 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.1848, allocations: 4 kB / 0.7377 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005519/0.1854, allocations: 323.5 kB / 0.738 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.841e-05/0.1855, allocations: 35.84 kB / 0.7381 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.28e-05/0.1855, allocations: 23.75 kB / 0.7381 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004249/0.1859, allocations: 295.4 kB / 0.7384 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1859, allocations: 0 / 0.7384 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.472e-06/0.186, allocations: 0 / 0.7384 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.186, allocations: 0 / 0.7384 GB, free: 15.05 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.0004984/0.1865, allocations: 438.4 kB / 0.7388 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.1865, allocations: 12.03 kB / 0.7388 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.862e-05/0.1866, allocations: 34.73 kB / 0.7388 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.934e-05/0.1866, allocations: 16.78 kB / 0.7388 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002176/0.1868, allocations: 196 kB / 0.739 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.1868, allocations: 384 / 0.739 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.518e-06/0.1869, allocations: 8.359 kB / 0.739 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.187, allocations: 41.83 kB / 0.7391 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.187, allocations: 4 kB / 0.7391 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.187, allocations: 0 / 0.7391 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.187, allocations: 0 / 0.7391 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.387e-05/0.187, allocations: 19.98 kB / 0.7391 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001967/0.1872, allocations: 181.7 kB / 0.7393 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.332e-05/0.1873, allocations: 34.5 kB / 0.7393 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.041e-05/0.1873, allocations: 16.92 kB / 0.7393 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.446e-05/0.1874, allocations: 11.89 kB / 0.7393 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.1874, allocations: 38.5 kB / 0.7394 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1874, allocations: 0 / 0.7394 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001567/0.1876, allocations: 69.59 kB / 0.7394 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.1876, allocations: 51.41 kB / 0.7395 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.1878, allocations: 215.5 kB / 0.7397 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.1879, allocations: 25.7 kB / 0.7397 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.516e-05/0.1879, allocations: 104.1 kB / 0.7398 GB, free: 13.35 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.828e-06/0.188, allocations: 8.062 kB / 0.7398 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.716e-05/0.188, allocations: 29.7 kB / 0.7399 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1882, allocations: 322.8 kB / 0.7402 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.245e-05/0.1882, allocations: 51.98 kB / 0.7402 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.255e-05/0.1883, allocations: 59.97 kB / 0.7403 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/0.1884, allocations: 87.03 kB / 0.7403 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1884, allocations: 0 / 0.7403 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000195/0.1886, allocations: 177.4 kB / 0.7405 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.1887, allocations: 4 kB / 0.7405 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.1887, allocations: 8.062 kB / 0.7405 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.1887, allocations: 0 / 0.7405 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.516e-05/0.1887, allocations: 4 kB / 0.7405 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.1887, allocations: 3.938 kB / 0.7405 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.784e-05/0.1888, allocations: 11.89 kB / 0.7405 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.714e-06/0.1888, allocations: 0 / 0.7405 GB, free: 12.57 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.0001703/0.1889, allocations: 129.8 kB / 0.7407 GB, free: 12.44 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.189, allocations: 15.84 kB / 0.7407 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.1891, allocations: 66.25 kB / 0.7408 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1891, allocations: 0 / 0.7408 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.1891, allocations: 3.984 kB / 0.7408 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-06/0.1891, allocations: 0 / 0.7408 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001502/0.1893, allocations: 181.7 kB / 0.7409 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1893, allocations: 3.938 kB / 0.7409 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.316e-06/0.1893, allocations: 3.938 kB / 0.7409 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1893, allocations: 0 / 0.7409 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.029e-06/0.1893, allocations: 0 / 0.7409 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.1893, allocations: 4 kB / 0.7409 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.1893, allocations: 7.969 kB / 0.7409 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.64e-05/0.1894, allocations: 85.02 kB / 0.741 GB, free: 12 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.1895, allocations: 89 kB / 0.7411 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.1895, allocations: 0 / 0.7411 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.273e-05/0.1895, allocations: 0 / 0.7411 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.647e-05/0.1895, allocations: 4 kB / 0.7411 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.1895, allocations: 0 / 0.7411 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000131/0.1897, allocations: 152.9 kB / 0.7413 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1897, allocations: 0 / 0.7413 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003204/0.19, allocations: 91.8 kB / 0.7414 GB, free: 11.65 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.0008316/0.1909, allocations: 0.7628 MB / 0.7421 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001991/0.1911, allocations: 125.7 kB / 0.7422 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1911, allocations: 0 / 0.7422 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.797e-05/0.1911, allocations: 8 kB / 0.7422 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.1913, allocations: 8 kB / 0.7422 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.193, allocations: 1.814 MB / 0.744 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.1934, allocations: 0.7041 MB / 0.7447 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.765e-05/0.1934, allocations: 7.984 kB / 0.7447 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.936e-05/0.1935, allocations: 23.44 kB / 0.7447 GB, free: 8.074 MB / 0.5762 GB Notification: Performance of SimCode: time 2.5e-07/0.1935, allocations: 0 / 0.7447 GB, free: 8.074 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0262/0.2197, allocations: 3.87 MB / 0.7485 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.197/8.417, allocations: 14.42 kB / 0.7485 GB, free: 4.273 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.437744252383709] Failed to read output from testmodel.py, exit status != 0: 8.492232498247176 8.830545702 8.64229765 Calling exit ...