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.001173/0.001173, allocations: 109.7 kB / 17.54 MB, free: 4.641 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.001162/0.001162, allocations: 190.6 kB / 20.71 MB, free: 1.484 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.289/1.289, allocations: 225.6 MB / 249.3 MB, free: 3.199 MB / 190.1 MB " [Timeout remaining time 179] 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 0.9765/0.9765, allocations: 175.7 MB / 480.1 MB, free: 2.848 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: "" <> 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.001768/0.001768, allocations: 71.05 kB / 0.6677 GB, free: 11.04 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1572/0.159, allocations: 94.54 MB / 0.76 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001542/0.1605, allocations: 0.5068 MB / 0.7605 GB, free: 364 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002197/0.1627, allocations: 1.628 MB / 0.7621 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.164e-05/0.1627, allocations: 7.875 kB / 0.7621 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.1629, allocations: 15.97 kB / 0.7622 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.605e-05/0.1629, allocations: 11.92 kB / 0.7622 GB, free: 14.68 MB / 0.5762 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.0007786/0.1637, allocations: 247.3 kB / 0.7624 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.357e-05/0.1637, allocations: 23.97 kB / 0.7624 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.336e-05/0.1638, allocations: 4.281 kB / 0.7624 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 2.77e-05/0.1638, allocations: 11.98 kB / 0.7624 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 3.758e-05/0.1638, allocations: 15.92 kB / 0.7625 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.1638, allocations: 0 / 0.7625 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005855/0.1644, allocations: 367.4 kB / 0.7628 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.696e-05/0.1645, allocations: 19.92 kB / 0.7628 GB, free: 14 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.028e-05/0.1645, allocations: 19.8 kB / 0.7628 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003879/0.1649, allocations: 287.2 kB / 0.7631 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.247e-06/0.1649, allocations: 0 / 0.7631 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.326e-06/0.1649, allocations: 4 kB / 0.7631 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.1649, allocations: 7.938 kB / 0.7631 GB, free: 13.69 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.0004472/0.1654, allocations: 406.7 kB / 0.7635 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.1654, allocations: 8.031 kB / 0.7635 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.427e-05/0.1654, allocations: 30.75 kB / 0.7635 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.787e-05/0.1654, allocations: 16.83 kB / 0.7636 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.1656, allocations: 172.3 kB / 0.7637 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.718e-06/0.1656, allocations: 4.375 kB / 0.7637 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.412e-06/0.1656, allocations: 384 / 0.7637 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.859e-05/0.1657, allocations: 49.75 kB / 0.7638 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.1657, allocations: 0 / 0.7638 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.34e-06/0.1657, allocations: 0 / 0.7638 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.996e-06/0.1657, allocations: 0 / 0.7638 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.787e-05/0.1658, allocations: 15.98 kB / 0.7638 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001723/0.1659, allocations: 181.6 kB / 0.764 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.89e-05/0.166, allocations: 22.58 kB / 0.764 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.774e-05/0.166, allocations: 12.92 kB / 0.764 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.166, allocations: 15.97 kB / 0.764 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.1661, allocations: 34.5 kB / 0.7641 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1661, allocations: 4 kB / 0.7641 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001371/0.1662, allocations: 61.58 kB / 0.7641 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.1662, allocations: 55.41 kB / 0.7642 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.1664, allocations: 173.3 kB / 0.7643 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1664, allocations: 25.7 kB / 0.7644 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.135e-05/0.1665, allocations: 96.23 kB / 0.7644 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.109e-05/0.1665, allocations: 11.95 kB / 0.7645 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.916e-05/0.1665, allocations: 25.72 kB / 0.7645 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1667, allocations: 322.8 kB / 0.7648 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.251e-05/0.1667, allocations: 39.92 kB / 0.7648 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.978e-05/0.1668, allocations: 35.98 kB / 0.7649 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.377e-05/0.1669, allocations: 76.86 kB / 0.7649 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1669, allocations: 0 / 0.7649 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001546/0.167, allocations: 129.5 kB / 0.7651 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.167, allocations: 12.06 kB / 0.7651 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.167, allocations: 0 / 0.7651 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.167, allocations: 0 / 0.7651 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.248e-06/0.167, allocations: 0 / 0.7651 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.1671, allocations: 4 kB / 0.7651 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.459e-05/0.1671, allocations: 11.89 kB / 0.7651 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.1671, allocations: 0 / 0.7651 GB, free: 11.44 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.0001218/0.1672, allocations: 129.8 kB / 0.7652 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.498e-05/0.1672, allocations: 11.89 kB / 0.7652 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.1674, allocations: 57.56 kB / 0.7653 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-06/0.1674, allocations: 7.938 kB / 0.7653 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1674, allocations: 0 / 0.7653 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.1674, allocations: 0 / 0.7653 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001269/0.1675, allocations: 165.7 kB / 0.7654 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1675, allocations: 0 / 0.7654 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.435e-05/0.1675, allocations: 3.938 kB / 0.7654 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.1675, allocations: 0 / 0.7654 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.578e-06/0.1675, allocations: 4 kB / 0.7655 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.1675, allocations: 32 / 0.7655 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1675, allocations: 4 kB / 0.7655 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.483e-05/0.1676, allocations: 81.08 kB / 0.7655 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.766e-05/0.1677, allocations: 88.98 kB / 0.7656 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.033e-05/0.1677, allocations: 0 / 0.7656 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.098e-05/0.1677, allocations: 7.938 kB / 0.7656 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.574e-06/0.1677, allocations: 0 / 0.7656 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-06/0.1677, allocations: 0 / 0.7656 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.448e-05/0.1678, allocations: 127.3 kB / 0.7657 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1678, allocations: 0 / 0.7657 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002935/0.1681, allocations: 87.73 kB / 0.7658 GB, free: 10.57 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.0007951/0.1689, allocations: 0.7431 MB / 0.7666 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001515/0.169, allocations: 89.67 kB / 0.7666 GB, free: 9.73 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.169, allocations: 0 / 0.7666 GB, free: 9.73 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 2.148e-05/0.169, allocations: 19.86 kB / 0.7667 GB, free: 9.711 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.1692, allocations: 12 kB / 0.7667 GB, free: 9.699 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.1706, allocations: 1.542 MB / 0.7682 GB, free: 8.078 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.1709, allocations: 0.6963 MB / 0.7689 GB, free: 7.355 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.843e-05/0.1709, allocations: 3.953 kB / 0.7689 GB, free: 7.352 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.32e-05/0.1709, allocations: 19.42 kB / 0.7689 GB, free: 7.332 MB / 0.5762 GB Notification: Performance of SimCode: time 4.61e-07/0.1709, allocations: 4 kB / 0.7689 GB, free: 7.328 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02584/0.1968, allocations: 3.478 MB / 0.7723 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.102/7.299, allocations: 3.938 kB / 0.7723 GB, free: 3.934 MB / 0.5762 GB " [Timeout remaining time 653] (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 --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: 10.676451656996505]