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.0009234/0.0009234, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001172/0.001172, allocations: 181 kB / 23.36 MB, free: 1.133 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.013/1.013, 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 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.793/0.793, allocations: 154.6 MB / 414.8 MB, free: 492 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. " [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.342e-06/1.342e-06, allocations: 0.7656 kB / 480 MB, free: 6.887 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.467e-05/2.601e-05, allocations: 2.312 kB / 480 MB, free: 6.883 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.002065/0.002091, allocations: 0.5796 MB / 480.6 MB, free: 6.34 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002586/0.004677, allocations: 1.66 MB / 482.2 MB, free: 4.672 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.809e-05/0.004735, allocations: 1.828 kB / 482.2 MB, free: 4.672 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000238/0.004973, allocations: 66.95 kB / 482.3 MB, free: 4.609 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 5.084e-05/0.005024, allocations: 28.61 kB / 482.3 MB, free: 4.582 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.001177/0.006201, allocations: 255.6 kB / 482.6 MB, free: 4.336 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.006303, allocations: 27.91 kB / 482.6 MB, free: 4.312 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.112e-05/0.006344, allocations: 4.906 kB / 482.6 MB, free: 4.309 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.999e-05/0.006414, allocations: 24.94 kB / 482.6 MB, free: 4.285 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.15e-05/0.006485, allocations: 43.02 kB / 482.7 MB, free: 4.246 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.006501, allocations: 3.938 kB / 482.7 MB, free: 4.242 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003193/0.009693, allocations: 476.7 kB / 483.1 MB, free: 3.777 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 7.215e-05/0.009766, allocations: 33.03 kB / 483.2 MB, free: 3.75 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 2.826e-05/0.009794, allocations: 11.94 kB / 483.2 MB, free: 3.738 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005727/0.01037, allocations: 355.7 kB / 483.5 MB, free: 3.391 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.01037, allocations: 0.625 kB / 483.5 MB, free: 3.391 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.01037, allocations: 0 / 483.5 MB, free: 3.391 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.01038, allocations: 0.625 kB / 483.5 MB, free: 3.391 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.0004008/0.01078, allocations: 347.6 kB / 483.9 MB, free: 3.031 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.01082, allocations: 12.03 kB / 483.9 MB, free: 3.02 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.99e-05/0.01085, allocations: 1.562 kB / 483.9 MB, free: 3.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.011, allocations: 125.7 kB / 484 MB, free: 2.871 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.01101, allocations: 9.281 kB / 484 MB, free: 2.863 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.865e-06/0.01102, allocations: 384 / 484 MB, free: 2.863 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.943e-05/0.01109, allocations: 35.09 kB / 484.1 MB, free: 2.824 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.171e-06/0.0111, allocations: 192 / 484.1 MB, free: 2.824 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.0111, allocations: 4.375 kB / 484.1 MB, free: 2.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.01111, allocations: 3.938 kB / 484.1 MB, free: 2.816 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.222e-05/0.01112, allocations: 5.594 kB / 484.1 MB, free: 2.812 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001149/0.01124, allocations: 79.22 kB / 484.2 MB, free: 2.719 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.478e-05/0.01127, allocations: 15.58 kB / 484.2 MB, free: 2.695 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.575e-05/0.01129, allocations: 8.953 kB / 484.2 MB, free: 2.684 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.919e-05/0.01133, allocations: 8.609 kB / 484.2 MB, free: 2.676 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.01135, allocations: 38.56 kB / 484.2 MB, free: 2.629 MB / 442.7 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.01135, allocations: 1.312 kB / 484.2 MB, free: 2.629 MB / 442.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001023/0.01146, allocations: 45.56 kB / 484.3 MB, free: 2.582 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.889e-05/0.01149, allocations: 52.06 kB / 484.3 MB, free: 2.52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.01163, allocations: 179.9 kB / 484.5 MB, free: 2.336 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.193e-05/0.01165, allocations: 26.92 kB / 484.5 MB, free: 2.305 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.413e-05/0.01169, allocations: 104.1 kB / 484.6 MB, free: 2.199 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.169e-05/0.0117, allocations: 3.953 kB / 484.6 MB, free: 2.195 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.166e-05/0.01174, allocations: 30.73 kB / 484.7 MB, free: 2.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.785e-05/0.01184, allocations: 326.8 kB / 485 MB, free: 1.832 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.465e-05/0.01187, allocations: 14.83 kB / 485 MB, free: 1.816 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.991e-05/0.01189, allocations: 8.906 kB / 485 MB, free: 1.809 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.498e-05/0.01194, allocations: 47.55 kB / 485 MB, free: 1.762 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.01194, allocations: 0.7188 kB / 485 MB, free: 1.762 MB / 442.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 9.017e-05/0.01203, allocations: 72.02 kB / 485.1 MB, free: 1.688 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.01205, allocations: 8.594 kB / 485.1 MB, free: 1.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.01206, allocations: 0 / 485.1 MB, free: 1.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.01207, allocations: 1.438 kB / 485.1 MB, free: 1.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.241e-05/0.01209, allocations: 0 / 485.1 MB, free: 1.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.525e-06/0.01209, allocations: 0 / 485.1 MB, free: 1.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.804e-05/0.01212, allocations: 15.83 kB / 485.1 MB, free: 1.664 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.01212, allocations: 0.7812 kB / 485.1 MB, free: 1.664 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 8.675e-05/0.01221, allocations: 118.7 kB / 485.3 MB, free: 1.539 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.022e-05/0.01222, allocations: 4 kB / 485.3 MB, free: 1.535 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.809e-05/0.01231, allocations: 46.12 kB / 485.3 MB, free: 1.484 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.01231, allocations: 0 / 485.3 MB, free: 1.484 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.01231, allocations: 4.656 kB / 485.3 MB, free: 1.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.01232, allocations: 0 / 485.3 MB, free: 1.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.533e-05/0.0124, allocations: 86.55 kB / 485.4 MB, free: 1.379 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.0124, allocations: 0 / 485.4 MB, free: 1.379 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.541e-06/0.01241, allocations: 0.5 kB / 485.4 MB, free: 1.379 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.01241, allocations: 0.5938 kB / 485.4 MB, free: 1.379 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.587e-06/0.01241, allocations: 0 / 485.4 MB, free: 1.379 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.01242, allocations: 5.203 kB / 485.4 MB, free: 1.375 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.01242, allocations: 0 / 485.4 MB, free: 1.375 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.122e-05/0.01248, allocations: 62.73 kB / 485.5 MB, free: 1.293 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.445e-05/0.01249, allocations: 16.83 kB / 485.5 MB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.01251, allocations: 8 kB / 485.5 MB, free: 1.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.304e-05/0.01252, allocations: 9.281 kB / 485.5 MB, free: 1.262 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.116e-05/0.01253, allocations: 0 / 485.5 MB, free: 1.262 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.01253, allocations: 0 / 485.5 MB, free: 1.262 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.731e-05/0.01259, allocations: 48.97 kB / 485.5 MB, free: 1.211 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01259, allocations: 0.8438 kB / 485.5 MB, free: 1.211 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0002995/0.01289, allocations: 91.8 kB / 485.6 MB, free: 1.121 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.0005485/0.01344, allocations: 268.1 kB / 485.9 MB, free: 0.8984 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001048/0.01354, allocations: 58.55 kB / 486 MB, free: 0.832 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.01355, allocations: 4 kB / 486 MB, free: 0.8281 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 9.738e-06/0.01356, allocations: 8.844 kB / 486 MB, free: 0.8164 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.172e-05/0.01363, allocations: 13.69 kB / 486 MB, free: 0.8047 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002529/0.01388, allocations: 186.7 kB / 486.2 MB, free: 0.5938 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.113e-05/0.01392, allocations: 67.33 kB / 486.2 MB, free: 0.5078 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.907e-05/0.01394, allocations: 1.438 kB / 486.2 MB, free: 0.5078 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.417e-05/0.01398, allocations: 51.38 kB / 486.3 MB, free: 468 kB / 442.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01398, allocations: 0 / 486.3 MB, free: 468 kB / 442.7 MB Notification: Performance of Templates: time 0.005769/0.01975, allocations: 2.589 MB / 488.9 MB, free: 14.07 MB / 458.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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.620980385225266]