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.001284/0.001284, allocations: 109.4 kB / 16.46 MB, free: 6.035 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.001325/0.001325, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.433/1.433, allocations: 225.6 MB / 247.8 MB, free: 13.94 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.069/1.069, allocations: 175.7 MB / 478.4 MB, free: 8.48 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: "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 68.7 kB / 0.6652 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.1811, allocations: 94.54 MB / 0.7575 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_2d): time 0.001693/0.1827, allocations: 0.5164 MB / 0.758 GB, free: 1.449 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3438/0.5265, allocations: 1.607 MB / 0.7596 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.905e-05/0.5265, allocations: 1.469 kB / 0.7596 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.5267, allocations: 65.09 kB / 0.7596 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.06e-05/0.5268, allocations: 26.95 kB / 0.7596 GB, free: 7.965 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.000874/0.5276, allocations: 253.2 kB / 0.7599 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.377e-05/0.5277, allocations: 32.25 kB / 0.7599 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.623e-05/0.5278, allocations: 2.891 kB / 0.7599 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.845e-05/0.5278, allocations: 23.12 kB / 0.7599 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.327e-05/0.5279, allocations: 46.45 kB / 0.76 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.133e-05/0.5279, allocations: 2.25 kB / 0.76 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005555/0.5284, allocations: 364.4 kB / 0.7603 GB, free: 7.949 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.461e-05/0.5285, allocations: 31.56 kB / 0.7604 GB, free: 7.941 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.746e-05/0.5285, allocations: 23.72 kB / 0.7604 GB, free: 7.926 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004144/0.5289, allocations: 297.5 kB / 0.7607 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.5289, allocations: 0 / 0.7607 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.292e-06/0.5289, allocations: 1.594 kB / 0.7607 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.5289, allocations: 0 / 0.7607 GB, free: 7.898 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.0003548/0.5293, allocations: 440.2 kB / 0.7611 GB, free: 7.48 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.5293, allocations: 9.734 kB / 0.7611 GB, free: 7.48 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.635e-05/0.5294, allocations: 30.75 kB / 0.7611 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.655e-05/0.5294, allocations: 15.25 kB / 0.7612 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.5295, allocations: 195.2 kB / 0.7613 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.819e-06/0.5295, allocations: 3 kB / 0.7613 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-06/0.5295, allocations: 1.281 kB / 0.7613 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.179e-05/0.5296, allocations: 45.31 kB / 0.7614 GB, free: 7.188 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.5296, allocations: 0.8438 kB / 0.7614 GB, free: 7.188 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.283e-06/0.5296, allocations: 1.375 kB / 0.7614 GB, free: 7.188 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.5296, allocations: 1.156 kB / 0.7614 GB, free: 7.188 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.097e-05/0.5297, allocations: 19.02 kB / 0.7614 GB, free: 7.188 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001273/0.5298, allocations: 185 kB / 0.7616 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 3.92e-05/0.5298, allocations: 29.62 kB / 0.7616 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.948e-05/0.5298, allocations: 17.14 kB / 0.7616 GB, free: 6.965 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.5299, allocations: 10.41 kB / 0.7616 GB, free: 6.965 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.521e-05/0.5299, allocations: 37.2 kB / 0.7617 GB, free: 6.922 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.5299, allocations: 0 / 0.7617 GB, free: 6.922 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001339/0.53, allocations: 71.7 kB / 0.7617 GB, free: 6.883 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.024e-05/0.53, allocations: 52.91 kB / 0.7618 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.5302, allocations: 213.4 kB / 0.762 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.8e-06/0.5302, allocations: 25.7 kB / 0.762 GB, free: 6.68 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.765e-05/0.5303, allocations: 103.8 kB / 0.7621 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.104e-06/0.5303, allocations: 3.281 kB / 0.7621 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.953e-05/0.5303, allocations: 30.53 kB / 0.7622 GB, free: 6.582 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.377e-05/0.5304, allocations: 326.9 kB / 0.7625 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.702e-05/0.5304, allocations: 53.14 kB / 0.7625 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.588e-05/0.5305, allocations: 58.69 kB / 0.7626 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.5306, allocations: 91.73 kB / 0.7627 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5306, allocations: 1.109 kB / 0.7627 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001679/0.5308, allocations: 171 kB / 0.7628 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.5308, allocations: 10.53 kB / 0.7628 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.5308, allocations: 2.891 kB / 0.7628 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.5308, allocations: 1.438 kB / 0.7628 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.121e-05/0.5308, allocations: 2.531 kB / 0.7628 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.5308, allocations: 2.344 kB / 0.7628 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.497e-05/0.5308, allocations: 13.52 kB / 0.7629 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.5308, allocations: 2.516 kB / 0.7629 GB, free: 6.203 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.0001319/0.531, allocations: 136.8 kB / 0.763 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.349e-05/0.531, allocations: 16.28 kB / 0.763 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.736e-05/0.5311, allocations: 62.81 kB / 0.7631 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.5311, allocations: 0 / 0.7631 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5311, allocations: 2.25 kB / 0.7631 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.5311, allocations: 0.9844 kB / 0.7631 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.739e-05/0.5312, allocations: 181.2 kB / 0.7632 GB, free: 5.848 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.5312, allocations: 0.6094 kB / 0.7632 GB, free: 5.848 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.032e-06/0.5312, allocations: 5.531 kB / 0.7632 GB, free: 5.844 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.5312, allocations: 4.547 kB / 0.7632 GB, free: 5.84 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-06/0.5312, allocations: 1.531 kB / 0.7632 GB, free: 5.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.5312, allocations: 4.641 kB / 0.7633 GB, free: 5.836 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.5312, allocations: 0.8125 kB / 0.7633 GB, free: 5.836 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.721e-05/0.5313, allocations: 86.5 kB / 0.7633 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.246e-05/0.5313, allocations: 88.98 kB / 0.7634 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.5313, allocations: 2.141 kB / 0.7634 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.302e-05/0.5313, allocations: 4.031 kB / 0.7634 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.528e-06/0.5313, allocations: 0.6562 kB / 0.7634 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.5313, allocations: 1.875 kB / 0.7634 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.748e-05/0.5314, allocations: 152.2 kB / 0.7636 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.5314, allocations: 0 / 0.7636 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003561/0.5318, allocations: 90.2 kB / 0.7637 GB, free: 5.57 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.000637/0.5324, allocations: 0.748 MB / 0.7644 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001737/0.5326, allocations: 114 kB / 0.7645 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.5326, allocations: 96 / 0.7645 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.83e-05/0.5326, allocations: 18.44 kB / 0.7645 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001463/0.5327, allocations: 6.875 kB / 0.7645 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.5344, allocations: 1.819 MB / 0.7663 GB, free: 19.77 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.5348, allocations: 0.7081 MB / 0.767 GB, free: 19.07 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 2.031e-05/0.5348, allocations: 2.469 kB / 0.767 GB, free: 19.07 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.553e-05/0.5348, allocations: 25.22 kB / 0.767 GB, free: 19.06 MB / 0.5919 GB Notification: Performance of SimCode: time 7.21e-07/0.5348, allocations: 3.656 kB / 0.767 GB, free: 19.06 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02967/0.5645, allocations: 3.887 MB / 0.7708 GB, free: 18.52 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.159/8.723, allocations: 14.5 kB / 0.7708 GB, free: 18.5 MB / 0.5919 GB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Clustering_Validation_KMeans_2d.fmu > IDEAS_dev_IDEAS.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.446513387840241] Failed to read output from testmodel.py, exit status != 0: 8.793981291819364 8.808441386 8.275655733 Calling exit ...