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.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.001254/0.001254, allocations: 114.8 kB / 18.89 MB, free: 2.898 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.001367/0.001367, allocations: 197.6 kB / 22.17 MB, free: 5.211 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.369/1.369, allocations: 225.6 MB / 250.9 MB, free: 13.25 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/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.081/1.081, allocations: 175.7 MB / 481.9 MB, free: 7.699 MB / 382.1 MB " [Timeout remaining time 179] 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_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: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 67.73 kB / 0.6705 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.568/0.5699, allocations: 94.53 MB / 0.7628 GB, free: 9.969 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.002134/0.572, allocations: 0.5138 MB / 0.7633 GB, free: 9.828 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00241/0.5745, allocations: 1.634 MB / 0.7649 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.539e-05/0.5745, allocations: 0.875 kB / 0.7649 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001718/0.5747, allocations: 21.06 kB / 0.7649 GB, free: 9.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.958e-05/0.5747, allocations: 10.02 kB / 0.7649 GB, free: 9.055 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.0008499/0.5755, allocations: 243.7 kB / 0.7651 GB, free: 8.957 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.755e-05/0.5756, allocations: 25.91 kB / 0.7652 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.183e-05/0.5757, allocations: 4.438 kB / 0.7652 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.387e-05/0.5757, allocations: 18.3 kB / 0.7652 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.755e-05/0.5757, allocations: 14.19 kB / 0.7652 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.5758, allocations: 4.469 kB / 0.7652 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000603/0.5764, allocations: 362.4 kB / 0.7656 GB, free: 8.828 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.394e-05/0.5764, allocations: 18.47 kB / 0.7656 GB, free: 8.824 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.177e-05/0.5764, allocations: 20.75 kB / 0.7656 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004362/0.5769, allocations: 280.6 kB / 0.7659 GB, free: 8.738 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.5769, allocations: 4.562 kB / 0.7659 GB, free: 8.734 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.903e-06/0.5769, allocations: 0.9375 kB / 0.7659 GB, free: 8.734 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.5769, allocations: 1.125 kB / 0.7659 GB, free: 8.734 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.0004133/0.5773, allocations: 410.9 kB / 0.7663 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.5773, allocations: 11.27 kB / 0.7663 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.884e-05/0.5774, allocations: 7.766 kB / 0.7663 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.5775, allocations: 185.7 kB / 0.7664 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.5775, allocations: 5.344 kB / 0.7665 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.5775, allocations: 2.406 kB / 0.7665 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.62e-05/0.5776, allocations: 46.2 kB / 0.7665 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.5776, allocations: 0 / 0.7665 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.5776, allocations: 0.5625 kB / 0.7665 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.5777, allocations: 0 / 0.7665 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.478e-05/0.5777, allocations: 18.5 kB / 0.7665 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001442/0.5778, allocations: 171.2 kB / 0.7667 GB, free: 7.875 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.357e-05/0.5779, allocations: 24.12 kB / 0.7667 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.319e-05/0.5779, allocations: 17.14 kB / 0.7667 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.5779, allocations: 5.75 kB / 0.7667 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.491e-05/0.5779, allocations: 40.34 kB / 0.7668 GB, free: 7.793 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.5779, allocations: 0 / 0.7668 GB, free: 7.793 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001461/0.5781, allocations: 64.72 kB / 0.7668 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.239e-05/0.5781, allocations: 53.09 kB / 0.7669 GB, free: 7.691 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.5782, allocations: 171.5 kB / 0.767 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.454e-06/0.5783, allocations: 25.83 kB / 0.7671 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.707e-05/0.5783, allocations: 107.7 kB / 0.7672 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.041e-05/0.5783, allocations: 1.125 kB / 0.7672 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.317e-05/0.5783, allocations: 24.22 kB / 0.7672 GB, free: 7.414 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.854e-05/0.5784, allocations: 321.7 kB / 0.7675 GB, free: 7.098 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.3e-05/0.5784, allocations: 37.47 kB / 0.7675 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.507e-05/0.5785, allocations: 41.52 kB / 0.7676 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.144e-05/0.5786, allocations: 71.11 kB / 0.7676 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.5786, allocations: 5.281 kB / 0.7676 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000145/0.5787, allocations: 133.8 kB / 0.7678 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.5787, allocations: 9.219 kB / 0.7678 GB, free: 7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.5787, allocations: 2.547 kB / 0.7678 GB, free: 7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.5788, allocations: 0 / 0.7678 GB, free: 7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.26e-05/0.5788, allocations: 1.359 kB / 0.7678 GB, free: 7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.5788, allocations: 4.688 kB / 0.7678 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.262e-05/0.5788, allocations: 10.41 kB / 0.7678 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.5788, allocations: 0.875 kB / 0.7678 GB, free: 6.988 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: 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.0001077/0.5789, allocations: 129.3 kB / 0.7679 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/0.5789, allocations: 10.39 kB / 0.7679 GB, free: 6.863 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.579, allocations: 62.27 kB / 0.768 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.579, allocations: 1.766 kB / 0.768 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.579, allocations: 0 / 0.768 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.579, allocations: 0 / 0.768 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.916e-05/0.5791, allocations: 170.1 kB / 0.7682 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.5791, allocations: 0 / 0.7682 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.879e-06/0.5791, allocations: 1.734 kB / 0.7682 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.5791, allocations: 4.453 kB / 0.7682 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.5791, allocations: 5.797 kB / 0.7682 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.5791, allocations: 0 / 0.7682 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.5791, allocations: 5.328 kB / 0.7682 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.931e-05/0.5792, allocations: 80.62 kB / 0.7683 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.69e-05/0.5792, allocations: 91.81 kB / 0.7683 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.5792, allocations: 1.688 kB / 0.7683 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.155e-05/0.5793, allocations: 0 / 0.7683 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.765e-05/0.5793, allocations: 8.203 kB / 0.7683 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.5793, allocations: 1.031 kB / 0.7684 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 7.683e-05/0.5794, allocations: 123.4 kB / 0.7685 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.5794, allocations: 3.938 kB / 0.7685 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003477/0.5797, allocations: 84.25 kB / 0.7686 GB, free: 6.336 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.000501/0.5802, allocations: 234.3 kB / 0.7688 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001572/0.5804, allocations: 90.58 kB / 0.7689 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.5804, allocations: 1.094 kB / 0.7689 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.67e-05/0.5804, allocations: 13.33 kB / 0.7689 GB, free: 6.172 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001379/0.5805, allocations: 2.516 kB / 0.7689 GB, free: 6.172 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002819/0.5808, allocations: 164.9 kB / 0.769 GB, free: 6.043 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001256/0.5809, allocations: 0.6965 MB / 0.7697 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.936e-05/0.5809, allocations: 2.891 kB / 0.7697 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.339e-05/0.581, allocations: 8.688 kB / 0.7697 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of SimCode: time 2.71e-07/0.581, allocations: 0 / 0.7697 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of Templates: time 0.005905/0.5869, allocations: 2.093 MB / 0.7718 GB, free: 5.168 MB / 0.5762 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 -s cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.96268376801163] Failed to read output from testmodel.py, exit status != 0: 0.5951954061165452 0.607423983 0.026980820000000003 Calling exit ...