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.001273/0.001273, 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.001336/0.001336, 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.371/1.371, 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.065/1.065, allocations: 175.8 MB / 481.9 MB, free: 7.676 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.001924/0.001924, allocations: 67.59 kB / 0.6705 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5917/0.5937, allocations: 94.53 MB / 0.7628 GB, free: 9.984 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001619/0.5953, allocations: 0.5118 MB / 0.7633 GB, free: 9.844 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002131/0.5974, allocations: 1.632 MB / 0.7649 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.496e-05/0.5974, allocations: 0.9375 kB / 0.7649 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001911/0.5976, allocations: 61.67 kB / 0.7649 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.891e-05/0.5977, allocations: 35.83 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.0009008/0.5986, allocations: 240.4 kB / 0.7652 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 9.515e-05/0.5987, allocations: 36.27 kB / 0.7652 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.287e-05/0.5987, allocations: 3.422 kB / 0.7652 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.959e-05/0.5988, allocations: 25.2 kB / 0.7653 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 8.02e-05/0.5989, allocations: 40.66 kB / 0.7653 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.14e-05/0.5989, allocations: 0 / 0.7653 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006086/0.5995, allocations: 371.9 kB / 0.7657 GB, free: 8.816 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.748e-05/0.5995, allocations: 30.14 kB / 0.7657 GB, free: 8.805 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.891e-05/0.5996, allocations: 27.08 kB / 0.7657 GB, free: 8.785 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004076/0.6, allocations: 294.6 kB / 0.766 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.6, allocations: 1.094 kB / 0.766 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.134e-06/0.6, allocations: 0.8125 kB / 0.766 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.6, allocations: 0 / 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.0003882/0.6004, allocations: 440 kB / 0.7664 GB, free: 8.281 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/0.6004, allocations: 13.41 kB / 0.7664 GB, free: 8.277 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.793e-05/0.6004, allocations: 14.2 kB / 0.7664 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.6006, allocations: 196.5 kB / 0.7666 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.158e-06/0.6006, allocations: 1.5 kB / 0.7666 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-06/0.6006, allocations: 2.625 kB / 0.7666 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.62e-05/0.6007, allocations: 42.95 kB / 0.7667 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.6007, allocations: 0.6562 kB / 0.7667 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.6007, allocations: 3.938 kB / 0.7667 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.6007, allocations: 2.969 kB / 0.7667 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.106e-05/0.6007, allocations: 18.55 kB / 0.7667 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001422/0.6009, allocations: 186.7 kB / 0.7669 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.077e-05/0.6009, allocations: 27.91 kB / 0.7669 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.036e-05/0.6009, allocations: 15.77 kB / 0.7669 GB, free: 7.777 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.601, allocations: 11.14 kB / 0.7669 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.689e-05/0.601, allocations: 37.06 kB / 0.767 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.623e-06/0.601, allocations: 4 kB / 0.767 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001459/0.6011, allocations: 68.62 kB / 0.767 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.323e-05/0.6011, allocations: 52.56 kB / 0.7671 GB, free: 7.625 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.6013, allocations: 210.9 kB / 0.7673 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.193e-06/0.6013, allocations: 25.7 kB / 0.7673 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.046e-05/0.6014, allocations: 102.3 kB / 0.7674 GB, free: 7.367 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.157e-06/0.6014, allocations: 0 / 0.7674 GB, free: 7.367 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.991e-05/0.6014, allocations: 33.41 kB / 0.7674 GB, free: 7.344 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.517e-05/0.6015, allocations: 328.6 kB / 0.7677 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.116e-05/0.6016, allocations: 52.95 kB / 0.7678 GB, free: 7.016 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.467e-05/0.6016, allocations: 61.86 kB / 0.7679 GB, free: 7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.058e-05/0.6017, allocations: 92.98 kB / 0.7679 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.6017, allocations: 1.312 kB / 0.7679 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001679/0.6019, allocations: 164.5 kB / 0.7681 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.6019, allocations: 8.281 kB / 0.7681 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.6019, allocations: 4 kB / 0.7681 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.6019, allocations: 5.016 kB / 0.7681 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.235e-05/0.6019, allocations: 1.312 kB / 0.7681 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.6019, allocations: 4 kB / 0.7681 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.458e-05/0.602, allocations: 9.922 kB / 0.7681 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-06/0.602, allocations: 2.125 kB / 0.7681 GB, free: 6.895 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.0001158/0.6021, allocations: 132.2 kB / 0.7683 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.484e-05/0.6021, allocations: 16.03 kB / 0.7683 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.6022, allocations: 63.73 kB / 0.7683 GB, free: 6.73 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.6022, allocations: 1.531 kB / 0.7683 GB, free: 6.73 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.6022, allocations: 4.031 kB / 0.7683 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.6022, allocations: 0 / 0.7683 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.141e-05/0.6023, allocations: 187 kB / 0.7685 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.6023, allocations: 3.938 kB / 0.7685 GB, free: 6.52 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.27e-06/0.6023, allocations: 2.266 kB / 0.7685 GB, free: 6.52 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.6023, allocations: 3.938 kB / 0.7685 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.239e-06/0.6023, allocations: 3.938 kB / 0.7685 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.6023, allocations: 2.391 kB / 0.7685 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.6023, allocations: 0 / 0.7685 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.644e-05/0.6024, allocations: 84.09 kB / 0.7686 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.393e-05/0.6024, allocations: 88.66 kB / 0.7687 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.6024, allocations: 3.109 kB / 0.7687 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.329e-05/0.6024, allocations: 0.7969 kB / 0.7687 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.839e-06/0.6024, allocations: 5.344 kB / 0.7687 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.6024, allocations: 0.6094 kB / 0.7687 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.397e-05/0.6025, allocations: 151 kB / 0.7689 GB, free: 6.242 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.6025, allocations: 0 / 0.7689 GB, free: 6.242 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003319/0.6029, allocations: 92.83 kB / 0.7689 GB, free: 6.223 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.0004694/0.6033, allocations: 231.4 kB / 0.7692 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001632/0.6035, allocations: 114.7 kB / 0.7693 GB, free: 6.059 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.6035, allocations: 4.062 kB / 0.7693 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.477e-05/0.6035, allocations: 13.66 kB / 0.7693 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.6037, allocations: 3.688 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.0002808/0.6039, allocations: 221 kB / 0.7695 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.6041, allocations: 0.7025 MB / 0.7702 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.742e-05/0.6041, allocations: 2.156 kB / 0.7702 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.175e-05/0.6041, allocations: 13.38 kB / 0.7702 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of SimCode: time 3e-07/0.6041, allocations: 0 / 0.7702 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of Templates: time 0.005323/0.6094, allocations: 2.12 MB / 0.7723 GB, free: 5.016 MB / 0.5762 GB " [Timeout remaining time 659] 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 cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.943403189070523] Failed to read output from testmodel.py, exit status != 0: 0.6169598428532481 0.6288691630000001 0.025406248000000003 Calling exit ...