Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.001771/0.001771, allocations: 72.45 kB / 19.02 MB, free: 1.105 MB / 13.93 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.002039/0.002039, allocations: 168.2 kB / 22.29 MB, free: 3.52 MB / 13.93 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.422/1.422, allocations: 177.2 MB / 202.7 MB, free: 4.809 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 4.0.0/package.mo): time 1.242/1.242, allocations: 154.7 MB / 413.8 MB, free: 3.145 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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: "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [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.002089/0.002089, allocations: 73.98 kB / 0.618 GB, free: 1.172 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2183, allocations: 102 MB / 0.7176 GB, free: 11.31 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Clustering.Validation.KMeans_1d): time 0.001843/0.2201, allocations: 0.5125 MB / 0.7181 GB, free: 10.79 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002664/0.2228, allocations: 1.615 MB / 0.7197 GB, free: 9.16 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.364e-05/0.2228, allocations: 0 / 0.7197 GB, free: 9.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.2229, allocations: 19.91 kB / 0.7197 GB, free: 9.141 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 3.141e-05/0.223, allocations: 7.984 kB / 0.7197 GB, free: 9.133 MB / 0.6198 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.001128/0.2241, allocations: 287.4 kB / 0.72 GB, free: 8.852 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.93e-05/0.2242, allocations: 27.91 kB / 0.72 GB, free: 8.824 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.266e-05/0.2242, allocations: 0 / 0.72 GB, free: 8.824 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.226e-05/0.2243, allocations: 15.92 kB / 0.72 GB, free: 8.809 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.394e-05/0.2243, allocations: 27.91 kB / 0.72 GB, free: 8.781 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.2243, allocations: 3.938 kB / 0.72 GB, free: 8.777 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008677/0.2252, allocations: 451.2 kB / 0.7205 GB, free: 8.336 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.978e-05/0.2253, allocations: 15.94 kB / 0.7205 GB, free: 8.32 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.065e-05/0.2253, allocations: 19.86 kB / 0.7205 GB, free: 8.301 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005423/0.2258, allocations: 287.2 kB / 0.7208 GB, free: 8.02 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2258, allocations: 0 / 0.7208 GB, free: 8.02 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2258, allocations: 0 / 0.7208 GB, free: 8.02 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.2259, allocations: 0 / 0.7208 GB, free: 8.02 MB / 0.6198 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.0004917/0.2263, allocations: 345.5 kB / 0.7211 GB, free: 7.652 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/0.2264, allocations: 8.031 kB / 0.7211 GB, free: 7.645 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.772e-05/0.2264, allocations: 30.75 kB / 0.7212 GB, free: 7.605 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.033e-05/0.2265, allocations: 8.891 kB / 0.7212 GB, free: 7.598 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.2266, allocations: 123 kB / 0.7213 GB, free: 7.453 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.2267, allocations: 8.312 kB / 0.7213 GB, free: 7.445 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.2267, allocations: 4.359 kB / 0.7213 GB, free: 7.441 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.311e-05/0.2268, allocations: 41.83 kB / 0.7213 GB, free: 7.395 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.2268, allocations: 0 / 0.7213 GB, free: 7.395 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.643e-06/0.2268, allocations: 0 / 0.7213 GB, free: 7.395 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.2268, allocations: 0 / 0.7213 GB, free: 7.395 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.336e-05/0.2268, allocations: 19.98 kB / 0.7214 GB, free: 7.375 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.227, allocations: 144.7 kB / 0.7215 GB, free: 7.191 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 5.192e-05/0.2271, allocations: 26.52 kB / 0.7215 GB, free: 7.156 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.345e-05/0.2271, allocations: 12.92 kB / 0.7215 GB, free: 7.141 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.2271, allocations: 7.984 kB / 0.7215 GB, free: 7.133 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.2271, allocations: 38.5 kB / 0.7216 GB, free: 7.086 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.2271, allocations: 4 kB / 0.7216 GB, free: 7.082 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.0001746/0.2273, allocations: 61.64 kB / 0.7216 GB, free: 7.016 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.179e-05/0.2274, allocations: 51.41 kB / 0.7217 GB, free: 6.953 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.2275, allocations: 169.7 kB / 0.7218 GB, free: 6.781 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.2276, allocations: 25.7 kB / 0.7219 GB, free: 6.75 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.874e-05/0.2276, allocations: 100.1 kB / 0.722 GB, free: 6.648 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.406e-05/0.2276, allocations: 7.953 kB / 0.722 GB, free: 6.641 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.2277, allocations: 25.66 kB / 0.722 GB, free: 6.609 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2278, allocations: 322.8 kB / 0.7223 GB, free: 6.285 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.926e-05/0.2279, allocations: 36.11 kB / 0.7223 GB, free: 6.25 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.357e-05/0.228, allocations: 51.27 kB / 0.7224 GB, free: 6.203 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.372e-05/0.228, allocations: 68.83 kB / 0.7225 GB, free: 6.133 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.228, allocations: 0 / 0.7225 GB, free: 6.133 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001835/0.2282, allocations: 133.5 kB / 0.7226 GB, free: 5.996 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.2282, allocations: 4 kB / 0.7226 GB, free: 5.992 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.2283, allocations: 4 kB / 0.7226 GB, free: 5.988 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.2283, allocations: 0 / 0.7226 GB, free: 5.988 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.168e-05/0.2283, allocations: 3.938 kB / 0.7226 GB, free: 5.984 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2283, allocations: 3.938 kB / 0.7226 GB, free: 5.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.743e-05/0.2283, allocations: 7.891 kB / 0.7226 GB, free: 5.973 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.2283, allocations: 8.062 kB / 0.7226 GB, free: 5.965 MB / 0.6198 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.0001742/0.2285, allocations: 121.8 kB / 0.7227 GB, free: 5.836 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.581e-05/0.2285, allocations: 15.81 kB / 0.7227 GB, free: 5.82 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.2286, allocations: 57.5 kB / 0.7228 GB, free: 5.758 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.2286, allocations: 0 / 0.7228 GB, free: 5.758 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2286, allocations: 0 / 0.7228 GB, free: 5.758 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.2286, allocations: 0 / 0.7228 GB, free: 5.758 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002125/0.2289, allocations: 144.7 kB / 0.7229 GB, free: 5.574 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2289, allocations: 0 / 0.7229 GB, free: 5.574 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.775e-06/0.2289, allocations: 7.969 kB / 0.7229 GB, free: 5.566 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2289, allocations: 0 / 0.7229 GB, free: 5.566 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.259e-06/0.2289, allocations: 0 / 0.7229 GB, free: 5.566 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2289, allocations: 0 / 0.7229 GB, free: 5.566 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2289, allocations: 0 / 0.7229 GB, free: 5.566 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001034/0.229, allocations: 89 kB / 0.723 GB, free: 5.461 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.469e-05/0.229, allocations: 7.891 kB / 0.723 GB, free: 5.453 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.229, allocations: 3.984 kB / 0.723 GB, free: 5.449 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.529e-05/0.229, allocations: 4 kB / 0.723 GB, free: 5.445 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.339e-05/0.229, allocations: 0 / 0.723 GB, free: 5.445 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.229, allocations: 0 / 0.723 GB, free: 5.445 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000114/0.2292, allocations: 124.1 kB / 0.7232 GB, free: 5.324 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8e-08/0.2292, allocations: 0 / 0.7232 GB, free: 5.324 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003565/0.2295, allocations: 87.8 kB / 0.7232 GB, free: 5.238 MB / 0.6198 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.0009594/0.2305, allocations: 0.7575 MB / 0.724 GB, free: 4.484 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001773/0.2306, allocations: 89.67 kB / 0.7241 GB, free: 4.391 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2306, allocations: 3.938 kB / 0.7241 GB, free: 4.387 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.969e-05/0.2307, allocations: 11.98 kB / 0.7241 GB, free: 4.375 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.2308, allocations: 10.03 kB / 0.7241 GB, free: 4.367 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.2325, allocations: 1.534 MB / 0.7256 GB, free: 2.75 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.234e-05/0.2325, allocations: 83.02 kB / 0.7257 GB, free: 2.648 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.078e-05/0.2326, allocations: 4 kB / 0.7257 GB, free: 2.645 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.567e-05/0.2326, allocations: 20.64 kB / 0.7257 GB, free: 2.625 MB / 0.6198 GB Notification: Performance of SimCode: time 4.51e-07/0.2326, allocations: 4 kB / 0.7257 GB, free: 2.621 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03506/0.2677, allocations: 4.204 MB / 0.7298 GB, free: 14.53 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.56, allocations: 14.94 kB / 0.7298 GB, free: 14.52 MB / 0.6355 GB " [Timeout remaining time 648] (rm -f IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Clustering_Validation_KMeans_1d.fmu > IDEAS_IDEAS.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.569993177996366] Failed to read output from testmodel.py, exit status != 0: 11.669594446007977 11.695274233 11.465652349 Calling exit ...