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.00198/0.00198, allocations: 84.73 kB / 19.44 MB, free: 356 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.002535/0.002535, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.566/1.566, allocations: 177.1 MB / 203.1 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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 1.249/1.249, allocations: 154.6 MB / 414.1 MB, free: 0.6367 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 178] 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.954e-06/1.954e-06, allocations: 0 / 0.5196 GB, free: 2.551 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.727e-05/3.922e-05, allocations: 4 kB / 0.5196 GB, free: 2.547 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001889/0.001929, allocations: 0.5131 MB / 0.5201 GB, free: 2.051 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.003278/0.005207, allocations: 1.611 MB / 0.5217 GB, free: 436 kB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.005247, allocations: 0 / 0.5217 GB, free: 436 kB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001872/0.005434, allocations: 19.91 kB / 0.5217 GB, free: 416 kB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 3.485e-05/0.005469, allocations: 13.98 kB / 0.5217 GB, free: 404 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.001267/0.006735, allocations: 280.3 kB / 0.522 GB, free: 124 kB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 9.642e-05/0.006832, allocations: 27.91 kB / 0.522 GB, free: 96 kB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.306e-05/0.006875, allocations: 0.625 kB / 0.522 GB, free: 96 kB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.612e-05/0.006931, allocations: 12.64 kB / 0.522 GB, free: 84 kB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.192e-05/0.006983, allocations: 15.92 kB / 0.522 GB, free: 68 kB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.848e-05/0.007001, allocations: 5.422 kB / 0.522 GB, free: 64 kB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009996/0.008001, allocations: 455 kB / 0.5225 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.308e-05/0.008064, allocations: 15.94 kB / 0.5225 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 3.72e-05/0.008101, allocations: 12.7 kB / 0.5225 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0007304/0.008832, allocations: 348 kB / 0.5228 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.00884, allocations: 8 kB / 0.5228 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.072e-06/0.008841, allocations: 3.031 kB / 0.5228 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.008846, allocations: 0 / 0.5228 GB, free: 15.24 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.0006112/0.009457, allocations: 329.6 kB / 0.5231 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.009498, allocations: 11.97 kB / 0.5231 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.649e-05/0.009554, allocations: 8.891 kB / 0.5232 GB, free: 14.87 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004526/0.01001, allocations: 129.5 kB / 0.5233 GB, free: 14.72 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.01002, allocations: 4.375 kB / 0.5233 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.01003, allocations: 384 / 0.5233 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.01016, allocations: 42.69 kB / 0.5233 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.01017, allocations: 1.25 kB / 0.5233 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.01018, allocations: 384 / 0.5233 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.0102, allocations: 7.938 kB / 0.5233 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.694e-05/0.01024, allocations: 16.52 kB / 0.5233 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002048/0.01044, allocations: 121.3 kB / 0.5235 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 6.708e-05/0.01051, allocations: 27.53 kB / 0.5235 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.989e-05/0.01054, allocations: 12.92 kB / 0.5235 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.447e-05/0.01058, allocations: 4.969 kB / 0.5235 GB, free: 14.44 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.01063, allocations: 34.5 kB / 0.5235 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.01063, allocations: 5 kB / 0.5235 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1): time 0.0002215/0.01085, allocations: 65.62 kB / 0.5236 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.0109, allocations: 60.5 kB / 0.5237 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002127/0.01111, allocations: 166 kB / 0.5238 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.546e-05/0.01115, allocations: 25.7 kB / 0.5238 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 8.232e-05/0.01123, allocations: 96.72 kB / 0.5239 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.227e-05/0.01124, allocations: 4 kB / 0.5239 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.939e-05/0.0113, allocations: 27.39 kB / 0.524 GB, free: 13.92 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001967/0.0115, allocations: 322.8 kB / 0.5243 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.26e-05/0.01157, allocations: 39.98 kB / 0.5243 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.839e-05/0.01163, allocations: 47.31 kB / 0.5244 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.01174, allocations: 70.09 kB / 0.5244 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01174, allocations: 0 / 0.5244 GB, free: 13.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002005/0.01194, allocations: 133.5 kB / 0.5246 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.01196, allocations: 4 kB / 0.5246 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.01198, allocations: 4.719 kB / 0.5246 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.012, allocations: 1.188 kB / 0.5246 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-05/0.01201, allocations: 0 / 0.5246 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.01202, allocations: 3.938 kB / 0.5246 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.81e-05/0.01207, allocations: 7.953 kB / 0.5246 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.01208, allocations: 0.7188 kB / 0.5246 GB, free: 13.29 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 0.0001955/0.01228, allocations: 126.4 kB / 0.5247 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.736e-05/0.01229, allocations: 5.766 kB / 0.5247 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000166/0.01246, allocations: 61.48 kB / 0.5248 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.01246, allocations: 0 / 0.5248 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.547e-06/0.01247, allocations: 3.938 kB / 0.5248 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.01248, allocations: 5.625 kB / 0.5248 GB, free: 13.08 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001557/0.01263, allocations: 117.3 kB / 0.5249 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.01263, allocations: 0 / 0.5249 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.781e-06/0.01264, allocations: 0 / 0.5249 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.01264, allocations: 6.688 kB / 0.5249 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.01265, allocations: 3.984 kB / 0.5249 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.01266, allocations: 4 kB / 0.5249 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01266, allocations: 0 / 0.5249 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001336/0.01279, allocations: 80.95 kB / 0.525 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.345e-05/0.01281, allocations: 3.953 kB / 0.525 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.01282, allocations: 4 kB / 0.525 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.556e-05/0.01283, allocations: 6.031 kB / 0.525 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.412e-05/0.01285, allocations: 0 / 0.525 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.01285, allocations: 3.938 kB / 0.525 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001268/0.01298, allocations: 126.7 kB / 0.5251 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.01298, allocations: 0 / 0.5251 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004082/0.01339, allocations: 87.8 kB / 0.5252 GB, free: 12.61 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.0007517/0.01414, allocations: 265.5 kB / 0.5254 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001993/0.01434, allocations: 93.67 kB / 0.5255 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.01434, allocations: 0 / 0.5255 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 1.995e-05/0.01436, allocations: 12.81 kB / 0.5256 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001659/0.01453, allocations: 6.188 kB / 0.5256 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003839/0.01491, allocations: 165.4 kB / 0.5257 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.633e-05/0.01501, allocations: 82.52 kB / 0.5258 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 2.339e-05/0.01503, allocations: 3.984 kB / 0.5258 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.137e-05/0.01506, allocations: 8.5 kB / 0.5258 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of SimCode: time 5.21e-07/0.01506, allocations: 7.938 kB / 0.5258 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of Templates: time 0.006888/0.02195, allocations: 2.203 MB / 0.528 GB, free: 9.852 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=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.97683058900293]