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.000944/0.000944, 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.001007/0.001007, 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 1.044/1.044, allocations: 177.1 MB / 203.8 MB, free: 5.48 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.799/0.799, allocations: 154.9 MB / 415.1 MB, free: 252 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_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.523e-06/1.523e-06, allocations: 0.6562 kB / 480.3 MB, free: 6.59 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.736e-05/1.889e-05, allocations: 7.781 kB / 480.4 MB, free: 6.586 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001171/0.00119, allocations: 0.5755 MB / 480.9 MB, free: 6.047 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.002953, allocations: 1.655 MB / 482.6 MB, free: 4.387 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.151e-05/0.002995, allocations: 3.938 kB / 482.6 MB, free: 4.383 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.00314, allocations: 17.2 kB / 482.6 MB, free: 4.367 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 2.399e-05/0.003164, allocations: 12.69 kB / 482.6 MB, free: 4.355 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.0007464/0.00391, allocations: 256.9 kB / 482.9 MB, free: 4.109 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 6.694e-05/0.003977, allocations: 20.91 kB / 482.9 MB, free: 4.094 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.609e-05/0.004013, allocations: 8.594 kB / 482.9 MB, free: 4.086 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.645e-05/0.00406, allocations: 17.83 kB / 482.9 MB, free: 4.07 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.903e-05/0.004099, allocations: 13.84 kB / 482.9 MB, free: 4.059 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.004111, allocations: 1.219 kB / 482.9 MB, free: 4.059 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006362/0.004747, allocations: 480.9 kB / 483.4 MB, free: 3.59 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 5.209e-05/0.004799, allocations: 27.39 kB / 483.4 MB, free: 3.566 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 1.675e-05/0.004816, allocations: 5 kB / 483.4 MB, free: 3.562 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00036/0.005176, allocations: 351.9 kB / 483.8 MB, free: 3.219 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.005178, allocations: 0 / 483.8 MB, free: 3.219 MB / 442.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.005179, allocations: 0 / 483.8 MB, free: 3.219 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.005183, allocations: 0.7188 kB / 483.8 MB, free: 3.219 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.000282/0.005465, allocations: 311.3 kB / 484.1 MB, free: 2.895 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.005496, allocations: 8.625 kB / 484.1 MB, free: 2.887 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.371e-05/0.00552, allocations: 6.375 kB / 484.1 MB, free: 2.883 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.005634, allocations: 129.6 kB / 484.2 MB, free: 2.73 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.833e-06/0.005641, allocations: 384 / 484.2 MB, free: 2.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-06/0.005647, allocations: 384 / 484.2 MB, free: 2.73 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.833e-05/0.005706, allocations: 33.88 kB / 484.3 MB, free: 2.691 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.005713, allocations: 0.75 kB / 484.3 MB, free: 2.691 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-06/0.005719, allocations: 5.75 kB / 484.3 MB, free: 2.688 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.005724, allocations: 3.938 kB / 484.3 MB, free: 2.684 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.274e-06/0.005732, allocations: 4 kB / 484.3 MB, free: 2.68 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.399e-05/0.005816, allocations: 67.88 kB / 484.3 MB, free: 2.598 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.264e-05/0.005848, allocations: 27.38 kB / 484.4 MB, free: 2.562 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.097e-05/0.005859, allocations: 5.484 kB / 484.4 MB, free: 2.555 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.005891, allocations: 4.062 kB / 484.4 MB, free: 2.551 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.005908, allocations: 31.66 kB / 484.4 MB, free: 2.512 MB / 442.7 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.005909, allocations: 0 / 484.4 MB, free: 2.512 MB / 442.7 MB Notification: Performance of matching and sorting (n=1): time 8.724e-05/0.005997, allocations: 38.69 kB / 484.4 MB, free: 2.469 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.855e-05/0.006025, allocations: 51.41 kB / 484.5 MB, free: 2.406 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.412e-05/0.006119, allocations: 154.6 kB / 484.6 MB, free: 2.242 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.927e-06/0.006128, allocations: 26.33 kB / 484.7 MB, free: 2.211 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.033e-05/0.006158, allocations: 96.67 kB / 484.8 MB, free: 2.113 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.876e-06/0.006167, allocations: 3.953 kB / 484.8 MB, free: 2.109 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-05/0.006197, allocations: 30.31 kB / 484.8 MB, free: 2.074 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.649e-05/0.006274, allocations: 326.8 kB / 485.1 MB, free: 1.746 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.758e-05/0.006291, allocations: 15.45 kB / 485.1 MB, free: 1.73 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.167e-05/0.006303, allocations: 8.562 kB / 485.1 MB, free: 1.723 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.402e-05/0.006337, allocations: 31.66 kB / 485.2 MB, free: 1.688 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.006338, allocations: 0.625 kB / 485.2 MB, free: 1.688 MB / 442.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 6.135e-05/0.0064, allocations: 54.61 kB / 485.2 MB, free: 1.629 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.006411, allocations: 7.984 kB / 485.2 MB, free: 1.621 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.006423, allocations: 4 kB / 485.2 MB, free: 1.617 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.006433, allocations: 1.5 kB / 485.2 MB, free: 1.617 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.326e-05/0.006446, allocations: 3.938 kB / 485.2 MB, free: 1.613 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.315e-06/0.006448, allocations: 0 / 485.2 MB, free: 1.613 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.981e-05/0.006468, allocations: 19.77 kB / 485.3 MB, free: 1.594 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.006475, allocations: 0.8438 kB / 485.3 MB, free: 1.594 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: 9 (labels[1],labels[2],labels[3],labels[4],labels[5],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.484e-05/0.006539, allocations: 117.4 kB / 485.4 MB, free: 1.469 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.891e-06/0.006545, allocations: 3.984 kB / 485.4 MB, free: 1.465 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.843e-05/0.006614, allocations: 42.36 kB / 485.4 MB, free: 1.418 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.006615, allocations: 0 / 485.4 MB, free: 1.418 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.006618, allocations: 4.516 kB / 485.4 MB, free: 1.414 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.00662, allocations: 2.734 kB / 485.4 MB, free: 1.414 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.575e-05/0.006676, allocations: 77.81 kB / 485.5 MB, free: 1.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.006678, allocations: 0 / 485.5 MB, free: 1.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.749e-06/0.006682, allocations: 7.984 kB / 485.5 MB, free: 1.312 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.006684, allocations: 0 / 485.5 MB, free: 1.312 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.397e-06/0.006687, allocations: 4 kB / 485.5 MB, free: 1.309 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.006688, allocations: 0.7812 kB / 485.5 MB, free: 1.309 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.00669, allocations: 3.938 kB / 485.5 MB, free: 1.305 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.516e-05/0.006736, allocations: 68.28 kB / 485.6 MB, free: 1.219 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.506e-06/0.006744, allocations: 7.953 kB / 485.6 MB, free: 1.211 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.508e-06/0.006754, allocations: 8.844 kB / 485.6 MB, free: 1.203 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.082e-06/0.00676, allocations: 1.75 kB / 485.6 MB, free: 1.203 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.816e-06/0.006769, allocations: 0 / 485.6 MB, free: 1.203 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-06/0.00677, allocations: 0 / 485.6 MB, free: 1.203 MB / 442.7 MB Notification: Performance of sorting global known variables: time 2.659e-05/0.006797, allocations: 36.67 kB / 485.6 MB, free: 1.168 MB / 442.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006797, allocations: 0 / 485.6 MB, free: 1.168 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0002174/0.007014, allocations: 89.11 kB / 485.7 MB, free: 1.082 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.0004015/0.007416, allocations: 263.8 kB / 486 MB, free: 0.8672 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 8.924e-05/0.007505, allocations: 58.48 kB / 486 MB, free: 0.8008 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.007509, allocations: 0 / 486 MB, free: 0.8008 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 5.69e-06/0.007514, allocations: 12.84 kB / 486.1 MB, free: 0.7852 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.225e-05/0.007576, allocations: 5.219 kB / 486.1 MB, free: 0.7812 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001783/0.007755, allocations: 151.2 kB / 486.2 MB, free: 0.6055 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.982e-05/0.007785, allocations: 64.27 kB / 486.3 MB, free: 0.5234 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.769e-05/0.007802, allocations: 5.031 kB / 486.3 MB, free: 0.5195 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.812e-05/0.00783, allocations: 52.09 kB / 486.3 MB, free: 480 kB / 442.7 MB Notification: Performance of SimCode: time 4.21e-07/0.007831, allocations: 0 / 486.3 MB, free: 480 kB / 442.7 MB Notification: Performance of Templates: time 0.004241/0.01207, allocations: 2.57 MB / 488.9 MB, free: 14.09 MB / 458.7 MB " [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=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.609435683116317]