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.001335/0.001335, allocations: 115.7 kB / 18.89 MB, free: 2.898 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.001395/0.001395, allocations: 199.2 kB / 22.17 MB, free: 5.211 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.405/1.405, allocations: 225.6 MB / 250.9 MB, free: 13.26 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.076/1.076, allocations: 175.8 MB / 481.9 MB, free: 7.695 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: translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 59.83 kB / 0.6705 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4385/0.4405, allocations: 94.54 MB / 0.7628 GB, free: 9.953 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.00143/0.4419, allocations: 0.5179 MB / 0.7633 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001828/0.4437, allocations: 1.625 MB / 0.7649 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.884e-05/0.4438, allocations: 2.344 kB / 0.7649 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.4439, allocations: 62.81 kB / 0.7649 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.087e-05/0.444, allocations: 35.81 kB / 0.765 GB, free: 9.043 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.000775/0.4447, allocations: 239.8 kB / 0.7652 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.924e-05/0.4448, allocations: 41.94 kB / 0.7652 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.533e-05/0.4449, allocations: 3.094 kB / 0.7652 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.73e-05/0.4449, allocations: 25.45 kB / 0.7653 GB, free: 8.93 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.946e-05/0.445, allocations: 39.72 kB / 0.7653 GB, free: 8.93 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.168e-05/0.445, allocations: 1.344 kB / 0.7653 GB, free: 8.93 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005517/0.4455, allocations: 371.5 kB / 0.7657 GB, free: 8.812 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.775e-05/0.4456, allocations: 29.69 kB / 0.7657 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.646e-05/0.4456, allocations: 29.39 kB / 0.7657 GB, free: 8.777 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.446, allocations: 288.5 kB / 0.766 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.208e-05/0.446, allocations: 1.438 kB / 0.766 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.152e-06/0.446, allocations: 0 / 0.766 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.446, allocations: 2.625 kB / 0.766 GB, free: 8.707 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.0003694/0.4464, allocations: 437.1 kB / 0.7664 GB, free: 8.281 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.4464, allocations: 10.38 kB / 0.7664 GB, free: 8.281 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.225e-05/0.4464, allocations: 17 kB / 0.7664 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.4466, allocations: 196.9 kB / 0.7666 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.4466, allocations: 0.875 kB / 0.7666 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.4466, allocations: 1.688 kB / 0.7666 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.435e-05/0.4467, allocations: 42.25 kB / 0.7667 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.4467, allocations: 2.891 kB / 0.7667 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.4467, allocations: 3.938 kB / 0.7667 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.4467, allocations: 2.422 kB / 0.7667 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.917e-05/0.4467, allocations: 17.38 kB / 0.7667 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001304/0.4468, allocations: 183.9 kB / 0.7669 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 3.944e-05/0.4469, allocations: 29.28 kB / 0.7669 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.978e-05/0.4469, allocations: 17.62 kB / 0.7669 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.4469, allocations: 6.922 kB / 0.7669 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.74e-05/0.447, allocations: 40.25 kB / 0.767 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.447, allocations: 0 / 0.767 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001364/0.4471, allocations: 68.23 kB / 0.767 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/0.4471, allocations: 51.92 kB / 0.7671 GB, free: 7.625 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.4473, allocations: 207.9 kB / 0.7673 GB, free: 7.496 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.023e-06/0.4473, allocations: 30.92 kB / 0.7673 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.552e-05/0.4473, allocations: 104.2 kB / 0.7674 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.538e-06/0.4473, allocations: 2.031 kB / 0.7674 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.676e-05/0.4474, allocations: 31.77 kB / 0.7674 GB, free: 7.34 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.469e-05/0.4474, allocations: 323.6 kB / 0.7677 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.99e-05/0.4475, allocations: 53.38 kB / 0.7678 GB, free: 7.016 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.476e-05/0.4475, allocations: 62.58 kB / 0.7679 GB, free: 7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.953e-05/0.4476, allocations: 93.16 kB / 0.7679 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4476, allocations: 5.156 kB / 0.7679 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001531/0.4478, allocations: 158.3 kB / 0.7681 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.4478, allocations: 12.28 kB / 0.7681 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.4478, allocations: 2.844 kB / 0.7681 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.4478, allocations: 0 / 0.7681 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.211e-05/0.4478, allocations: 5.547 kB / 0.7681 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.4478, allocations: 4.828 kB / 0.7681 GB, free: 6.898 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.478e-05/0.4479, allocations: 15.2 kB / 0.7681 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.4479, allocations: 1.094 kB / 0.7681 GB, free: 6.887 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 9.123e-05/0.448, allocations: 139.2 kB / 0.7683 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.442e-05/0.448, allocations: 15.95 kB / 0.7683 GB, free: 6.758 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.3e-05/0.4481, allocations: 64.23 kB / 0.7683 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.4481, allocations: 1.797 kB / 0.7683 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.4481, allocations: 0 / 0.7683 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.4481, allocations: 0.5156 kB / 0.7683 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.113e-05/0.4481, allocations: 179.1 kB / 0.7685 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.4481, allocations: 3.938 kB / 0.7685 GB, free: 6.52 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.168e-06/0.4481, allocations: 1.25 kB / 0.7685 GB, free: 6.52 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.4481, allocations: 7.969 kB / 0.7685 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.541e-06/0.4481, allocations: 2.25 kB / 0.7685 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.4481, allocations: 0.9844 kB / 0.7685 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.4482, allocations: 3.938 kB / 0.7685 GB, free: 6.508 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.177e-05/0.4482, allocations: 84.84 kB / 0.7686 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.181e-05/0.4482, allocations: 91.94 kB / 0.7687 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.4482, allocations: 1.281 kB / 0.7687 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.406e-05/0.4483, allocations: 8.031 kB / 0.7687 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.966e-06/0.4483, allocations: 1.812 kB / 0.7687 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-06/0.4483, allocations: 0 / 0.7687 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 8.836e-05/0.4484, allocations: 154.5 kB / 0.7689 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.4484, allocations: 0 / 0.7689 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003223/0.4487, allocations: 88.95 kB / 0.7689 GB, free: 6.215 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.0004522/0.4491, allocations: 227.8 kB / 0.7692 GB, free: 6.098 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001545/0.4493, allocations: 112.4 kB / 0.7693 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4493, allocations: 0 / 0.7693 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.63e-05/0.4493, allocations: 12.5 kB / 0.7693 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.4494, allocations: 6.406 kB / 0.7693 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002691/0.4497, allocations: 219.2 kB / 0.7695 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001067/0.4498, allocations: 0.7055 MB / 0.7702 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.583e-05/0.4498, allocations: 1.062 kB / 0.7702 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.212e-05/0.4499, allocations: 16.22 kB / 0.7702 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of SimCode: time 3.31e-07/0.4499, allocations: 0 / 0.7702 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of Templates: time 0.005105/0.455, allocations: 2.119 MB / 0.7723 GB, free: 5.016 MB / 0.5762 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (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 & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.773390829563141] Failed to read output from testmodel.py, exit status != 0: 0.46218506805598736 0.473731014 0.024402987 Calling exit ...