Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 189.4 kB / 22.22 MB, free: 5.102 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Examples/PPD12/Structure.mo:527:21-527:482:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Examples/PPD12/Structure.mo:527:21-527:490:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 3.0.0-master/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 3.0.0-master/package.mo): time 1.174/1.174, allocations: 177.9 MB / 484.2 MB, free: 5.395 MB / 382.1 MB " [Timeout remaining time 178] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") translateModel(IDEAS.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003636/0.003636, allocations: 65.11 kB / 0.674 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7434/0.747, allocations: 95.16 MB / 0.7669 GB, free: 7.969 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001916/0.7489, allocations: 0.5213 MB / 0.7674 GB, free: 7.781 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002428/0.7514, allocations: 1.626 MB / 0.769 GB, free: 6.836 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.096e-05/0.7514, allocations: 4.938 kB / 0.769 GB, free: 6.832 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000233/0.7516, allocations: 67.81 kB / 0.7691 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.942e-05/0.7517, allocations: 34.17 kB / 0.7691 GB, free: 6.812 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0009687/0.7527, allocations: 266.6 kB / 0.7693 GB, free: 6.703 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.378e-05/0.7527, allocations: 27 kB / 0.7694 GB, free: 6.703 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.049e-05/0.7528, allocations: 1.938 kB / 0.7694 GB, free: 6.703 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.588e-05/0.7528, allocations: 22.08 kB / 0.7694 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.981e-05/0.7529, allocations: 48.3 kB / 0.7694 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.414e-05/0.7529, allocations: 0 / 0.7694 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007011/0.7536, allocations: 469.2 kB / 0.7699 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.28e-05/0.7537, allocations: 25.39 kB / 0.7699 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.638e-05/0.7537, allocations: 29.28 kB / 0.7699 GB, free: 6.504 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004598/0.7542, allocations: 306.2 kB / 0.7702 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.7542, allocations: 0 / 0.7702 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.954e-06/0.7542, allocations: 0 / 0.7702 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.241e-05/0.7542, allocations: 0.9062 kB / 0.7702 GB, free: 6.422 MB / 0.5762 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.0004532/0.7546, allocations: 360.1 kB / 0.7706 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.7547, allocations: 9.312 kB / 0.7706 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.152e-05/0.7547, allocations: 16.69 kB / 0.7706 GB, free: 6.078 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.7549, allocations: 133.5 kB / 0.7707 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.7549, allocations: 384 / 0.7707 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.707e-05/0.7549, allocations: 5.828 kB / 0.7707 GB, free: 5.934 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001127/0.755, allocations: 43.5 kB / 0.7708 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.755, allocations: 0 / 0.7708 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.755, allocations: 4 kB / 0.7708 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.755, allocations: 1.281 kB / 0.7708 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.624e-05/0.7551, allocations: 15.98 kB / 0.7708 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001629/0.7552, allocations: 165.5 kB / 0.771 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.395e-05/0.7553, allocations: 23.42 kB / 0.771 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.598e-05/0.7553, allocations: 17.64 kB / 0.771 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 4.02e-05/0.7554, allocations: 5.438 kB / 0.771 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.7554, allocations: 35.69 kB / 0.771 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.7554, allocations: 0 / 0.771 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001748/0.7556, allocations: 76.67 kB / 0.7711 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.31e-05/0.7556, allocations: 56.34 kB / 0.7712 GB, free: 5.531 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.7558, allocations: 211.4 kB / 0.7714 GB, free: 5.402 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.065e-06/0.7558, allocations: 26.64 kB / 0.7714 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.294e-05/0.7558, allocations: 102.2 kB / 0.7715 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.208e-05/0.7558, allocations: 4.875 kB / 0.7715 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.382e-05/0.7559, allocations: 28.17 kB / 0.7715 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.525e-05/0.7559, allocations: 321.3 kB / 0.7718 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.704e-05/0.756, allocations: 61.91 kB / 0.7719 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.296e-05/0.7561, allocations: 60.72 kB / 0.7719 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/0.7562, allocations: 88.16 kB / 0.772 GB, free: 4.887 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.7562, allocations: 0.8438 kB / 0.772 GB, free: 4.887 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001878/0.7564, allocations: 165.2 kB / 0.7722 GB, free: 4.824 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.7564, allocations: 8.938 kB / 0.7722 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.7564, allocations: 3.781 kB / 0.7722 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.7564, allocations: 0 / 0.7722 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.424e-05/0.7564, allocations: 4.906 kB / 0.7722 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.7564, allocations: 0 / 0.7722 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.778e-05/0.7565, allocations: 13.92 kB / 0.7722 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.7565, allocations: 3.641 kB / 0.7722 GB, free: 4.805 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001466/0.7566, allocations: 130.8 kB / 0.7723 GB, free: 4.691 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.505e-05/0.7566, allocations: 15.72 kB / 0.7724 GB, free: 4.68 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.7567, allocations: 63.58 kB / 0.7724 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.7567, allocations: 0 / 0.7724 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.7568, allocations: 4.844 kB / 0.7724 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.7568, allocations: 4.031 kB / 0.7724 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001178/0.7569, allocations: 155.3 kB / 0.7726 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.7569, allocations: 1.062 kB / 0.7726 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.909e-06/0.7569, allocations: 0 / 0.7726 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.7569, allocations: 5.344 kB / 0.7726 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.7569, allocations: 0 / 0.7726 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.7569, allocations: 0 / 0.7726 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.7569, allocations: 1.188 kB / 0.7726 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.032e-05/0.757, allocations: 88.98 kB / 0.7727 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.776e-05/0.757, allocations: 16.58 kB / 0.7727 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.757, allocations: 0 / 0.7727 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.382e-05/0.757, allocations: 0.6875 kB / 0.7727 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.356e-05/0.757, allocations: 1.828 kB / 0.7727 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.757, allocations: 1.562 kB / 0.7727 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001069/0.7571, allocations: 154.2 kB / 0.7728 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.7571, allocations: 0 / 0.7728 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000384/0.7575, allocations: 88.08 kB / 0.7729 GB, free: 4.262 MB / 0.5762 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.0005469/0.7581, allocations: 233.1 kB / 0.7731 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001971/0.7583, allocations: 112.8 kB / 0.7732 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.7583, allocations: 0 / 0.7732 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.944e-05/0.7583, allocations: 13.52 kB / 0.7733 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001502/0.7584, allocations: 11.94 kB / 0.7733 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003291/0.7588, allocations: 212.9 kB / 0.7735 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001421/0.7589, allocations: 0.6997 MB / 0.7742 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.906e-05/0.7589, allocations: 5.609 kB / 0.7742 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.583e-05/0.7589, allocations: 9.156 kB / 0.7742 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/0.7589, allocations: 0 / 0.7742 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of Templates: time 0.006476/0.7654, allocations: 2.125 MB / 0.7762 GB, free: 3.031 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.sim & ./IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.736095814034343] Failed to read output from testmodel.py, exit status != 0: 0.7768317423760891 0.79325345 0.033810052 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f9aedb3d7b0>