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.001116/0.001116, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.001255/0.001255, allocations: 177 kB / 24.07 MB, free: 448 kB / 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.9639/0.9639, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.8683/0.8683, allocations: 154.6 MB / 415.6 MB, free: 0.5508 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.833e-06/1.833e-06, allocations: 0 / 0.5215 GB, free: 1.934 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.036e-05/2.219e-05, allocations: 6.141 kB / 0.5215 GB, free: 1.93 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001117/0.001139, allocations: 0.5232 MB / 0.522 GB, free: 1.422 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.002954, allocations: 1.639 MB / 0.5236 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.978e-05/0.002993, allocations: 5.375 kB / 0.5236 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.00314, allocations: 23.73 kB / 0.5236 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 2.329e-05/0.003164, allocations: 4 kB / 0.5236 GB, free: 15.73 MB / 0.4948 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.0007319/0.003896, allocations: 287.5 kB / 0.5239 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 6.376e-05/0.003959, allocations: 23.91 kB / 0.5239 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 3.721e-05/0.003997, allocations: 0 / 0.5239 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 4.329e-05/0.00404, allocations: 19.97 kB / 0.524 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 3.438e-05/0.004074, allocations: 11.98 kB / 0.524 GB, free: 15.4 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.004087, allocations: 0 / 0.524 GB, free: 15.4 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004946/0.004581, allocations: 459.5 kB / 0.5244 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 4.474e-05/0.004626, allocations: 16.69 kB / 0.5244 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 1.609e-05/0.004642, allocations: 8 kB / 0.5244 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003685/0.005011, allocations: 355.8 kB / 0.5248 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.005013, allocations: 0.9688 kB / 0.5248 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.002e-06/0.005014, allocations: 0 / 0.5248 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.748e-06/0.005019, allocations: 0 / 0.5248 GB, free: 14.58 MB / 0.4948 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.0003301/0.005349, allocations: 432.9 kB / 0.5252 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.005382, allocations: 12.03 kB / 0.5252 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.743e-05/0.005409, allocations: 5.422 kB / 0.5252 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.005521, allocations: 135.7 kB / 0.5253 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.785e-06/0.005528, allocations: 0.875 kB / 0.5253 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.402e-06/0.005535, allocations: 5.344 kB / 0.5253 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.352e-05/0.005588, allocations: 26.27 kB / 0.5254 GB, free: 13.92 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.005597, allocations: 8.125 kB / 0.5254 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.891e-06/0.005603, allocations: 5.594 kB / 0.5254 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.00561, allocations: 3.938 kB / 0.5254 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.596e-06/0.005619, allocations: 4.609 kB / 0.5254 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001027/0.005721, allocations: 109.2 kB / 0.5255 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.639e-05/0.005758, allocations: 32.53 kB / 0.5255 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.165e-05/0.005769, allocations: 11.62 kB / 0.5255 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.005799, allocations: 4.062 kB / 0.5255 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.00582, allocations: 37.39 kB / 0.5256 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 1.523e-06/0.005822, allocations: 4.797 kB / 0.5256 GB, free: 13.65 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 9.572e-05/0.005918, allocations: 38.73 kB / 0.5256 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.005945, allocations: 55.41 kB / 0.5257 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.00605, allocations: 217.8 kB / 0.5259 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.006062, allocations: 26.73 kB / 0.5259 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 4.984e-05/0.006111, allocations: 154.8 kB / 0.526 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.446e-06/0.00612, allocations: 0 / 0.526 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.006152, allocations: 32.33 kB / 0.5261 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001985/0.00635, allocations: 0.4962 MB / 0.5266 GB, free: 12.58 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.543e-05/0.006365, allocations: 12.53 kB / 0.5266 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.047e-05/0.006376, allocations: 7.938 kB / 0.5266 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.398e-05/0.00641, allocations: 32.38 kB / 0.5266 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.006412, allocations: 0 / 0.5266 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 6.74e-05/0.00648, allocations: 66.41 kB / 0.5267 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.006491, allocations: 9.422 kB / 0.5267 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.006503, allocations: 4 kB / 0.5267 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.125e-06/0.006511, allocations: 0 / 0.5267 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.918e-06/0.006521, allocations: 0 / 0.5267 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.695e-06/0.006523, allocations: 0.5938 kB / 0.5267 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.736e-05/0.006541, allocations: 19.77 kB / 0.5267 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.006547, allocations: 1.156 kB / 0.5267 GB, free: 12.42 MB / 0.4948 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 (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.882e-05/0.006616, allocations: 156.6 kB / 0.5269 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.542e-06/0.006623, allocations: 10.7 kB / 0.5269 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.215e-05/0.006685, allocations: 45.09 kB / 0.5269 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.006687, allocations: 0 / 0.5269 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.006692, allocations: 4 kB / 0.5269 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.006696, allocations: 3.938 kB / 0.5269 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.012e-05/0.006766, allocations: 113.2 kB / 0.527 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.006767, allocations: 2.5 kB / 0.527 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.288e-06/0.006772, allocations: 4 kB / 0.527 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.006773, allocations: 0 / 0.527 GB, free: 12.06 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.938e-06/0.006777, allocations: 7.984 kB / 0.527 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.006778, allocations: 0 / 0.527 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.006779, allocations: 0 / 0.527 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.858e-05/0.006827, allocations: 76.28 kB / 0.5271 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.525e-06/0.006835, allocations: 8.547 kB / 0.5271 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.624e-06/0.006842, allocations: 1.062 kB / 0.5271 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.204e-06/0.006849, allocations: 3.984 kB / 0.5271 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.976e-06/0.006858, allocations: 0 / 0.5271 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-06/0.00686, allocations: 2 kB / 0.5271 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 5.082e-05/0.006911, allocations: 150.6 kB / 0.5273 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.006911, allocations: 4 kB / 0.5273 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002274/0.007138, allocations: 87.8 kB / 0.5274 GB, free: 11.71 MB / 0.4948 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.0003972/0.007536, allocations: 268.2 kB / 0.5276 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001061/0.007642, allocations: 76.67 kB / 0.5277 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.007643, allocations: 4 kB / 0.5277 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 6.612e-06/0.00765, allocations: 7.688 kB / 0.5277 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.905e-05/0.007749, allocations: 0 / 0.5277 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001844/0.007933, allocations: 150.5 kB / 0.5278 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.139e-05/0.007964, allocations: 63.33 kB / 0.5279 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.777e-05/0.007982, allocations: 4 kB / 0.5279 GB, free: 11.11 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.008017, allocations: 72.92 kB / 0.528 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of SimCode: time 6.71e-07/0.008017, allocations: 0 / 0.528 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of Templates: time 0.004371/0.01239, allocations: 2.589 MB / 0.5305 GB, free: 8.594 MB / 0.4948 GB " [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.8883421956561506]