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.0009179/0.0009179, 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.001053/0.001053, 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.975/0.975, 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.8146/0.8146, allocations: 154.9 MB / 415.1 MB, free: 200 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 1.893e-06/1.893e-06, allocations: 0 / 480.4 MB, free: 6.543 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.932e-05/2.121e-05, allocations: 2.312 kB / 480.4 MB, free: 6.539 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001287/0.001308, allocations: 0.5667 MB / 480.9 MB, free: 6.008 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.003255, allocations: 1.663 MB / 482.6 MB, free: 4.34 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.771e-05/0.003293, allocations: 0 / 482.6 MB, free: 4.34 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.003469, allocations: 65.38 kB / 482.6 MB, free: 4.277 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 2.822e-05/0.003497, allocations: 25.36 kB / 482.7 MB, free: 4.254 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.0007406/0.004237, allocations: 263.8 kB / 482.9 MB, free: 4.004 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 8.127e-05/0.004319, allocations: 36.34 kB / 483 MB, free: 3.973 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.631e-05/0.004355, allocations: 3.984 kB / 483 MB, free: 3.969 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.05e-05/0.004405, allocations: 28.5 kB / 483 MB, free: 3.941 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.455e-05/0.00445, allocations: 29.28 kB / 483 MB, free: 3.914 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.004463, allocations: 1.094 kB / 483 MB, free: 3.914 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005962/0.005059, allocations: 480.8 kB / 483.5 MB, free: 3.445 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 4.961e-05/0.005108, allocations: 29.12 kB / 483.5 MB, free: 3.422 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 1.748e-05/0.005126, allocations: 13.81 kB / 483.5 MB, free: 3.41 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003301/0.005456, allocations: 363.9 kB / 483.9 MB, free: 3.055 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.005458, allocations: 0 / 483.9 MB, free: 3.055 MB / 442.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.005459, allocations: 0 / 483.9 MB, free: 3.055 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.005462, allocations: 0.625 kB / 483.9 MB, free: 3.055 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.0002804/0.005743, allocations: 339.6 kB / 484.2 MB, free: 2.703 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.937e-05/0.005772, allocations: 8.031 kB / 484.2 MB, free: 2.695 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.482e-05/0.005797, allocations: 9.578 kB / 484.2 MB, free: 2.688 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000109/0.005906, allocations: 133.6 kB / 484.4 MB, free: 2.531 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.645e-06/0.005913, allocations: 1 kB / 484.4 MB, free: 2.531 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.661e-06/0.005919, allocations: 0.9062 kB / 484.4 MB, free: 2.531 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.069e-05/0.00598, allocations: 33.66 kB / 484.4 MB, free: 2.492 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-06/0.005986, allocations: 4.125 kB / 484.4 MB, free: 2.488 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.259e-06/0.005991, allocations: 3.078 kB / 484.4 MB, free: 2.488 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.005998, allocations: 4.75 kB / 484.4 MB, free: 2.484 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.775e-06/0.006005, allocations: 3.984 kB / 484.4 MB, free: 2.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.417e-05/0.00609, allocations: 76.44 kB / 484.5 MB, free: 2.391 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.722e-05/0.006117, allocations: 18.61 kB / 484.5 MB, free: 2.363 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.032e-05/0.006127, allocations: 8.859 kB / 484.5 MB, free: 2.352 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.006157, allocations: 4.062 kB / 484.5 MB, free: 2.348 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.76e-05/0.006174, allocations: 34.56 kB / 484.6 MB, free: 2.305 MB / 442.7 MB Notification: Performance of pre-optimization done (n=1): time 6.41e-07/0.006175, allocations: 0.5312 kB / 484.6 MB, free: 2.305 MB / 442.7 MB Notification: Performance of matching and sorting (n=1): time 7.79e-05/0.006253, allocations: 38.62 kB / 484.6 MB, free: 2.262 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.506e-05/0.006278, allocations: 63.34 kB / 484.7 MB, free: 2.188 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.639e-05/0.006374, allocations: 185.9 kB / 484.8 MB, free: 1.996 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.664e-06/0.006382, allocations: 25.7 kB / 484.9 MB, free: 1.965 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.776e-05/0.00641, allocations: 93.05 kB / 485 MB, free: 1.871 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.977e-06/0.006419, allocations: 3.953 kB / 485 MB, free: 1.867 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-05/0.006449, allocations: 34.69 kB / 485 MB, free: 1.828 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.035e-05/0.006519, allocations: 326.7 kB / 485.3 MB, free: 1.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.76e-05/0.006536, allocations: 18.81 kB / 485.3 MB, free: 1.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.149e-05/0.006548, allocations: 10.66 kB / 485.3 MB, free: 1.473 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.573e-05/0.006584, allocations: 42.78 kB / 485.4 MB, free: 1.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.006585, allocations: 0.875 kB / 485.4 MB, free: 1.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 5.913e-05/0.006644, allocations: 72.78 kB / 485.5 MB, free: 1.355 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.017e-06/0.006653, allocations: 5.906 kB / 485.5 MB, free: 1.352 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.006664, allocations: 0 / 485.5 MB, free: 1.352 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.006675, allocations: 3.984 kB / 485.5 MB, free: 1.348 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.096e-05/0.006686, allocations: 4 kB / 485.5 MB, free: 1.344 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-06/0.006688, allocations: 0 / 485.5 MB, free: 1.344 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.849e-05/0.006706, allocations: 16.58 kB / 485.5 MB, free: 1.328 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.006712, allocations: 0 / 485.5 MB, free: 1.328 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 5.73e-05/0.00677, allocations: 117.5 kB / 485.6 MB, free: 1.203 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.3e-06/0.006775, allocations: 5.172 kB / 485.6 MB, free: 1.199 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.047e-05/0.006835, allocations: 46.14 kB / 485.7 MB, free: 1.145 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.006838, allocations: 4.891 kB / 485.7 MB, free: 1.141 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-06/0.00684, allocations: 3.938 kB / 485.7 MB, free: 1.141 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.006844, allocations: 0 / 485.7 MB, free: 1.141 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.46e-05/0.006898, allocations: 82.69 kB / 485.7 MB, free: 1.043 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.006899, allocations: 0 / 485.7 MB, free: 1.043 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.124e-06/0.006901, allocations: 1.031 kB / 485.7 MB, free: 1.043 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.71e-07/0.006902, allocations: 0 / 485.7 MB, free: 1.043 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.597e-06/0.006906, allocations: 4 kB / 485.8 MB, free: 1.039 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.82e-07/0.006906, allocations: 0.75 kB / 485.8 MB, free: 1.039 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.006907, allocations: 0 / 485.8 MB, free: 1.039 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.228e-05/0.00695, allocations: 71.16 kB / 485.8 MB, free: 0.9492 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.054e-05/0.00696, allocations: 16.52 kB / 485.8 MB, free: 0.9336 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.073e-06/0.006967, allocations: 0.8125 kB / 485.8 MB, free: 0.9336 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.262e-06/0.006974, allocations: 0 / 485.8 MB, free: 0.9336 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.137e-06/0.006983, allocations: 0.9375 kB / 485.8 MB, free: 0.9336 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.006985, allocations: 3.984 kB / 485.8 MB, free: 0.9297 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.457e-05/0.007019, allocations: 50.45 kB / 485.9 MB, free: 0.8789 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00702, allocations: 1.219 kB / 485.9 MB, free: 0.8789 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0001946/0.007214, allocations: 91.8 kB / 486 MB, free: 0.7891 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.0003831/0.007597, allocations: 269 kB / 486.2 MB, free: 0.5664 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 8.879e-05/0.007686, allocations: 67.52 kB / 486.3 MB, free: 0.4922 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.00769, allocations: 4 kB / 486.3 MB, free: 500 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 6.573e-06/0.007697, allocations: 15.14 kB / 486.3 MB, free: 484 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.88e-05/0.007755, allocations: 3.938 kB / 486.3 MB, free: 480 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002083/0.007964, allocations: 194.5 kB / 486.5 MB, free: 260 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.728e-05/0.007991, allocations: 63.34 kB / 486.6 MB, free: 176 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.639e-05/0.008007, allocations: 4.703 kB / 486.6 MB, free: 172 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.667e-05/0.008034, allocations: 56.48 kB / 486.6 MB, free: 116 kB / 442.7 MB Notification: Performance of SimCode: time 5.61e-07/0.008034, allocations: 0 / 486.6 MB, free: 116 kB / 442.7 MB Notification: Performance of Templates: time 0.003947/0.01198, allocations: 2.58 MB / 489.2 MB, free: 13.73 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.688073760829866]