Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.001342/0.001342, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.001466/0.001466, allocations: 210.5 kB / 22.24 MB, free: 5.262 MB / 14.72 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.468/1.468, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 1.268/1.268, allocations: 203.8 MB / 0.5041 GB, free: 4.594 MB / 414.1 MB " [Timeout remaining time 178] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_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.002603/0.002603, allocations: 71.89 kB / 0.7186 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6083/0.6109, allocations: 102 MB / 0.8182 GB, free: 28.88 MB / 0.6387 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.00193/0.6128, allocations: 0.5278 MB / 0.8187 GB, free: 28.58 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.002794/0.6156, allocations: 1.605 MB / 0.8203 GB, free: 27.48 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.966e-05/0.6157, allocations: 0 / 0.8203 GB, free: 27.48 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.000173/0.6159, allocations: 21.58 kB / 0.8203 GB, free: 27.48 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 4.205e-05/0.6159, allocations: 18.02 kB / 0.8203 GB, free: 27.47 MB / 0.6387 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.001219/0.6171, allocations: 276.7 kB / 0.8206 GB, free: 27.36 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0001044/0.6172, allocations: 20.5 kB / 0.8206 GB, free: 27.36 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 5.663e-05/0.6173, allocations: 3.453 kB / 0.8206 GB, free: 27.36 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 4.804e-05/0.6173, allocations: 11.02 kB / 0.8206 GB, free: 27.36 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 6.181e-05/0.6174, allocations: 18.61 kB / 0.8207 GB, free: 27.35 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.6174, allocations: 5.016 kB / 0.8207 GB, free: 27.35 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009493/0.6184, allocations: 459 kB / 0.8211 GB, free: 27.22 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 7.789e-05/0.6184, allocations: 17.61 kB / 0.8211 GB, free: 27.21 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 3.25e-05/0.6185, allocations: 13.12 kB / 0.8211 GB, free: 27.21 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0006639/0.6191, allocations: 299.1 kB / 0.8214 GB, free: 27.13 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.6191, allocations: 0.5312 kB / 0.8214 GB, free: 27.13 MB / 0.6387 GB Notification: Performance of FrontEnd: time 3.427e-06/0.6191, allocations: 0 / 0.8214 GB, free: 27.13 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.016e-05/0.6192, allocations: 1.719 kB / 0.8214 GB, free: 27.13 MB / 0.6387 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.0006603/0.6198, allocations: 340.8 kB / 0.8217 GB, free: 26.81 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 6.457e-05/0.6199, allocations: 11.59 kB / 0.8218 GB, free: 26.81 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.05e-05/0.6199, allocations: 7.578 kB / 0.8218 GB, free: 26.8 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.6201, allocations: 125.4 kB / 0.8219 GB, free: 26.67 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.6202, allocations: 1.625 kB / 0.8219 GB, free: 26.67 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.929e-05/0.6202, allocations: 2.656 kB / 0.8219 GB, free: 26.67 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001551/0.6203, allocations: 39.28 kB / 0.8219 GB, free: 26.63 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.6203, allocations: 7.188 kB / 0.8219 GB, free: 26.63 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.6204, allocations: 0 / 0.8219 GB, free: 26.63 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.6204, allocations: 0 / 0.8219 GB, free: 26.63 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.26e-05/0.6204, allocations: 19.81 kB / 0.822 GB, free: 26.62 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001957/0.6206, allocations: 122.8 kB / 0.8221 GB, free: 26.5 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 6.927e-05/0.6207, allocations: 26.84 kB / 0.8221 GB, free: 26.47 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.381e-05/0.6207, allocations: 14.19 kB / 0.8221 GB, free: 26.46 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 5.687e-05/0.6208, allocations: 7.047 kB / 0.8221 GB, free: 26.46 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.6208, allocations: 32.53 kB / 0.8221 GB, free: 26.42 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=1): time 2.204e-06/0.6208, allocations: 0.8438 kB / 0.8221 GB, free: 26.42 MB / 0.6387 GB Notification: Performance of matching and sorting (n=1): time 0.0002203/0.621, allocations: 67.47 kB / 0.8222 GB, free: 26.38 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.6211, allocations: 54.47 kB / 0.8223 GB, free: 26.32 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002182/0.6213, allocations: 183.2 kB / 0.8224 GB, free: 26.19 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.6213, allocations: 25.7 kB / 0.8225 GB, free: 26.16 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 5.758e-05/0.6213, allocations: 90.83 kB / 0.8225 GB, free: 26.07 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.6214, allocations: 3.953 kB / 0.8226 GB, free: 26.07 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.435e-05/0.6214, allocations: 28.98 kB / 0.8226 GB, free: 26.05 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001081/0.6215, allocations: 325.4 kB / 0.8229 GB, free: 25.73 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.612e-05/0.6216, allocations: 41.42 kB / 0.8229 GB, free: 25.72 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.071e-05/0.6217, allocations: 37.5 kB / 0.823 GB, free: 25.71 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.6218, allocations: 72.62 kB / 0.823 GB, free: 25.7 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.6218, allocations: 0 / 0.823 GB, free: 25.7 MB / 0.6387 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002006/0.622, allocations: 130 kB / 0.8232 GB, free: 25.64 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.622, allocations: 8.938 kB / 0.8232 GB, free: 25.64 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/0.622, allocations: 5.531 kB / 0.8232 GB, free: 25.64 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.831e-05/0.6221, allocations: 2.109 kB / 0.8232 GB, free: 25.64 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.836e-05/0.6221, allocations: 0 / 0.8232 GB, free: 25.64 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.6221, allocations: 0.7031 kB / 0.8232 GB, free: 25.64 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.68e-05/0.6221, allocations: 10.3 kB / 0.8232 GB, free: 25.63 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.6221, allocations: 1.125 kB / 0.8232 GB, free: 25.63 MB / 0.6387 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.0002164/0.6224, allocations: 126.5 kB / 0.8233 GB, free: 25.51 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.491e-05/0.6224, allocations: 11.5 kB / 0.8233 GB, free: 25.5 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000172/0.6225, allocations: 73.09 kB / 0.8234 GB, free: 25.45 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.6225, allocations: 0 / 0.8234 GB, free: 25.45 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.6226, allocations: 0 / 0.8234 GB, free: 25.45 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.6226, allocations: 1.766 kB / 0.8234 GB, free: 25.45 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.799e-05/0.6227, allocations: 115.6 kB / 0.8235 GB, free: 25.32 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.6227, allocations: 1.469 kB / 0.8235 GB, free: 25.32 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.2e-06/0.6227, allocations: 1.156 kB / 0.8235 GB, free: 25.32 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.6227, allocations: 0 / 0.8235 GB, free: 25.32 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.6227, allocations: 2.938 kB / 0.8235 GB, free: 25.32 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.6227, allocations: 3.938 kB / 0.8235 GB, free: 25.32 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6227, allocations: 4.141 kB / 0.8235 GB, free: 25.32 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001019/0.6228, allocations: 79.53 kB / 0.8236 GB, free: 25.25 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 1.442e-05/0.6228, allocations: 6.109 kB / 0.8236 GB, free: 25.25 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.6228, allocations: 1.484 kB / 0.8236 GB, free: 25.25 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.417e-05/0.6228, allocations: 3.938 kB / 0.8236 GB, free: 25.24 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.499e-05/0.6229, allocations: 1.984 kB / 0.8236 GB, free: 25.24 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.6229, allocations: 5.062 kB / 0.8236 GB, free: 25.24 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0001127/0.623, allocations: 128 kB / 0.8237 GB, free: 25.15 MB / 0.6387 GB Notification: Performance of sort global known variables: time 8e-08/0.623, allocations: 0 / 0.8237 GB, free: 25.15 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0005264/0.6235, allocations: 89.25 kB / 0.8238 GB, free: 25.13 MB / 0.6387 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.0006286/0.6241, allocations: 236.4 kB / 0.824 GB, free: 25.01 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0002061/0.6243, allocations: 93.73 kB / 0.8241 GB, free: 24.97 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6243, allocations: 0 / 0.8241 GB, free: 24.97 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 1.842e-05/0.6243, allocations: 12.66 kB / 0.8241 GB, free: 24.97 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001716/0.6245, allocations: 6.75 kB / 0.8241 GB, free: 24.96 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000314/0.6248, allocations: 166.7 kB / 0.8243 GB, free: 24.83 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.566e-05/0.6249, allocations: 79.67 kB / 0.8244 GB, free: 24.76 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 2.15e-05/0.6249, allocations: 2.203 kB / 0.8244 GB, free: 24.76 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.653e-05/0.6249, allocations: 9.469 kB / 0.8244 GB, free: 24.75 MB / 0.6387 GB Notification: Performance of SimCode: time 2.8e-07/0.6249, allocations: 0 / 0.8244 GB, free: 24.75 MB / 0.6387 GB Notification: Performance of Templates: time 0.006975/0.6319, allocations: 2.205 MB / 0.8265 GB, free: 24.56 MB / 0.6387 GB " [Timeout remaining time 659] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.6527959909290075] Failed to read output from testmodel.py, exit status != 0: 0.6421097815036774 0.654143499 0.032197551000000005 Calling exit ...