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.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.001008/0.001008, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0008039/0.0008039, allocations: 177.9 kB / 23.21 MB, free: 1.352 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.8872/0.8872, allocations: 177.1 MB / 203.5 MB, free: 5.73 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-531:190: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-531:198: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.7044/0.7044, allocations: 154.5 MB / 414.5 MB, free: 0.8398 MB / 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_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 1.092e-06/1.092e-06, allocations: 0 / 0.6192 GB, free: 13.29 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.47e-05/1.579e-05, allocations: 2.281 kB / 0.6192 GB, free: 13.28 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.0009125/0.0009283, allocations: 0.516 MB / 0.6197 GB, free: 12.77 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001441/0.002369, allocations: 1.614 MB / 0.6213 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.015e-05/0.0024, allocations: 3.938 kB / 0.6213 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.00253, allocations: 15.97 kB / 0.6213 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 1.869e-05/0.002549, allocations: 11.92 kB / 0.6213 GB, free: 11.1 MB / 0.5886 GB [/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.000631/0.00318, allocations: 283 kB / 0.6216 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 5.836e-05/0.003239, allocations: 19.92 kB / 0.6216 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 3.488e-05/0.003273, allocations: 3.984 kB / 0.6216 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 3.878e-05/0.003312, allocations: 15.98 kB / 0.6217 GB, free: 10.79 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 3.503e-05/0.003347, allocations: 19.92 kB / 0.6217 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.00336, allocations: 0 / 0.6217 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004469/0.003807, allocations: 451 kB / 0.6221 GB, free: 10.32 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 4.299e-05/0.00385, allocations: 27.92 kB / 0.6221 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 1.611e-05/0.003866, allocations: 7.938 kB / 0.6221 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003014/0.004168, allocations: 343.2 kB / 0.6225 GB, free: 9.953 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.734e-06/0.004169, allocations: 0 / 0.6225 GB, free: 9.953 MB / 0.5886 GB Notification: Performance of FrontEnd: time 6.31e-07/0.00417, allocations: 0 / 0.6225 GB, free: 9.953 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.567e-06/0.004174, allocations: 0 / 0.6225 GB, free: 9.953 MB / 0.5886 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.0002899/0.004464, allocations: 333.6 kB / 0.6228 GB, free: 9.598 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.004495, allocations: 13.47 kB / 0.6228 GB, free: 9.586 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.546e-05/0.00452, allocations: 4.891 kB / 0.6228 GB, free: 9.582 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.004623, allocations: 128.9 kB / 0.6229 GB, free: 9.434 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.444e-06/0.00463, allocations: 4.375 kB / 0.6229 GB, free: 9.43 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.297e-06/0.00464, allocations: 8.375 kB / 0.6229 GB, free: 9.422 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.2e-05/0.004722, allocations: 42.19 kB / 0.623 GB, free: 9.375 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.561e-06/0.004727, allocations: 192 / 0.623 GB, free: 9.375 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.273e-06/0.004734, allocations: 384 / 0.623 GB, free: 9.375 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.004739, allocations: 3.938 kB / 0.623 GB, free: 9.371 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.119e-05/0.00476, allocations: 15.98 kB / 0.623 GB, free: 9.355 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001097/0.00487, allocations: 137.2 kB / 0.6231 GB, free: 9.191 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 3.552e-05/0.004905, allocations: 22.64 kB / 0.6231 GB, free: 9.16 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.613e-05/0.004921, allocations: 12.84 kB / 0.6232 GB, free: 9.145 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.00495, allocations: 8 kB / 0.6232 GB, free: 9.137 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.723e-05/0.004967, allocations: 38.5 kB / 0.6232 GB, free: 9.09 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.004968, allocations: 0 / 0.6232 GB, free: 9.09 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1): time 0.0001135/0.005081, allocations: 65.62 kB / 0.6233 GB, free: 9.02 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.362e-05/0.005105, allocations: 55.34 kB / 0.6233 GB, free: 8.953 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.769e-05/0.005203, allocations: 166.2 kB / 0.6235 GB, free: 8.781 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 9.297e-06/0.005212, allocations: 25.7 kB / 0.6235 GB, free: 8.75 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.628e-05/0.005248, allocations: 100.1 kB / 0.6236 GB, free: 8.648 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 7.544e-06/0.005256, allocations: 0 / 0.6236 GB, free: 8.648 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.718e-05/0.005283, allocations: 25.7 kB / 0.6236 GB, free: 8.617 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.984e-05/0.005353, allocations: 327 kB / 0.6239 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.414e-05/0.005387, allocations: 35.98 kB / 0.624 GB, free: 8.254 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.724e-05/0.005414, allocations: 42.72 kB / 0.624 GB, free: 8.215 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.217e-05/0.005466, allocations: 76.75 kB / 0.6241 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.005468, allocations: 0 / 0.6241 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of matching and sorting (n=12) (initialization): time 8.472e-05/0.005553, allocations: 117.6 kB / 0.6242 GB, free: 8.016 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.005564, allocations: 4 kB / 0.6242 GB, free: 8.012 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.005578, allocations: 7.984 kB / 0.6242 GB, free: 8.004 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.005588, allocations: 0 / 0.6242 GB, free: 8.004 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.352e-05/0.005601, allocations: 4 kB / 0.6242 GB, free: 8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.005606, allocations: 4 kB / 0.6242 GB, free: 7.996 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.427e-05/0.00562, allocations: 19.89 kB / 0.6242 GB, free: 7.977 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-06/0.005626, allocations: 0 / 0.6242 GB, free: 7.977 MB / 0.5886 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 7.437e-05/0.005701, allocations: 126.2 kB / 0.6244 GB, free: 7.848 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.51e-06/0.005706, allocations: 7.953 kB / 0.6244 GB, free: 7.84 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.575e-05/0.005782, allocations: 57.44 kB / 0.6244 GB, free: 7.773 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.005784, allocations: 3.984 kB / 0.6244 GB, free: 7.77 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.00579, allocations: 7.938 kB / 0.6244 GB, free: 7.762 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.005791, allocations: 0 / 0.6244 GB, free: 7.762 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.684e-05/0.005848, allocations: 121.3 kB / 0.6245 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-07/0.005849, allocations: 0 / 0.6245 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.984e-06/0.005851, allocations: 0 / 0.6245 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.32e-07/0.005851, allocations: 0 / 0.6245 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.005856, allocations: 0 / 0.6245 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.005857, allocations: 4 kB / 0.6245 GB, free: 7.609 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.005858, allocations: 3.984 kB / 0.6245 GB, free: 7.605 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.673e-05/0.005905, allocations: 80.95 kB / 0.6246 GB, free: 7.508 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.081e-06/0.005911, allocations: 3.953 kB / 0.6246 GB, free: 7.504 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.824e-06/0.005919, allocations: 4 kB / 0.6246 GB, free: 7.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.042e-06/0.005925, allocations: 3.938 kB / 0.6246 GB, free: 7.496 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-06/0.005934, allocations: 4.031 kB / 0.6246 GB, free: 7.492 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-06/0.005936, allocations: 7.875 kB / 0.6246 GB, free: 7.484 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.334e-05/0.005989, allocations: 130.7 kB / 0.6248 GB, free: 7.359 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.00599, allocations: 0 / 0.6248 GB, free: 7.359 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001883/0.006178, allocations: 83.8 kB / 0.6249 GB, free: 7.277 MB / 0.5886 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.0003379/0.006516, allocations: 249.8 kB / 0.6251 GB, free: 7.051 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001208/0.006636, allocations: 97.66 kB / 0.6252 GB, free: 6.949 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.006638, allocations: 0 / 0.6252 GB, free: 6.949 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.033e-06/0.006645, allocations: 8 kB / 0.6252 GB, free: 6.941 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.882e-05/0.006744, allocations: 7.875 kB / 0.6252 GB, free: 6.934 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004661/0.00721, allocations: 187 kB / 0.6254 GB, free: 6.719 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.94e-05/0.007259, allocations: 87.25 kB / 0.6255 GB, free: 6.613 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.263e-05/0.007272, allocations: 8.5 kB / 0.6255 GB, free: 6.605 MB / 0.5886 GB Notification: Performance of SimCode: time 5.01e-07/0.007273, allocations: 4.125 kB / 0.6255 GB, free: 6.602 MB / 0.5886 GB Notification: Performance of Templates: time 0.002752/0.01003, allocations: 2.368 MB / 0.6278 GB, free: 4.23 MB / 0.5886 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.482690026983619] Failed to read output from testmodel.py, exit status != 0: 0.014542833901941776 0.022251593 0.016530547 Calling exit ...