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.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.001073/0.001073, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.001221/0.001221, allocations: 177 kB / 23.36 MB, free: 1.129 MB / 18.57 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.9618/0.9618, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:34:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:42:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7708/0.7708, allocations: 154.9 MB / 415.1 MB, free: 236 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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_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 2.645e-06/2.645e-06, allocations: 4 kB / 480.3 MB, free: 6.578 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.213e-05, allocations: 2.312 kB / 480.3 MB, free: 6.574 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001135/0.001158, allocations: 0.5201 MB / 480.8 MB, free: 6.086 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.003058, allocations: 1.662 MB / 482.5 MB, free: 4.418 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.464e-05/0.003092, allocations: 6.156 kB / 482.5 MB, free: 4.414 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00014/0.003232, allocations: 55.91 kB / 482.6 MB, free: 4.359 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 2.775e-05/0.00326, allocations: 32.7 kB / 482.6 MB, free: 4.328 MB / 442.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.0007587/0.004019, allocations: 282.1 kB / 482.9 MB, free: 4.059 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 7.164e-05/0.00409, allocations: 40.88 kB / 482.9 MB, free: 4.023 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.838e-05/0.004119, allocations: 0 / 482.9 MB, free: 4.023 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.104e-05/0.00416, allocations: 24.95 kB / 482.9 MB, free: 4 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.321e-05/0.004203, allocations: 38.59 kB / 483 MB, free: 3.965 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.038e-05/0.004213, allocations: 0 / 483 MB, free: 3.965 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005172/0.00473, allocations: 457.8 kB / 483.4 MB, free: 3.52 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 4.658e-05/0.004777, allocations: 24.59 kB / 483.4 MB, free: 3.5 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 1.83e-05/0.004795, allocations: 13.8 kB / 483.5 MB, free: 3.488 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003403/0.005136, allocations: 363.9 kB / 483.8 MB, free: 3.133 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.442e-06/0.005137, allocations: 1.156 kB / 483.8 MB, free: 3.133 MB / 442.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.005138, allocations: 0 / 483.8 MB, free: 3.133 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.865e-06/0.005141, allocations: 0 / 483.8 MB, free: 3.133 MB / 442.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.0002792/0.00542, allocations: 339.6 kB / 484.1 MB, free: 2.781 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.705e-05/0.005447, allocations: 12.03 kB / 484.2 MB, free: 2.77 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.778e-05/0.005465, allocations: 1.562 kB / 484.2 MB, free: 2.77 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.369e-05/0.005558, allocations: 130.6 kB / 484.3 MB, free: 2.617 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.235e-06/0.005566, allocations: 11.28 kB / 484.3 MB, free: 2.609 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-06/0.005574, allocations: 384 / 484.3 MB, free: 2.609 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.583e-05/0.00563, allocations: 37.08 kB / 484.3 MB, free: 2.566 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-06/0.005635, allocations: 192 / 484.3 MB, free: 2.566 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.929e-06/0.00564, allocations: 384 / 484.3 MB, free: 2.566 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.005645, allocations: 3.938 kB / 484.3 MB, free: 2.562 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.983e-06/0.005652, allocations: 1.266 kB / 484.3 MB, free: 2.562 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.309e-05/0.005735, allocations: 79.52 kB / 484.4 MB, free: 2.469 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.405e-05/0.005769, allocations: 22.55 kB / 484.4 MB, free: 2.438 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.858e-06/0.005779, allocations: 5.922 kB / 484.4 MB, free: 2.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.005811, allocations: 8.047 kB / 484.5 MB, free: 2.422 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.879e-05/0.00583, allocations: 34.56 kB / 484.5 MB, free: 2.379 MB / 442.7 MB Notification: Performance of pre-optimization done (n=1): time 7.21e-07/0.005831, allocations: 0.625 kB / 484.5 MB, free: 2.379 MB / 442.7 MB Notification: Performance of matching and sorting (n=1): time 7.174e-05/0.005902, allocations: 34.25 kB / 484.5 MB, free: 2.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.614e-05/0.005928, allocations: 56.09 kB / 484.6 MB, free: 2.273 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.00603, allocations: 189.1 kB / 484.8 MB, free: 2.078 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.427e-06/0.006039, allocations: 26.27 kB / 484.8 MB, free: 2.047 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.503e-05/0.006074, allocations: 96.66 kB / 484.9 MB, free: 1.949 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.047e-06/0.006083, allocations: 7.891 kB / 484.9 MB, free: 1.941 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.919e-05/0.006112, allocations: 26.28 kB / 484.9 MB, free: 1.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.406e-05/0.006196, allocations: 334.7 kB / 485.2 MB, free: 1.574 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.014e-05/0.006217, allocations: 15.7 kB / 485.3 MB, free: 1.559 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.052e-05/0.006227, allocations: 8 kB / 485.3 MB, free: 1.551 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.681e-05/0.006264, allocations: 42.33 kB / 485.3 MB, free: 1.512 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.006265, allocations: 1.688 kB / 485.3 MB, free: 1.512 MB / 442.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 7.056e-05/0.006336, allocations: 69.69 kB / 485.4 MB, free: 1.438 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.006346, allocations: 8 kB / 485.4 MB, free: 1.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.006356, allocations: 0 / 485.4 MB, free: 1.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.917e-06/0.006365, allocations: 0.9062 kB / 485.4 MB, free: 1.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.007e-05/0.006375, allocations: 3.938 kB / 485.4 MB, free: 1.426 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.325e-06/0.006377, allocations: 0 / 485.4 MB, free: 1.426 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.951e-05/0.006397, allocations: 16.33 kB / 485.4 MB, free: 1.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.006404, allocations: 4.5 kB / 485.4 MB, free: 1.406 MB / 442.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 6.565e-05/0.006469, allocations: 117.3 kB / 485.5 MB, free: 1.281 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.54e-06/0.006475, allocations: 5.062 kB / 485.5 MB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.413e-05/0.006539, allocations: 47.08 kB / 485.6 MB, free: 1.223 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.006541, allocations: 1.219 kB / 485.6 MB, free: 1.223 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.006542, allocations: 0 / 485.6 MB, free: 1.223 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.006545, allocations: 0 / 485.6 MB, free: 1.223 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.884e-05/0.006604, allocations: 86.98 kB / 485.7 MB, free: 1.121 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.006605, allocations: 0 / 485.7 MB, free: 1.121 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.974e-06/0.006607, allocations: 0 / 485.7 MB, free: 1.121 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.006608, allocations: 0 / 485.7 MB, free: 1.121 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.197e-06/0.006612, allocations: 3.094 kB / 485.7 MB, free: 1.121 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.82e-07/0.006613, allocations: 0 / 485.7 MB, free: 1.121 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.006615, allocations: 5.812 kB / 485.7 MB, free: 1.117 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.423e-05/0.006659, allocations: 70.66 kB / 485.7 MB, free: 1.027 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.247e-06/0.006668, allocations: 7.906 kB / 485.7 MB, free: 1.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.187e-06/0.006677, allocations: 7.984 kB / 485.7 MB, free: 1.012 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.302e-06/0.006683, allocations: 0 / 485.7 MB, free: 1.012 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.368e-06/0.006693, allocations: 0.75 kB / 485.8 MB, free: 1.012 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.72e-07/0.006694, allocations: 0 / 485.8 MB, free: 1.012 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.723e-05/0.006731, allocations: 55.56 kB / 485.8 MB, free: 0.957 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.006731, allocations: 0 / 485.8 MB, free: 0.957 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0002287/0.00696, allocations: 91.8 kB / 485.9 MB, free: 0.8672 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.0004067/0.007367, allocations: 278.3 kB / 486.2 MB, free: 0.6406 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 9.123e-05/0.007458, allocations: 62.48 kB / 486.2 MB, free: 0.5703 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.007462, allocations: 0 / 486.2 MB, free: 0.5703 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 7.454e-06/0.007469, allocations: 9.609 kB / 486.2 MB, free: 0.5586 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.548e-05/0.007524, allocations: 12.42 kB / 486.2 MB, free: 0.5469 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001999/0.007724, allocations: 191.1 kB / 486.4 MB, free: 344 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.273e-05/0.007757, allocations: 63.34 kB / 486.5 MB, free: 260 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.483e-05/0.007772, allocations: 9.297 kB / 486.5 MB, free: 252 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.907e-05/0.007801, allocations: 47.38 kB / 486.6 MB, free: 204 kB / 442.7 MB Notification: Performance of SimCode: time 5.01e-07/0.007801, allocations: 0.9375 kB / 486.6 MB, free: 204 kB / 442.7 MB Notification: Performance of Templates: time 0.004426/0.01223, allocations: 2.588 MB / 489.1 MB, free: 13.8 MB / 458.7 MB " [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=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.619189030956477]