Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0009761/0.0009761, allocations: 80.94 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.0009677/0.0009677, allocations: 173 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 0.9388/0.9388, allocations: 177.1 MB / 203.8 MB, free: 5.504 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.7661/0.7661, allocations: 154.6 MB / 414.8 MB, free: 0.5156 MB / 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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 479.9 MB, free: 6.996 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.667e-05/1.831e-05, allocations: 2.312 kB / 479.9 MB, free: 6.992 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001387/0.001405, allocations: 0.5315 MB / 480.5 MB, free: 6.488 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.00216/0.003565, allocations: 1.656 MB / 482.1 MB, free: 4.824 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.076e-05/0.003596, allocations: 5.281 kB / 482.1 MB, free: 4.82 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.003733, allocations: 24.61 kB / 482.2 MB, free: 4.797 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 2.452e-05/0.003757, allocations: 8.969 kB / 482.2 MB, free: 4.789 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.0007547/0.004512, allocations: 284 kB / 482.4 MB, free: 4.516 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 6.214e-05/0.004574, allocations: 20.53 kB / 482.5 MB, free: 4.5 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.183e-05/0.004606, allocations: 5.672 kB / 482.5 MB, free: 4.496 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.359e-05/0.004649, allocations: 21.5 kB / 482.5 MB, free: 4.477 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.528e-05/0.004685, allocations: 13.3 kB / 482.5 MB, free: 4.465 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.115e-05/0.004696, allocations: 0 / 482.5 MB, free: 4.465 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006141/0.00531, allocations: 461.1 kB / 483 MB, free: 4.016 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 4.017e-05/0.00535, allocations: 12.62 kB / 483 MB, free: 4.008 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 1.705e-05/0.005367, allocations: 11.17 kB / 483 MB, free: 4 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003925/0.00576, allocations: 359 kB / 483.3 MB, free: 3.648 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.005761, allocations: 0.625 kB / 483.3 MB, free: 3.648 MB / 442.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005762, allocations: 0 / 483.3 MB, free: 3.648 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.515e-06/0.005764, allocations: 0.8125 kB / 483.3 MB, free: 3.648 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.000299/0.006063, allocations: 307.3 kB / 483.6 MB, free: 3.328 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.006095, allocations: 10.81 kB / 483.6 MB, free: 3.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.68e-05/0.006122, allocations: 5.547 kB / 483.6 MB, free: 3.316 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.006231, allocations: 121.7 kB / 483.8 MB, free: 3.172 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.943e-06/0.006238, allocations: 384 / 483.8 MB, free: 3.172 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-06/0.006247, allocations: 384 / 483.8 MB, free: 3.172 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.752e-05/0.006304, allocations: 41.02 kB / 483.8 MB, free: 3.125 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.00631, allocations: 1.031 kB / 483.8 MB, free: 3.125 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.729e-06/0.006315, allocations: 1.281 kB / 483.8 MB, free: 3.125 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.00632, allocations: 3.938 kB / 483.8 MB, free: 3.121 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.147e-05/0.006332, allocations: 12.45 kB / 483.8 MB, free: 3.109 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.355e-05/0.006415, allocations: 68.42 kB / 483.9 MB, free: 3.027 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.036e-05/0.006446, allocations: 14.58 kB / 483.9 MB, free: 3.004 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.002e-05/0.006456, allocations: 8.953 kB / 483.9 MB, free: 2.992 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.006488, allocations: 12.31 kB / 483.9 MB, free: 2.984 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.006509, allocations: 30.56 kB / 484 MB, free: 2.945 MB / 442.7 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.00651, allocations: 0.625 kB / 484 MB, free: 2.945 MB / 442.7 MB Notification: Performance of matching and sorting (n=1): time 8.268e-05/0.006593, allocations: 38.27 kB / 484 MB, free: 2.902 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.006624, allocations: 52.03 kB / 484 MB, free: 2.84 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.006737, allocations: 154.6 kB / 484.2 MB, free: 2.676 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.006749, allocations: 26.33 kB / 484.2 MB, free: 2.645 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.704e-05/0.006786, allocations: 96.72 kB / 484.3 MB, free: 2.547 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.044e-05/0.006796, allocations: 3.953 kB / 484.3 MB, free: 2.543 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-05/0.006834, allocations: 30.28 kB / 484.3 MB, free: 2.508 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.056e-05/0.006924, allocations: 318.8 kB / 484.7 MB, free: 2.188 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.171e-05/0.006946, allocations: 19.56 kB / 484.7 MB, free: 2.168 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.171e-05/0.006958, allocations: 8 kB / 484.7 MB, free: 2.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.422e-05/0.007002, allocations: 33.3 kB / 484.7 MB, free: 2.129 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.007004, allocations: 0 / 484.7 MB, free: 2.129 MB / 442.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.583e-05/0.007079, allocations: 61.62 kB / 484.8 MB, free: 2.062 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.00709, allocations: 4 kB / 484.8 MB, free: 2.059 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.007103, allocations: 8.812 kB / 484.8 MB, free: 2.051 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.007115, allocations: 0 / 484.8 MB, free: 2.051 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.081e-05/0.007126, allocations: 1 kB / 484.8 MB, free: 2.051 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.866e-06/0.007129, allocations: 0 / 484.8 MB, free: 2.051 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.222e-05/0.007151, allocations: 11.83 kB / 484.8 MB, free: 2.039 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.007161, allocations: 8.609 kB / 484.8 MB, free: 2.031 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 7.328e-05/0.007235, allocations: 113.9 kB / 484.9 MB, free: 1.91 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.112e-06/0.007241, allocations: 0 / 484.9 MB, free: 1.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.773e-05/0.007308, allocations: 46.75 kB / 485 MB, free: 1.859 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.00731, allocations: 4 kB / 485 MB, free: 1.855 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.007312, allocations: 1.125 kB / 485 MB, free: 1.855 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.007314, allocations: 0 / 485 MB, free: 1.855 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.915e-05/0.007383, allocations: 81.81 kB / 485.1 MB, free: 1.758 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.007384, allocations: 0.5312 kB / 485.1 MB, free: 1.758 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.336e-06/0.007387, allocations: 0.6562 kB / 485.1 MB, free: 1.758 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.007388, allocations: 0 / 485.1 MB, free: 1.758 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-06/0.007392, allocations: 1.156 kB / 485.1 MB, free: 1.758 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.007393, allocations: 4 kB / 485.1 MB, free: 1.754 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.007394, allocations: 0 / 485.1 MB, free: 1.754 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.291e-05/0.007447, allocations: 71.3 kB / 485.1 MB, free: 1.664 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.396e-06/0.007455, allocations: 5.891 kB / 485.1 MB, free: 1.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.256e-06/0.007463, allocations: 0 / 485.1 MB, free: 1.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.081e-05/0.007474, allocations: 4 kB / 485.1 MB, free: 1.656 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.097e-05/0.007485, allocations: 3.984 kB / 485.1 MB, free: 1.652 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-06/0.007487, allocations: 0 / 485.1 MB, free: 1.652 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.855e-05/0.007525, allocations: 41.38 kB / 485.2 MB, free: 1.613 MB / 442.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007525, allocations: 0 / 485.2 MB, free: 1.613 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0002673/0.007793, allocations: 83.8 kB / 485.3 MB, free: 1.531 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.0004987/0.008291, allocations: 278.3 kB / 485.5 MB, free: 1.305 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 9.531e-05/0.008387, allocations: 55.14 kB / 485.6 MB, free: 1.242 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.008389, allocations: 0 / 485.6 MB, free: 1.242 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 9.187e-06/0.008399, allocations: 10.3 kB / 485.6 MB, free: 1.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.441e-05/0.008463, allocations: 7.938 kB / 485.6 MB, free: 1.223 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002382/0.008701, allocations: 153.2 kB / 485.8 MB, free: 1.047 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.532e-05/0.008736, allocations: 59.34 kB / 485.8 MB, free: 0.9688 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 1.683e-05/0.008753, allocations: 4.562 kB / 485.8 MB, free: 0.9648 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.365e-05/0.008787, allocations: 48.41 kB / 485.9 MB, free: 0.918 MB / 442.7 MB Notification: Performance of SimCode: time 5.41e-07/0.008787, allocations: 0 / 485.9 MB, free: 0.918 MB / 442.7 MB Notification: Performance of Templates: time 0.004983/0.01377, allocations: 2.573 MB / 488.4 MB, free: 14.54 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & ./IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5249132430180907]