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.0009012/0.0009012, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.001793/0.001793, allocations: 173 kB / 23.03 MB, free: 1.543 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.9405/0.9405, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.8262/0.8262, allocations: 154.6 MB / 414.5 MB, free: 0.6641 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.733e-06/1.733e-06, allocations: 0 / 0.5203 GB, free: 2.262 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.743e-05/2.917e-05, allocations: 3.578 kB / 0.5203 GB, free: 2.258 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.00305/0.003079, allocations: 0.5183 MB / 0.5208 GB, free: 1.758 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002403/0.005482, allocations: 1.654 MB / 0.5224 GB, free: 92 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.894e-05/0.005521, allocations: 0 / 0.5224 GB, free: 92 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001659/0.005687, allocations: 23.91 kB / 0.5224 GB, free: 68 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.609e-05/0.005713, allocations: 10.36 kB / 0.5224 GB, free: 60 kB / 490.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.0009849/0.006698, allocations: 271.5 kB / 0.5227 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 9.122e-05/0.006789, allocations: 29.38 kB / 0.5227 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 5.438e-05/0.006844, allocations: 7.984 kB / 0.5227 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 5.831e-05/0.006902, allocations: 7.984 kB / 0.5227 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 5e-05/0.006952, allocations: 16.95 kB / 0.5228 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.739e-05/0.006969, allocations: 0 / 0.5228 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007971/0.007766, allocations: 459.9 kB / 0.5232 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 5.921e-05/0.007826, allocations: 23.86 kB / 0.5232 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 2.244e-05/0.007848, allocations: 5 kB / 0.5232 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004717/0.00832, allocations: 359 kB / 0.5236 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.008324, allocations: 0.9688 kB / 0.5236 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.452e-06/0.008325, allocations: 0 / 0.5236 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.00833, allocations: 0 / 0.5236 GB, free: 14.91 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.0004264/0.008756, allocations: 432.6 kB / 0.524 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.008802, allocations: 12.03 kB / 0.524 GB, free: 14.44 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.319e-05/0.008845, allocations: 6.109 kB / 0.524 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/0.00899, allocations: 135.7 kB / 0.5241 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.009001, allocations: 4.375 kB / 0.5241 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-06/0.00901, allocations: 8.938 kB / 0.5241 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.2e-05/0.009092, allocations: 28.08 kB / 0.5242 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.0091, allocations: 192 / 0.5242 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.00911, allocations: 4.359 kB / 0.5242 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.00912, allocations: 7.922 kB / 0.5242 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.19e-05/0.009132, allocations: 4 kB / 0.5242 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001529/0.009285, allocations: 142.3 kB / 0.5243 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 4.96e-05/0.009334, allocations: 27.06 kB / 0.5243 GB, free: 14.01 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.137e-05/0.009356, allocations: 7.688 kB / 0.5243 GB, free: 14 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.791e-05/0.009404, allocations: 8.047 kB / 0.5244 GB, free: 13.99 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.009429, allocations: 38.77 kB / 0.5244 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.00943, allocations: 0 / 0.5244 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0001417/0.009572, allocations: 45.59 kB / 0.5244 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001835/0.009756, allocations: 55.88 kB / 0.5245 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.009926, allocations: 218.6 kB / 0.5247 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.193e-05/0.009938, allocations: 25.7 kB / 0.5247 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.008e-05/0.01001, allocations: 144.3 kB / 0.5249 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.115e-05/0.01002, allocations: 4 kB / 0.5249 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.69e-05/0.01007, allocations: 35.36 kB / 0.5249 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.01022, allocations: 0.4923 MB / 0.5254 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.596e-05/0.01025, allocations: 17.44 kB / 0.5254 GB, free: 12.85 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.99e-05/0.01027, allocations: 8 kB / 0.5254 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.61e-05/0.01032, allocations: 35.06 kB / 0.5254 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.01032, allocations: 4 kB / 0.5254 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001073/0.01043, allocations: 76.05 kB / 0.5255 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.01045, allocations: 8 kB / 0.5255 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.01046, allocations: 0 / 0.5255 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.01047, allocations: 0 / 0.5255 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.687e-05/0.01049, allocations: 3.984 kB / 0.5255 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.0105, allocations: 7.938 kB / 0.5255 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.616e-05/0.01052, allocations: 14.58 kB / 0.5255 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-06/0.01053, allocations: 0 / 0.5255 GB, free: 12.7 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 (cluster_size[3],cluster_size[2],cluster_size[1],labels[5],labels[4],labels[3],labels[2],labels[1],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 9.718e-05/0.01063, allocations: 160.6 kB / 0.5257 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.241e-05/0.01064, allocations: 7.953 kB / 0.5257 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.062e-05/0.01073, allocations: 45.09 kB / 0.5257 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.01074, allocations: 3.938 kB / 0.5258 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.01074, allocations: 5.125 kB / 0.5258 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.01074, allocations: 0 / 0.5258 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.543e-05/0.01084, allocations: 136.6 kB / 0.5259 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.01084, allocations: 0.9375 kB / 0.5259 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.583e-06/0.01085, allocations: 4 kB / 0.5259 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.01085, allocations: 0.9375 kB / 0.5259 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.01085, allocations: 0 / 0.5259 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.01086, allocations: 0 / 0.5259 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01086, allocations: 1.031 kB / 0.5259 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.65e-05/0.01092, allocations: 76.33 kB / 0.526 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.396e-05/0.01094, allocations: 13.77 kB / 0.526 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.01095, allocations: 4 kB / 0.526 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.138e-05/0.01096, allocations: 0 / 0.526 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.437e-05/0.01098, allocations: 0 / 0.526 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.01098, allocations: 7.938 kB / 0.526 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 7.695e-05/0.01106, allocations: 155.3 kB / 0.5261 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1e-07/0.01106, allocations: 3.938 kB / 0.5261 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003452/0.0114, allocations: 88.45 kB / 0.5262 GB, free: 11.94 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.0005584/0.01196, allocations: 273.2 kB / 0.5265 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001362/0.0121, allocations: 65.38 kB / 0.5266 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.0121, allocations: 0 / 0.5266 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.065e-05/0.01211, allocations: 7.688 kB / 0.5266 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/0.01227, allocations: 9.766 kB / 0.5266 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002574/0.01252, allocations: 150.5 kB / 0.5267 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.219e-05/0.01256, allocations: 67.28 kB / 0.5268 GB, free: 11.35 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.487e-05/0.01257, allocations: 0 / 0.5268 GB, free: 11.35 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.276e-05/0.01258, allocations: 8.5 kB / 0.5268 GB, free: 11.34 MB / 0.4948 GB Notification: Performance of SimCode: time 4.51e-07/0.01258, allocations: 0 / 0.5268 GB, free: 11.34 MB / 0.4948 GB Notification: Performance of Templates: time 0.004582/0.01717, allocations: 2.616 MB / 0.5293 GB, free: 8.863 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.8067810949869454]