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.001276/0.001276, allocations: 106.9 kB / 16.4 MB, free: 6.449 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.001275/0.001275, allocations: 194.8 kB / 19.36 MB, free: 3.73 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.535/1.535, allocations: 222.9 MB / 245 MB, free: 15.02 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.221/1.221, allocations: 173.4 MB / 470.6 MB, free: 13.61 MB / 382.1 MB " [Timeout remaining time 178] 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.001979/0.001979, allocations: 68.02 kB / 0.6482 GB, free: 11.28 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2391, allocations: 89.51 MB / 0.7356 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001735/0.2408, allocations: 0.505 MB / 0.7361 GB, free: 1.27 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00257/0.2434, allocations: 1.604 MB / 0.7377 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.494e-05/0.2435, allocations: 0 / 0.7377 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001719/0.2437, allocations: 19.92 kB / 0.7377 GB, free: 15.63 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.813e-05/0.2437, allocations: 7.984 kB / 0.7377 GB, free: 15.62 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.0009662/0.2447, allocations: 259.2 kB / 0.738 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.096e-05/0.2448, allocations: 23.86 kB / 0.738 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.963e-05/0.2448, allocations: 0 / 0.738 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.334e-05/0.2449, allocations: 11.98 kB / 0.738 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.801e-05/0.2449, allocations: 15.92 kB / 0.738 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.345e-05/0.2449, allocations: 0 / 0.738 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005579/0.2455, allocations: 331.5 kB / 0.7383 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.328e-05/0.2456, allocations: 19.92 kB / 0.7384 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.337e-05/0.2456, allocations: 19.86 kB / 0.7384 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004327/0.2461, allocations: 295.1 kB / 0.7387 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2461, allocations: 0 / 0.7387 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.873e-06/0.2461, allocations: 3.938 kB / 0.7387 GB, free: 14.66 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.2461, allocations: 0 / 0.7387 GB, free: 14.66 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.0005834/0.2467, allocations: 410.7 kB / 0.7391 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.2467, allocations: 8.031 kB / 0.7391 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.168e-05/0.2468, allocations: 8.891 kB / 0.7391 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002038/0.247, allocations: 180.3 kB / 0.7392 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.247, allocations: 384 / 0.7392 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.887e-06/0.247, allocations: 4.375 kB / 0.7392 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.2471, allocations: 42 kB / 0.7393 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2471, allocations: 4 kB / 0.7393 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.2472, allocations: 0 / 0.7393 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.2472, allocations: 3.938 kB / 0.7393 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.523e-05/0.2472, allocations: 19.98 kB / 0.7393 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002131/0.2474, allocations: 173.6 kB / 0.7395 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.269e-05/0.2475, allocations: 26.58 kB / 0.7395 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.455e-05/0.2475, allocations: 16.91 kB / 0.7395 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.966e-05/0.2476, allocations: 12 kB / 0.7395 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.2476, allocations: 34.5 kB / 0.7396 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.2476, allocations: 3.938 kB / 0.7396 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.000171/0.2478, allocations: 61.58 kB / 0.7396 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.2478, allocations: 51.41 kB / 0.7397 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.248, allocations: 177.5 kB / 0.7398 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.2481, allocations: 29.83 kB / 0.7399 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.597e-05/0.2481, allocations: 96.12 kB / 0.74 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.668e-06/0.2481, allocations: 0 / 0.74 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.279e-05/0.2482, allocations: 25.7 kB / 0.74 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.2483, allocations: 318.8 kB / 0.7403 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.953e-05/0.2484, allocations: 39.98 kB / 0.7403 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.794e-05/0.2485, allocations: 39.97 kB / 0.7404 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.425e-05/0.2486, allocations: 72.78 kB / 0.7404 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2486, allocations: 4.031 kB / 0.7404 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001651/0.2487, allocations: 137.5 kB / 0.7406 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2488, allocations: 7.938 kB / 0.7406 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.2488, allocations: 4 kB / 0.7406 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.2488, allocations: 0 / 0.7406 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.45e-05/0.2488, allocations: 0 / 0.7406 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.2488, allocations: 0 / 0.7406 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.187e-05/0.2489, allocations: 3.953 kB / 0.7406 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.2489, allocations: 7.984 kB / 0.7406 GB, free: 12.45 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.0001736/0.2491, allocations: 125.9 kB / 0.7407 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.2491, allocations: 7.891 kB / 0.7407 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001247/0.2492, allocations: 61.5 kB / 0.7408 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.2492, allocations: 3.938 kB / 0.7408 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.2492, allocations: 0 / 0.7408 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.2492, allocations: 0 / 0.7408 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001508/0.2494, allocations: 177.6 kB / 0.741 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2494, allocations: 3.938 kB / 0.741 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.037e-06/0.2494, allocations: 0 / 0.741 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.2494, allocations: 7.969 kB / 0.741 GB, free: 12 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.2494, allocations: 0 / 0.741 GB, free: 12 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.2494, allocations: 0 / 0.741 GB, free: 12 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2495, allocations: 0 / 0.741 GB, free: 12 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.523e-05/0.2495, allocations: 85 kB / 0.741 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.682e-05/0.2496, allocations: 92.98 kB / 0.7411 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.2496, allocations: 0 / 0.7411 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.34e-05/0.2496, allocations: 4 kB / 0.7411 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.17e-05/0.2497, allocations: 4.031 kB / 0.7411 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.2497, allocations: 0 / 0.7411 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.884e-05/0.2498, allocations: 123.2 kB / 0.7413 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.2498, allocations: 0 / 0.7413 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003406/0.2501, allocations: 87.8 kB / 0.7413 GB, free: 11.58 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.0005602/0.2507, allocations: 223.8 kB / 0.7416 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001894/0.2509, allocations: 101.7 kB / 0.7417 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2509, allocations: 0 / 0.7417 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.876e-05/0.2509, allocations: 11.98 kB / 0.7417 GB, free: 11.26 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001445/0.2511, allocations: 4 kB / 0.7417 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003125/0.2514, allocations: 169 kB / 0.7418 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.2518, allocations: 0.7003 MB / 0.7425 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.36e-05/0.2518, allocations: 3.938 kB / 0.7425 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.712e-05/0.2518, allocations: 7.438 kB / 0.7425 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of SimCode: time 2.11e-07/0.2518, allocations: 0 / 0.7425 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of Templates: time 0.005889/0.2577, allocations: 2.092 MB / 0.7446 GB, free: 8.23 MB / 0.5762 GB " [Timeout remaining time 660] 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: 6.496613875031471]