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.00171/0.00171, allocations: 100.3 kB / 19.69 MB, free: 1.805 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.002277/0.002277, allocations: 206 kB / 22.98 MB, free: 4.605 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.514/1.514, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.9734/0.9734, allocations: 149.9 MB / 463 MB, free: 10.36 MB / 366.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",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.002134/0.002134, allocations: 71.44 kB / 0.641 GB, free: 10.15 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1875, allocations: 89.17 MB / 0.7281 GB, free: 1.051 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001994/0.1895, allocations: 0.5087 MB / 0.7286 GB, free: 0.5469 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002698/0.1922, allocations: 1.607 MB / 0.7302 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.812e-05/0.1922, allocations: 3.938 kB / 0.7302 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001964/0.1924, allocations: 59.89 kB / 0.7303 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.576e-05/0.1925, allocations: 35.89 kB / 0.7303 GB, free: 14.82 MB / 0.5606 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.001099/0.1936, allocations: 283.2 kB / 0.7306 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.929e-05/0.1937, allocations: 27.95 kB / 0.7306 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.637e-05/0.1937, allocations: 4 kB / 0.7306 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.818e-05/0.1938, allocations: 23.97 kB / 0.7306 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.044e-05/0.1938, allocations: 43.88 kB / 0.7307 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/0.1939, allocations: 7.938 kB / 0.7307 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008944/0.1948, allocations: 451.2 kB / 0.7311 GB, free: 14 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.605e-05/0.1948, allocations: 27.91 kB / 0.7311 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.576e-05/0.1949, allocations: 23.75 kB / 0.7311 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005879/0.1955, allocations: 303.4 kB / 0.7314 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1955, allocations: 0 / 0.7314 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1955, allocations: 0 / 0.7314 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.488e-05/0.1955, allocations: 7.984 kB / 0.7314 GB, free: 13.64 MB / 0.5606 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.0005665/0.196, allocations: 365.3 kB / 0.7318 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.1961, allocations: 12.03 kB / 0.7318 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.524e-05/0.1961, allocations: 30.75 kB / 0.7318 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.1962, allocations: 16.84 kB / 0.7318 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.1963, allocations: 123.6 kB / 0.732 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.1963, allocations: 384 / 0.732 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.1964, allocations: 8.359 kB / 0.732 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/0.1965, allocations: 37.83 kB / 0.732 GB, free: 13 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.1965, allocations: 0 / 0.732 GB, free: 13 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.263e-06/0.1965, allocations: 4 kB / 0.732 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.1965, allocations: 0 / 0.732 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.406e-05/0.1965, allocations: 23.92 kB / 0.732 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002277/0.1968, allocations: 160.7 kB / 0.7322 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 6.444e-05/0.1968, allocations: 30.56 kB / 0.7322 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.88e-05/0.1969, allocations: 16.92 kB / 0.7322 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.141e-05/0.1969, allocations: 7.984 kB / 0.7322 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.1969, allocations: 38.5 kB / 0.7323 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1969, allocations: 0 / 0.7323 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001957/0.1971, allocations: 69.62 kB / 0.7323 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.1972, allocations: 55.44 kB / 0.7324 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002357/0.1974, allocations: 218.7 kB / 0.7326 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.1974, allocations: 25.7 kB / 0.7326 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.063e-05/0.1975, allocations: 104.1 kB / 0.7327 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.049e-05/0.1975, allocations: 0 / 0.7327 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.385e-05/0.1976, allocations: 33.7 kB / 0.7328 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001729/0.1978, allocations: 326.8 kB / 0.7331 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.819e-05/0.1978, allocations: 47.98 kB / 0.7331 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.894e-05/0.1979, allocations: 59.91 kB / 0.7332 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001355/0.198, allocations: 96.3 kB / 0.7333 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.198, allocations: 4.031 kB / 0.7333 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002164/0.1983, allocations: 169.4 kB / 0.7334 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.1983, allocations: 7.984 kB / 0.7334 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.1983, allocations: 0 / 0.7334 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.1983, allocations: 4 kB / 0.7334 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.42e-05/0.1983, allocations: 0 / 0.7334 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.1983, allocations: 0 / 0.7334 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.27e-05/0.1984, allocations: 11.83 kB / 0.7335 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.1984, allocations: 7.984 kB / 0.7335 GB, free: 11.38 MB / 0.5606 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.0001974/0.1986, allocations: 129.8 kB / 0.7336 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.082e-05/0.1986, allocations: 19.88 kB / 0.7336 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001355/0.1987, allocations: 66.12 kB / 0.7337 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1987, allocations: 0 / 0.7337 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1988, allocations: 0 / 0.7337 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1988, allocations: 0 / 0.7337 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.1989, allocations: 156.7 kB / 0.7338 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1989, allocations: 0 / 0.7338 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.295e-06/0.1989, allocations: 3.938 kB / 0.7338 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1989, allocations: 0 / 0.7338 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.1989, allocations: 8 kB / 0.7338 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1989, allocations: 4.031 kB / 0.7338 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1989, allocations: 0 / 0.7338 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001054/0.199, allocations: 81.03 kB / 0.7339 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.08e-05/0.199, allocations: 15.89 kB / 0.7339 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.1991, allocations: 0 / 0.7339 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.648e-05/0.1991, allocations: 11.86 kB / 0.7339 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.819e-06/0.1991, allocations: 0 / 0.7339 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.045e-06/0.1991, allocations: 0 / 0.7339 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001387/0.1992, allocations: 148.4 kB / 0.7341 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.1e-08/0.1992, allocations: 0 / 0.7341 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003618/0.1996, allocations: 87.84 kB / 0.7342 GB, free: 10.59 MB / 0.5606 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.0009279/0.2005, allocations: 0.7538 MB / 0.7349 GB, free: 9.836 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002132/0.2007, allocations: 121.6 kB / 0.735 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2007, allocations: 4.094 kB / 0.735 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.973e-05/0.2008, allocations: 11.98 kB / 0.735 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001591/0.2009, allocations: 2.531 kB / 0.735 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.203, allocations: 1.812 MB / 0.7368 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.43e-05/0.2031, allocations: 96.06 kB / 0.7369 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.134e-05/0.2031, allocations: 0 / 0.7369 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.026e-05/0.2032, allocations: 31.36 kB / 0.7369 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of SimCode: time 5.31e-07/0.2032, allocations: 0 / 0.7369 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03305/0.2362, allocations: 4.493 MB / 0.7413 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.41, allocations: 8 kB / 0.7413 GB, free: 3.293 MB / 0.5606 GB " [Timeout remaining time 648] (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: 15.202958728652447] Failed to read output from testmodel.py, exit status != 0: 11.520135668106377 11.544186239 11.343995514 Calling exit ...