Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.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.001499/0.001499, allocations: 120.1 kB / 17.84 MB, free: 5.234 MB / 14.72 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.001758/0.001758, allocations: 203.9 kB / 20.79 MB, free: 2.297 MB / 14.72 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.53/1.53, allocations: 230.6 MB / 254.2 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.9943/0.9943, allocations: 150 MB / 460.2 MB, free: 5.301 MB / 350.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/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(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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.002014/0.002014, allocations: 64.09 kB / 0.6368 GB, free: 30.52 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.182, allocations: 89.13 MB / 0.7238 GB, free: 4.121 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.002022/0.184, allocations: 0.5126 MB / 0.7243 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003146/0.1871, allocations: 1.683 MB / 0.7259 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.002e-05/0.1872, allocations: 3.938 kB / 0.726 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002435/0.1874, allocations: 59.89 kB / 0.726 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.355e-05/0.1875, allocations: 31.89 kB / 0.726 GB, free: 1.812 MB / 0.5294 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.001127/0.1886, allocations: 262 kB / 0.7263 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.71e-05/0.1887, allocations: 27.97 kB / 0.7263 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.205e-05/0.1887, allocations: 4.281 kB / 0.7263 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.892e-05/0.1888, allocations: 27.89 kB / 0.7263 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.646e-05/0.1889, allocations: 39.89 kB / 0.7264 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.1889, allocations: 8 kB / 0.7264 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006875/0.1896, allocations: 387.4 kB / 0.7268 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.19e-05/0.1897, allocations: 31.86 kB / 0.7268 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.454e-05/0.1897, allocations: 23.75 kB / 0.7268 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004911/0.1902, allocations: 303 kB / 0.7271 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1902, allocations: 0 / 0.7271 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.074e-06/0.1902, allocations: 0 / 0.7271 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.384e-06/0.1902, allocations: 0 / 0.7271 GB, free: 0.7188 MB / 0.5294 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.0006004/0.1908, allocations: 442.4 kB / 0.7275 GB, free: 244 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1909, allocations: 8.031 kB / 0.7275 GB, free: 236 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.115e-05/0.1909, allocations: 192 / 0.7275 GB, free: 236 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.638e-05/0.1909, allocations: 30.75 kB / 0.7276 GB, free: 196 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.69e-05/0.1909, allocations: 16.83 kB / 0.7276 GB, free: 180 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.1912, allocations: 193.4 kB / 0.7278 GB, free: 15.95 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.1912, allocations: 384 / 0.7278 GB, free: 15.95 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.1912, allocations: 384 / 0.7278 GB, free: 15.95 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.1913, allocations: 45.56 kB / 0.7278 GB, free: 15.9 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.1913, allocations: 7.938 kB / 0.7278 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.1913, allocations: 0 / 0.7278 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1914, allocations: 0 / 0.7278 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.516e-05/0.1914, allocations: 19.98 kB / 0.7278 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002271/0.1916, allocations: 181.7 kB / 0.728 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.487e-05/0.1917, allocations: 26.56 kB / 0.728 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.494e-05/0.1917, allocations: 12.92 kB / 0.728 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.253e-05/0.1917, allocations: 11.92 kB / 0.7281 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.484e-05/0.1918, allocations: 46.5 kB / 0.7281 GB, free: 15.53 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1918, allocations: 3.938 kB / 0.7281 GB, free: 15.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001703/0.192, allocations: 65.59 kB / 0.7282 GB, free: 15.45 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.192, allocations: 51.41 kB / 0.7282 GB, free: 15.39 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/0.1922, allocations: 214.1 kB / 0.7284 GB, free: 15.17 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.1923, allocations: 25.7 kB / 0.7284 GB, free: 15.14 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.8e-05/0.1923, allocations: 108.1 kB / 0.7285 GB, free: 15.03 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.009e-05/0.1924, allocations: 128 / 0.7285 GB, free: 15.03 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.1924, allocations: 33.7 kB / 0.7286 GB, free: 14.99 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001651/0.1926, allocations: 326.8 kB / 0.7289 GB, free: 14.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.221e-05/0.1926, allocations: 59.86 kB / 0.7289 GB, free: 14.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.332e-05/0.1927, allocations: 57.52 kB / 0.729 GB, free: 14.55 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001127/0.1928, allocations: 93.28 kB / 0.7291 GB, free: 14.45 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1928, allocations: 0 / 0.7291 GB, free: 14.45 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002035/0.193, allocations: 167.2 kB / 0.7293 GB, free: 14.29 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.193, allocations: 4 kB / 0.7293 GB, free: 14.28 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.1931, allocations: 8.062 kB / 0.7293 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.1931, allocations: 4 kB / 0.7293 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.468e-05/0.1931, allocations: 0 / 0.7293 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.1931, allocations: 0 / 0.7293 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.214e-05/0.1931, allocations: 11.89 kB / 0.7293 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.1931, allocations: 4 kB / 0.7293 GB, free: 14.25 MB / 0.545 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.0001835/0.1933, allocations: 129.8 kB / 0.7294 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.638e-05/0.1933, allocations: 15.84 kB / 0.7294 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.1935, allocations: 70.19 kB / 0.7295 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.1935, allocations: 3.984 kB / 0.7295 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1935, allocations: 0 / 0.7295 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1935, allocations: 3.984 kB / 0.7295 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001593/0.1936, allocations: 181.6 kB / 0.7297 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1936, allocations: 3.938 kB / 0.7297 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.889e-06/0.1936, allocations: 0 / 0.7297 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.1936, allocations: 4 kB / 0.7297 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.1936, allocations: 0 / 0.7297 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.1936, allocations: 0 / 0.7297 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1936, allocations: 4.031 kB / 0.7297 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001091/0.1938, allocations: 88.97 kB / 0.7298 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.678e-05/0.1938, allocations: 88.98 kB / 0.7298 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.1938, allocations: 4 kB / 0.7299 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.396e-05/0.1938, allocations: 0 / 0.7299 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.044e-05/0.1939, allocations: 0 / 0.7299 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.1939, allocations: 0 / 0.7299 GB, free: 13.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001468/0.194, allocations: 160.3 kB / 0.73 GB, free: 13.41 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.194, allocations: 0 / 0.73 GB, free: 13.41 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000367/0.1944, allocations: 91.73 kB / 0.7301 GB, free: 13.32 MB / 0.545 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.0009479/0.1953, allocations: 0.7514 MB / 0.7308 GB, free: 12.57 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000228/0.1955, allocations: 117.6 kB / 0.7309 GB, free: 12.45 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1955, allocations: 0 / 0.7309 GB, free: 12.45 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.65e-05/0.1956, allocations: 8 kB / 0.7309 GB, free: 12.44 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000164/0.1957, allocations: 11.39 kB / 0.731 GB, free: 12.43 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.1977, allocations: 1.836 MB / 0.7328 GB, free: 10.52 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.1981, allocations: 0.708 MB / 0.7334 GB, free: 9.781 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.198e-05/0.1981, allocations: 4 kB / 0.7334 GB, free: 9.777 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.418e-05/0.1981, allocations: 23.38 kB / 0.7335 GB, free: 9.754 MB / 0.545 GB Notification: Performance of SimCode: time 3.01e-07/0.1981, allocations: 0 / 0.7335 GB, free: 9.754 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/0.221, allocations: 4.008 MB / 0.7374 GB, free: 5.859 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.596/8.817, allocations: 8 kB / 0.7374 GB, free: 5.852 MB / 0.545 GB " [Timeout remaining time 651] (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.878615128982347] Failed to read output from testmodel.py, exit status != 0: 8.9453696780256 8.961430356 8.767995689 Calling exit ...