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.001449/0.001449, allocations: 112.9 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.00148/0.00148, allocations: 189.9 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.282/1.282, allocations: 225.6 MB / 249.3 MB, free: 3.316 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.9737/0.9737, allocations: 175.7 MB / 480.1 MB, free: 2.766 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_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.001749/0.001749, allocations: 74.38 kB / 0.6677 GB, free: 10.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1487, allocations: 94.53 MB / 0.76 GB, free: 0.8125 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001449/0.1502, allocations: 0.5088 MB / 0.7605 GB, free: 312 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001994/0.1522, allocations: 1.628 MB / 0.7621 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.684e-05/0.1522, allocations: 3.938 kB / 0.7621 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.1524, allocations: 63.84 kB / 0.7622 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.723e-05/0.1524, allocations: 31.94 kB / 0.7622 GB, free: 14.56 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.0007232/0.1531, allocations: 243.3 kB / 0.7625 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.852e-05/0.1532, allocations: 31.97 kB / 0.7625 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.222e-05/0.1532, allocations: 4.266 kB / 0.7625 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.582e-05/0.1533, allocations: 23.91 kB / 0.7625 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.536e-05/0.1533, allocations: 47.88 kB / 0.7626 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.054e-05/0.1533, allocations: 0 / 0.7626 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005463/0.1539, allocations: 367.4 kB / 0.7629 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.62e-05/0.1539, allocations: 23.91 kB / 0.7629 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.143e-05/0.154, allocations: 31.69 kB / 0.763 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003611/0.1543, allocations: 291.1 kB / 0.7632 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1543, allocations: 0 / 0.7632 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.213e-06/0.1543, allocations: 0 / 0.7632 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.107e-06/0.1543, allocations: 0 / 0.7632 GB, free: 13.52 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.0004274/0.1548, allocations: 442.4 kB / 0.7637 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.1548, allocations: 8.031 kB / 0.7637 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.684e-05/0.1548, allocations: 34.75 kB / 0.7637 GB, free: 12.99 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.261e-05/0.1548, allocations: 12.84 kB / 0.7637 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.155, allocations: 196.7 kB / 0.7639 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.155, allocations: 4.375 kB / 0.7639 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-06/0.155, allocations: 384 / 0.7639 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.944e-05/0.1551, allocations: 37.83 kB / 0.7639 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.1551, allocations: 7.922 kB / 0.764 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-06/0.1551, allocations: 4 kB / 0.764 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.015e-06/0.1551, allocations: 0 / 0.764 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.807e-05/0.1551, allocations: 16 kB / 0.764 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001691/0.1553, allocations: 193.5 kB / 0.7642 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.447e-05/0.1554, allocations: 22.58 kB / 0.7642 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.368e-05/0.1554, allocations: 16.91 kB / 0.7642 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.1554, allocations: 8 kB / 0.7642 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.1554, allocations: 38.5 kB / 0.7642 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.1554, allocations: 0 / 0.7642 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001354/0.1556, allocations: 81.52 kB / 0.7643 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.1556, allocations: 51.41 kB / 0.7644 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.1558, allocations: 210.2 kB / 0.7646 GB, free: 11.96 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.1558, allocations: 25.7 kB / 0.7646 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.676e-05/0.1559, allocations: 100.1 kB / 0.7647 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.847e-06/0.1559, allocations: 3.953 kB / 0.7647 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.167e-05/0.1559, allocations: 33.7 kB / 0.7647 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.156, allocations: 327 kB / 0.765 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.544e-05/0.1561, allocations: 59.97 kB / 0.7651 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.231e-05/0.1562, allocations: 51.98 kB / 0.7651 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.848e-05/0.1563, allocations: 98.25 kB / 0.7652 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1563, allocations: 0 / 0.7652 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001758/0.1564, allocations: 163 kB / 0.7654 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.1564, allocations: 8 kB / 0.7654 GB, free: 11.08 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.1565, allocations: 3.938 kB / 0.7654 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.1565, allocations: 0 / 0.7654 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.049e-05/0.1565, allocations: 0 / 0.7654 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.1565, allocations: 8.047 kB / 0.7654 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.358e-05/0.1565, allocations: 7.953 kB / 0.7654 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.1565, allocations: 0 / 0.7654 GB, free: 11.06 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.0001289/0.1566, allocations: 137.8 kB / 0.7655 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.1567, allocations: 15.84 kB / 0.7656 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.1568, allocations: 66.17 kB / 0.7656 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.1568, allocations: 0 / 0.7656 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.1568, allocations: 0 / 0.7656 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1568, allocations: 8.031 kB / 0.7656 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.1569, allocations: 173.7 kB / 0.7658 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.1569, allocations: 0 / 0.7658 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.641e-06/0.1569, allocations: 7.938 kB / 0.7658 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.1569, allocations: 3.984 kB / 0.7658 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-06/0.1569, allocations: 0 / 0.7658 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1569, allocations: 3.984 kB / 0.7658 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1569, allocations: 3.938 kB / 0.7658 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.447e-05/0.157, allocations: 92.97 kB / 0.7659 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.878e-05/0.157, allocations: 92.94 kB / 0.766 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.1571, allocations: 0 / 0.766 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.248e-05/0.1571, allocations: 3.938 kB / 0.766 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.161e-05/0.1571, allocations: 0 / 0.766 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.123e-06/0.1571, allocations: 0 / 0.766 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00012/0.1572, allocations: 156.3 kB / 0.7661 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1572, allocations: 0 / 0.7661 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002918/0.1575, allocations: 79.86 kB / 0.7662 GB, free: 10.12 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.0007371/0.1582, allocations: 0.7486 MB / 0.767 GB, free: 9.367 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001746/0.1584, allocations: 121.6 kB / 0.7671 GB, free: 9.242 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1584, allocations: 0 / 0.7671 GB, free: 9.242 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.454e-05/0.1584, allocations: 11.94 kB / 0.7671 GB, free: 9.23 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001325/0.1586, allocations: 7.938 kB / 0.7671 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.1602, allocations: 1.832 MB / 0.7689 GB, free: 7.309 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.1605, allocations: 0.7041 MB / 0.7696 GB, free: 6.578 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.634e-05/0.1605, allocations: 4 kB / 0.7696 GB, free: 6.574 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.939e-05/0.1605, allocations: 27.42 kB / 0.7696 GB, free: 6.547 MB / 0.5762 GB Notification: Performance of SimCode: time 4.01e-07/0.1605, allocations: 4.031 kB / 0.7696 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02493/0.1855, allocations: 3.859 MB / 0.7734 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.15/7.335, allocations: 9.719 kB / 0.7734 GB, free: 2.758 MB / 0.5762 GB " [Timeout remaining time 653] (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 --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: 10.718848743999843]