Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009852/0.0009852, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001347/0.002332, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001368/0.002398, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9426/0.9426, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07836/1.021, allocations: 53.67 MB / 243.4 MB, free: 15.48 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:108:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:116:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/package.mo): time 0.8228/0.8228, allocations: 154.6 MB / 398.8 MB, free: 384 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of NFInstanceAPI.mkTop(): time 0.2504/1.073, allocations: 49.05 MB / 447.8 MB, free: 6.562 MB / 426.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.993e-06/1.993e-06, allocations: 0 / 449.1 MB, free: 5.293 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.387e-05/2.586e-05, allocations: 6.312 kB / 449.1 MB, free: 5.285 MB / 426.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001738/0.001763, allocations: 0.5735 MB / 449.7 MB, free: 4.754 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.002204/0.003968, allocations: 1.671 MB / 451.4 MB, free: 3.074 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.243e-05/0.00401, allocations: 4 kB / 451.4 MB, free: 3.07 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.004165, allocations: 73.56 kB / 451.4 MB, free: 3 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 4.473e-05/0.00421, allocations: 42.16 kB / 451.5 MB, free: 2.961 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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'. Notification: Performance of NFTyping.typeClassSections: time 0.0008316/0.005041, allocations: 254.5 kB / 451.7 MB, free: 2.719 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 8.856e-05/0.00513, allocations: 28.34 kB / 451.8 MB, free: 2.695 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.42e-05/0.005164, allocations: 0 / 451.8 MB, free: 2.695 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.486e-05/0.005239, allocations: 34.25 kB / 451.8 MB, free: 2.664 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.407e-05/0.005303, allocations: 32.62 kB / 451.8 MB, free: 2.633 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.542e-05/0.005318, allocations: 1.422 kB / 451.8 MB, free: 2.633 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007544/0.006073, allocations: 469.4 kB / 452.3 MB, free: 2.176 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 5.797e-05/0.006131, allocations: 21.03 kB / 452.3 MB, free: 2.16 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 2.358e-05/0.006154, allocations: 12.16 kB / 452.3 MB, free: 2.152 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004254/0.00658, allocations: 303 kB / 452.6 MB, free: 1.859 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.131e-05/0.006591, allocations: 0 / 452.6 MB, free: 1.859 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.006592, allocations: 1.062 kB / 452.6 MB, free: 1.859 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.458e-05/0.006607, allocations: 0 / 452.6 MB, free: 1.859 MB / 426.7 MB 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.000469/0.007076, allocations: 365.7 kB / 453 MB, free: 1.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.007112, allocations: 8.938 kB / 453 MB, free: 1.473 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.722e-05/0.007149, allocations: 4.938 kB / 453 MB, free: 1.469 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.007303, allocations: 144.5 kB / 453.1 MB, free: 1.305 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.887e-06/0.007312, allocations: 384 / 453.1 MB, free: 1.305 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.007323, allocations: 1.438 kB / 453.1 MB, free: 1.305 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.497e-05/0.007398, allocations: 33.09 kB / 453.2 MB, free: 1.266 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.007405, allocations: 1.344 kB / 453.2 MB, free: 1.266 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.361e-06/0.007411, allocations: 5.438 kB / 453.2 MB, free: 1.262 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.007419, allocations: 3.938 kB / 453.2 MB, free: 1.258 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.004e-05/0.007429, allocations: 4.719 kB / 453.2 MB, free: 1.254 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001058/0.007535, allocations: 74.66 kB / 453.2 MB, free: 1.164 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.28e-05/0.007577, allocations: 27.98 kB / 453.3 MB, free: 1.129 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.426e-05/0.007592, allocations: 4.859 kB / 453.3 MB, free: 1.121 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.737e-05/0.007639, allocations: 8.094 kB / 453.3 MB, free: 1.113 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.007664, allocations: 32.06 kB / 453.3 MB, free: 1.074 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.007665, allocations: 0 / 453.3 MB, free: 1.074 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001092/0.007774, allocations: 37.69 kB / 453.4 MB, free: 1.031 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.007805, allocations: 51.41 kB / 453.4 MB, free: 0.9688 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.007947, allocations: 189.1 kB / 453.6 MB, free: 0.7734 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.007957, allocations: 26.8 kB / 453.6 MB, free: 0.7422 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.212e-05/0.007999, allocations: 96.09 kB / 453.7 MB, free: 0.6445 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.366e-05/0.008013, allocations: 3.953 kB / 453.7 MB, free: 0.6406 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.933e-05/0.008052, allocations: 34.31 kB / 453.7 MB, free: 0.6016 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.704e-05/0.008149, allocations: 330.7 kB / 454.1 MB, free: 276 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.478e-05/0.008174, allocations: 14.14 kB / 454.1 MB, free: 264 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.714e-05/0.008191, allocations: 15.94 kB / 454.1 MB, free: 248 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.091e-05/0.008242, allocations: 41.39 kB / 454.1 MB, free: 208 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.008244, allocations: 0 / 454.1 MB, free: 208 kB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 9.062e-05/0.008335, allocations: 66.95 kB / 454.2 MB, free: 136 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.008348, allocations: 4 kB / 454.2 MB, free: 132 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.008363, allocations: 3.938 kB / 454.2 MB, free: 128 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.008377, allocations: 4 kB / 454.2 MB, free: 124 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.458e-05/0.008392, allocations: 0 / 454.2 MB, free: 124 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.464e-06/0.008394, allocations: 1.219 kB / 454.2 MB, free: 124 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.911e-05/0.008424, allocations: 11.89 kB / 454.2 MB, free: 112 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.008434, allocations: 7.984 kB / 454.2 MB, free: 104 kB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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.0001018/0.008536, allocations: 113.4 kB / 454.3 MB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-06/0.008544, allocations: 0.5 kB / 454.3 MB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.79e-05/0.008642, allocations: 46.88 kB / 454.4 MB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.008644, allocations: 0.625 kB / 454.4 MB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.008645, allocations: 0.5625 kB / 454.4 MB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.008648, allocations: 0 / 454.4 MB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.191e-05/0.00873, allocations: 90.42 kB / 454.5 MB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.008731, allocations: 3.938 kB / 454.5 MB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.949e-06/0.008741, allocations: 9.219 kB / 454.5 MB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.379e-05/0.008755, allocations: 12.78 kB / 454.5 MB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.008757, allocations: 0 / 454.5 MB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.347e-06/0.00876, allocations: 7.938 kB / 454.5 MB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.008762, allocations: 1.719 kB / 454.5 MB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.008763, allocations: 0 / 454.5 MB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.188e-05/0.008825, allocations: 66.72 kB / 454.6 MB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.979e-06/0.008835, allocations: 0 / 454.6 MB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.321e-05/0.008848, allocations: 0.9062 kB / 454.6 MB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.071e-05/0.008859, allocations: 0.7969 kB / 454.6 MB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-06/0.008863, allocations: 5 kB / 454.6 MB, free: 15.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.471e-05/0.008917, allocations: 49.69 kB / 454.6 MB, free: 15.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008917, allocations: 0 / 454.6 MB, free: 15.65 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003041/0.009221, allocations: 89.11 kB / 454.7 MB, free: 15.57 MB / 442.7 MB 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.0006261/0.009848, allocations: 277.4 kB / 455 MB, free: 15.35 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001199/0.009967, allocations: 69.28 kB / 455.1 MB, free: 15.27 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.658e-05/0.009984, allocations: 8 kB / 455.1 MB, free: 15.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.081e-05/0.009995, allocations: 8.797 kB / 455.1 MB, free: 15.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.935e-05/0.01008, allocations: 12.53 kB / 455.1 MB, free: 15.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002958/0.01038, allocations: 202.1 kB / 455.3 MB, free: 15.02 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.915e-05/0.01042, allocations: 63.34 kB / 455.4 MB, free: 14.94 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 2.295e-05/0.01044, allocations: 7.984 kB / 455.4 MB, free: 14.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.806e-05/0.01048, allocations: 51.38 kB / 455.4 MB, free: 14.88 MB / 442.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01048, allocations: 0.5625 kB / 455.4 MB, free: 14.88 MB / 442.7 MB Notification: Performance of Templates: time 0.005154/0.01564, allocations: 2.557 MB / 458 MB, free: 12.52 MB / 442.7 MB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & ./IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.487644021399319]