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.001353/0.001353, allocations: 114.5 kB / 18.88 MB, free: 3.062 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.001441/0.001441, allocations: 194.8 kB / 22.17 MB, free: 5.656 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.408/1.408, allocations: 225.6 MB / 250.9 MB, free: 13.29 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.07/1.07, allocations: 175.8 MB / 481.9 MB, free: 7.695 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.002002/0.002002, allocations: 66.58 kB / 0.6705 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4453/0.4473, allocations: 94.52 MB / 0.7628 GB, free: 9.953 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001592/0.4489, allocations: 0.5172 MB / 0.7633 GB, free: 9.812 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001959/0.4509, allocations: 1.631 MB / 0.7649 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.057e-05/0.4509, allocations: 1.844 kB / 0.7649 GB, free: 9.059 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.451, allocations: 22.27 kB / 0.7649 GB, free: 9.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.554e-05/0.451, allocations: 12.05 kB / 0.7649 GB, free: 9.051 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.000868/0.4519, allocations: 247.8 kB / 0.7651 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.55e-05/0.452, allocations: 25.55 kB / 0.7652 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.404e-05/0.452, allocations: 2.359 kB / 0.7652 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 2.844e-05/0.4521, allocations: 10.14 kB / 0.7652 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.067e-05/0.4521, allocations: 18.44 kB / 0.7652 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.023e-05/0.4521, allocations: 1.969 kB / 0.7652 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005965/0.4527, allocations: 367.1 kB / 0.7655 GB, free: 8.824 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.574e-05/0.4527, allocations: 21.64 kB / 0.7656 GB, free: 8.816 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.477e-05/0.4528, allocations: 21.64 kB / 0.7656 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000408/0.4532, allocations: 279.4 kB / 0.7659 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.4532, allocations: 3.562 kB / 0.7659 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.423e-06/0.4532, allocations: 0 / 0.7659 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.4532, allocations: 0 / 0.7659 GB, free: 8.73 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.000369/0.4536, allocations: 404 kB / 0.7662 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.4536, allocations: 10.42 kB / 0.7663 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.341e-05/0.4536, allocations: 7.078 kB / 0.7663 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.4537, allocations: 192 kB / 0.7664 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.4537, allocations: 384 / 0.7664 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.905e-06/0.4537, allocations: 3.031 kB / 0.7664 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.837e-05/0.4538, allocations: 45.28 kB / 0.7665 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.4538, allocations: 0 / 0.7665 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.4538, allocations: 0.8906 kB / 0.7665 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.4539, allocations: 1.156 kB / 0.7665 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.904e-05/0.4539, allocations: 20.14 kB / 0.7665 GB, free: 8.066 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001219/0.454, allocations: 172.2 kB / 0.7667 GB, free: 7.871 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 3.844e-05/0.454, allocations: 26.84 kB / 0.7667 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.744e-05/0.4541, allocations: 18.3 kB / 0.7667 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.4541, allocations: 8.031 kB / 0.7667 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.541e-05/0.4541, allocations: 36.78 kB / 0.7668 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.233e-06/0.4541, allocations: 0.9844 kB / 0.7668 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001312/0.4542, allocations: 63.86 kB / 0.7668 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.978e-05/0.4543, allocations: 51.41 kB / 0.7669 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.4544, allocations: 174.7 kB / 0.767 GB, free: 7.562 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.582e-06/0.4544, allocations: 27.08 kB / 0.7671 GB, free: 7.531 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 2.905e-05/0.4544, allocations: 105.5 kB / 0.7672 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.336e-06/0.4544, allocations: 1.312 kB / 0.7672 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.42e-05/0.4545, allocations: 25.42 kB / 0.7672 GB, free: 7.41 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.746e-05/0.4545, allocations: 320.4 kB / 0.7675 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.785e-05/0.4545, allocations: 45.84 kB / 0.7675 GB, free: 7.082 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.969e-05/0.4546, allocations: 37.89 kB / 0.7676 GB, free: 7.078 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.267e-05/0.4546, allocations: 76.12 kB / 0.7676 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4547, allocations: 0 / 0.7676 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001256/0.4548, allocations: 126.2 kB / 0.7678 GB, free: 7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.4548, allocations: 12.41 kB / 0.7678 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.4548, allocations: 4.031 kB / 0.7678 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.4548, allocations: 1.031 kB / 0.7678 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.282e-05/0.4548, allocations: 5.5 kB / 0.7678 GB, free: 6.992 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.4548, allocations: 3.984 kB / 0.7678 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.43e-05/0.4549, allocations: 14.8 kB / 0.7678 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.4549, allocations: 1.344 kB / 0.7678 GB, free: 6.977 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 8.607e-05/0.455, allocations: 121.7 kB / 0.7679 GB, free: 6.863 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.251e-05/0.455, allocations: 15.02 kB / 0.7679 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.889e-05/0.4551, allocations: 54.69 kB / 0.768 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.4551, allocations: 1.75 kB / 0.768 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.4551, allocations: 0 / 0.768 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.4551, allocations: 4.734 kB / 0.768 GB, free: 6.816 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.692e-05/0.4551, allocations: 169.6 kB / 0.7682 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.4551, allocations: 0 / 0.7682 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.38e-06/0.4551, allocations: 2.031 kB / 0.7682 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4551, allocations: 3.938 kB / 0.7682 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.4551, allocations: 1.812 kB / 0.7682 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4551, allocations: 3.938 kB / 0.7682 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4551, allocations: 3.938 kB / 0.7682 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.119e-05/0.4552, allocations: 81.97 kB / 0.7683 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.856e-05/0.4552, allocations: 92.02 kB / 0.7683 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.4552, allocations: 0.6562 kB / 0.7683 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.224e-05/0.4552, allocations: 1.312 kB / 0.7683 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.02e-05/0.4553, allocations: 1.531 kB / 0.7683 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.4553, allocations: 2 kB / 0.7683 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 6.673e-05/0.4553, allocations: 123.2 kB / 0.7685 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.4553, allocations: 0 / 0.7685 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003572/0.4557, allocations: 83.98 kB / 0.7685 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.000487/0.4562, allocations: 239 kB / 0.7688 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001447/0.4563, allocations: 95.36 kB / 0.7689 GB, free: 6.16 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4563, allocations: 1.688 kB / 0.7689 GB, free: 6.16 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.546e-05/0.4563, allocations: 12.48 kB / 0.7689 GB, free: 6.156 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.4565, allocations: 9.844 kB / 0.7689 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002198/0.4567, allocations: 165.6 kB / 0.769 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.612e-05/0.4568, allocations: 0.6923 MB / 0.7697 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.747e-05/0.4568, allocations: 3.469 kB / 0.7697 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.28e-05/0.4568, allocations: 8.844 kB / 0.7697 GB, free: 5.32 MB / 0.5762 GB Notification: Performance of SimCode: time 3.6e-07/0.4568, allocations: 0 / 0.7697 GB, free: 5.32 MB / 0.5762 GB Notification: Performance of Templates: time 0.00527/0.4621, allocations: 2.088 MB / 0.7718 GB, free: 5.156 MB / 0.5762 GB " [Timeout remaining time 660] 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 gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.728085539769381] Failed to read output from testmodel.py, exit status != 0: 0.46992960339412093 0.481443204 0.025025393 Calling exit ...