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.001235/0.001235, allocations: 109.8 kB / 18.89 MB, free: 2.875 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.001337/0.001337, allocations: 205.5 kB / 22.18 MB, free: 5.18 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.454/1.454, allocations: 225.6 MB / 250.9 MB, free: 13.29 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.085/1.085, allocations: 175.8 MB / 481.9 MB, free: 7.707 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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 65.11 kB / 0.6705 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.58/0.5819, allocations: 94.53 MB / 0.7628 GB, free: 9.977 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001678/0.5836, allocations: 0.5176 MB / 0.7633 GB, free: 9.836 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002222/0.5858, allocations: 1.629 MB / 0.7649 GB, free: 9.086 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.546e-05/0.5859, allocations: 1.156 kB / 0.7649 GB, free: 9.086 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001521/0.586, allocations: 20 kB / 0.7649 GB, free: 9.082 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.736e-05/0.586, allocations: 8.234 kB / 0.7649 GB, free: 9.082 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.0009048/0.587, allocations: 254.3 kB / 0.7651 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.833e-05/0.587, allocations: 21.05 kB / 0.7652 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.284e-05/0.5871, allocations: 2.438 kB / 0.7652 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.495e-05/0.5871, allocations: 14.22 kB / 0.7652 GB, free: 8.969 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.217e-05/0.5872, allocations: 19.14 kB / 0.7652 GB, free: 8.965 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.5872, allocations: 4.844 kB / 0.7652 GB, free: 8.961 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006503/0.5878, allocations: 364.1 kB / 0.7656 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.137e-05/0.5879, allocations: 18.22 kB / 0.7656 GB, free: 8.848 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.554e-05/0.5879, allocations: 15.56 kB / 0.7656 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004425/0.5883, allocations: 283.2 kB / 0.7659 GB, free: 8.762 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.5883, allocations: 3.844 kB / 0.7659 GB, free: 8.762 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.482e-06/0.5883, allocations: 0 / 0.7659 GB, free: 8.762 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.5884, allocations: 0 / 0.7659 GB, free: 8.762 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.0003962/0.5887, allocations: 412.7 kB / 0.7663 GB, free: 8.352 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.5888, allocations: 10.72 kB / 0.7663 GB, free: 8.352 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.853e-05/0.5888, allocations: 8.266 kB / 0.7663 GB, free: 8.348 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.589, allocations: 186.7 kB / 0.7664 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.589, allocations: 1.438 kB / 0.7664 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.767e-06/0.589, allocations: 1.719 kB / 0.7665 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.301e-05/0.5891, allocations: 45.75 kB / 0.7665 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.5891, allocations: 0 / 0.7665 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.5891, allocations: 4 kB / 0.7665 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.5891, allocations: 0.6562 kB / 0.7665 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.241e-05/0.5891, allocations: 19.08 kB / 0.7665 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.5893, allocations: 170.2 kB / 0.7667 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.04e-05/0.5893, allocations: 23.56 kB / 0.7667 GB, free: 7.875 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.114e-05/0.5893, allocations: 17.62 kB / 0.7667 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.5894, allocations: 10 kB / 0.7667 GB, free: 7.859 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.5894, allocations: 40.66 kB / 0.7668 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.853e-06/0.5894, allocations: 0.6562 kB / 0.7668 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001472/0.5895, allocations: 62.72 kB / 0.7668 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.361e-05/0.5896, allocations: 52.59 kB / 0.7669 GB, free: 7.711 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.5897, allocations: 178.3 kB / 0.767 GB, free: 7.582 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.107e-06/0.5897, allocations: 30.92 kB / 0.7671 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.598e-05/0.5898, allocations: 98.17 kB / 0.7672 GB, free: 7.453 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.899e-06/0.5898, allocations: 1.125 kB / 0.7672 GB, free: 7.453 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.64e-05/0.5898, allocations: 25.34 kB / 0.7672 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.251e-05/0.5899, allocations: 320.2 kB / 0.7675 GB, free: 7.117 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.47e-05/0.5899, allocations: 37.66 kB / 0.7675 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.43e-05/0.59, allocations: 41.25 kB / 0.7676 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.297e-05/0.59, allocations: 72.66 kB / 0.7676 GB, free: 7.082 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.59, allocations: 2.844 kB / 0.7676 GB, free: 7.082 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001521/0.5902, allocations: 133 kB / 0.7678 GB, free: 7.027 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.5902, allocations: 9.656 kB / 0.7678 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.5902, allocations: 2.312 kB / 0.7678 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.5902, allocations: 0 / 0.7678 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.316e-05/0.5903, allocations: 1.156 kB / 0.7678 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.5903, allocations: 4.547 kB / 0.7678 GB, free: 7.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.391e-05/0.5903, allocations: 10.52 kB / 0.7678 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.5903, allocations: 1.891 kB / 0.7678 GB, free: 7.012 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.0001233/0.5904, allocations: 130.7 kB / 0.7679 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.217e-05/0.5904, allocations: 10.91 kB / 0.7679 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.5905, allocations: 63.11 kB / 0.768 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.5905, allocations: 1.219 kB / 0.768 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.5905, allocations: 0.75 kB / 0.768 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.5905, allocations: 3.938 kB / 0.768 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.502e-05/0.5906, allocations: 170.1 kB / 0.7682 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.5906, allocations: 0.6562 kB / 0.7682 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.007e-06/0.5906, allocations: 1.094 kB / 0.7682 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.5906, allocations: 8.953 kB / 0.7682 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.5906, allocations: 1.219 kB / 0.7682 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.5906, allocations: 0 / 0.7682 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.5906, allocations: 1.156 kB / 0.7682 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.96e-05/0.5907, allocations: 77.09 kB / 0.7683 GB, free: 6.57 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.398e-05/0.5907, allocations: 92.59 kB / 0.7683 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.5907, allocations: 1.438 kB / 0.7683 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.167e-05/0.5908, allocations: 0 / 0.7683 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.127e-05/0.5908, allocations: 13.98 kB / 0.7684 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.5908, allocations: 0.6094 kB / 0.7684 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 7.532e-05/0.5908, allocations: 120.7 kB / 0.7685 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.5908, allocations: 0 / 0.7685 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003624/0.5912, allocations: 82.64 kB / 0.7686 GB, free: 6.359 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.000523/0.5917, allocations: 235.9 kB / 0.7688 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001646/0.5919, allocations: 91.08 kB / 0.7689 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5919, allocations: 0 / 0.7689 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.618e-05/0.5919, allocations: 15.8 kB / 0.7689 GB, free: 6.184 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.5921, allocations: 0.5 kB / 0.7689 GB, free: 6.184 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002739/0.5923, allocations: 193.7 kB / 0.7691 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.5925, allocations: 0.6956 MB / 0.7697 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.632e-05/0.5925, allocations: 10.36 kB / 0.7698 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of SimCode: time 3.01e-07/0.5925, allocations: 0 / 0.7698 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of Templates: time 0.004767/0.5972, allocations: 2.248 MB / 0.7719 GB, free: 5.152 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (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 & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.332585907075554] Failed to read output from testmodel.py, exit status != 0: 0.6054029678925872 0.619112319 0.027213035 Calling exit ...