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.0005778/0.0005778, allocations: 76.45 kB / 19.9 MB, free: 12 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.0008444/0.0008444, allocations: 169.9 kB / 23.18 MB, free: 1.379 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.9001/0.9001, allocations: 177.2 MB / 203.6 MB, free: 5.656 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-531:686: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-531:694: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.761/0.761, allocations: 154.7 MB / 414.7 MB, free: 0.7461 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: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009445/0.0009445, allocations: 70.55 kB / 0.6195 GB, free: 13.04 MB / 0.5886 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.5093/0.5102, allocations: 101.9 MB / 0.7191 GB, free: 23.71 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001304/0.5115, allocations: 0.5224 MB / 0.7196 GB, free: 23.41 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.001838/0.5133, allocations: 1.608 MB / 0.7211 GB, free: 22.31 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.227e-05/0.5134, allocations: 4.938 kB / 0.7211 GB, free: 22.3 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.5136, allocations: 20.88 kB / 0.7212 GB, free: 22.3 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 3.091e-05/0.5136, allocations: 11.75 kB / 0.7212 GB, free: 22.3 MB / 0.6355 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.0009588/0.5146, allocations: 287 kB / 0.7214 GB, free: 22.18 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 9.999e-05/0.5147, allocations: 18.31 kB / 0.7215 GB, free: 22.18 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 5.153e-05/0.5147, allocations: 1.797 kB / 0.7215 GB, free: 22.18 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 5.804e-05/0.5148, allocations: 20.7 kB / 0.7215 GB, free: 22.17 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 5.424e-05/0.5148, allocations: 17.62 kB / 0.7215 GB, free: 22.16 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.5148, allocations: 5.188 kB / 0.7215 GB, free: 22.16 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000775/0.5156, allocations: 453.2 kB / 0.7219 GB, free: 22.04 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 6.831e-05/0.5157, allocations: 22.84 kB / 0.722 GB, free: 22.03 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 2.951e-05/0.5157, allocations: 12.06 kB / 0.722 GB, free: 22.02 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0004965/0.5162, allocations: 299.5 kB / 0.7223 GB, free: 21.93 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.5162, allocations: 1.094 kB / 0.7223 GB, free: 21.93 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.455e-06/0.5162, allocations: 0 / 0.7223 GB, free: 21.93 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.857e-06/0.5162, allocations: 0 / 0.7223 GB, free: 21.93 MB / 0.6355 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.0003952/0.5166, allocations: 345.4 kB / 0.7226 GB, free: 21.61 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.5167, allocations: 10.06 kB / 0.7226 GB, free: 21.61 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.538e-05/0.5167, allocations: 7.234 kB / 0.7226 GB, free: 21.61 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.5168, allocations: 120.8 kB / 0.7227 GB, free: 21.48 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.456e-06/0.5168, allocations: 4.375 kB / 0.7227 GB, free: 21.47 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.5168, allocations: 1.531 kB / 0.7227 GB, free: 21.47 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.235e-05/0.5169, allocations: 43.95 kB / 0.7228 GB, free: 21.43 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.024e-06/0.5169, allocations: 1.5 kB / 0.7228 GB, free: 21.43 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.5169, allocations: 1.062 kB / 0.7228 GB, free: 21.43 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.5169, allocations: 0 / 0.7228 GB, free: 21.43 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.089e-05/0.517, allocations: 19.77 kB / 0.7228 GB, free: 21.43 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.5171, allocations: 128.2 kB / 0.7229 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.201e-05/0.5171, allocations: 24.53 kB / 0.7229 GB, free: 21.27 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.947e-05/0.5172, allocations: 12.89 kB / 0.7229 GB, free: 21.26 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.292e-05/0.5172, allocations: 10.66 kB / 0.723 GB, free: 21.26 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.5172, allocations: 35.59 kB / 0.723 GB, free: 21.21 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.5172, allocations: 0 / 0.723 GB, free: 21.21 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1): time 0.0001497/0.5174, allocations: 67.84 kB / 0.7231 GB, free: 21.17 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.718e-05/0.5174, allocations: 53.12 kB / 0.7231 GB, free: 21.11 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.5175, allocations: 171.1 kB / 0.7233 GB, free: 20.99 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 6.643e-06/0.5175, allocations: 25.7 kB / 0.7233 GB, free: 20.96 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.536e-05/0.5176, allocations: 91.27 kB / 0.7234 GB, free: 20.87 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.389e-05/0.5176, allocations: 8.516 kB / 0.7234 GB, free: 20.86 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.594e-05/0.5176, allocations: 25.84 kB / 0.7234 GB, free: 20.84 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 4.531e-05/0.5177, allocations: 325 kB / 0.7237 GB, free: 20.52 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.676e-05/0.5177, allocations: 36.89 kB / 0.7238 GB, free: 20.52 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.213e-05/0.5178, allocations: 38.83 kB / 0.7238 GB, free: 20.52 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.152e-05/0.5179, allocations: 71.38 kB / 0.7239 GB, free: 20.49 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5179, allocations: 0 / 0.7239 GB, free: 20.49 MB / 0.6355 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001255/0.518, allocations: 127 kB / 0.724 GB, free: 20.44 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.518, allocations: 5.125 kB / 0.724 GB, free: 20.44 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.518, allocations: 5.562 kB / 0.724 GB, free: 20.44 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.518, allocations: 1.922 kB / 0.724 GB, free: 20.44 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.754e-05/0.518, allocations: 4 kB / 0.724 GB, free: 20.43 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.5181, allocations: 2.172 kB / 0.724 GB, free: 20.43 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.422e-05/0.5181, allocations: 21.08 kB / 0.724 GB, free: 20.41 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.467e-06/0.5181, allocations: 1.062 kB / 0.724 GB, free: 20.41 MB / 0.6355 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.0001459/0.5182, allocations: 130.7 kB / 0.7241 GB, free: 20.3 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.167e-06/0.5182, allocations: 6.656 kB / 0.7242 GB, free: 20.29 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.5184, allocations: 69.59 kB / 0.7242 GB, free: 20.24 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.5184, allocations: 2.047 kB / 0.7242 GB, free: 20.24 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.5184, allocations: 0 / 0.7242 GB, free: 20.24 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.5184, allocations: 1.031 kB / 0.7242 GB, free: 20.24 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.319e-05/0.5184, allocations: 120.6 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.5184, allocations: 1.094 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.103e-06/0.5185, allocations: 0 / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.5185, allocations: 1.094 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.5185, allocations: 0.9375 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.5185, allocations: 3.938 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.5185, allocations: 1.062 kB / 0.7243 GB, free: 20.11 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.063e-05/0.5185, allocations: 78.81 kB / 0.7244 GB, free: 20.04 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 1.171e-05/0.5186, allocations: 7.016 kB / 0.7244 GB, free: 20.04 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.5186, allocations: 0.7031 kB / 0.7244 GB, free: 20.04 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.243e-05/0.5186, allocations: 9.406 kB / 0.7244 GB, free: 20.03 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.765e-05/0.5186, allocations: 0.8906 kB / 0.7244 GB, free: 20.03 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.676e-06/0.5186, allocations: 5 kB / 0.7244 GB, free: 20.02 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.844e-05/0.5187, allocations: 126.8 kB / 0.7246 GB, free: 19.94 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4e-08/0.5187, allocations: 0 / 0.7246 GB, free: 19.94 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003408/0.519, allocations: 85.09 kB / 0.7246 GB, free: 19.93 MB / 0.6355 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.0004545/0.5195, allocations: 243.8 kB / 0.7249 GB, free: 19.79 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001742/0.5196, allocations: 92.67 kB / 0.725 GB, free: 19.75 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.5196, allocations: 1.062 kB / 0.725 GB, free: 19.75 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.154e-05/0.5197, allocations: 13.3 kB / 0.725 GB, free: 19.75 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.5198, allocations: 6.469 kB / 0.725 GB, free: 19.75 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002973/0.5201, allocations: 168.9 kB / 0.7251 GB, free: 19.61 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.514e-05/0.5202, allocations: 79.75 kB / 0.7252 GB, free: 19.54 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.668e-05/0.5202, allocations: 7.406 kB / 0.7252 GB, free: 19.53 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.602e-05/0.5202, allocations: 13.05 kB / 0.7252 GB, free: 19.52 MB / 0.6355 GB Notification: Performance of SimCode: time 4.51e-07/0.5202, allocations: 1.438 kB / 0.7252 GB, free: 19.52 MB / 0.6355 GB Notification: Performance of Templates: time 0.005428/0.5256, allocations: 2.156 MB / 0.7273 GB, free: 19.34 MB / 0.6355 GB " [Timeout remaining time 659] 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 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.323251637048088] Failed to read output from testmodel.py, exit status != 0: 0.5342423568945378 0.5450290689999999 0.026177553000000003 Calling exit ...