Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.001367/0.001367, allocations: 118 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.001652/0.001652, allocations: 203.8 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.549/1.549, allocations: 230.6 MB / 254.2 MB, free: 15.08 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 1.039/1.039, allocations: 150 MB / 460.2 MB, free: 5.258 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_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",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.002059/0.002059, allocations: 64.81 kB / 0.6368 GB, free: 30.45 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1906, allocations: 89.14 MB / 0.7238 GB, free: 4.055 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001707/0.1923, allocations: 0.5027 MB / 0.7243 GB, free: 3.551 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002579/0.1949, allocations: 1.683 MB / 0.7259 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.068e-05/0.195, allocations: 0 / 0.7259 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.1951, allocations: 23.91 kB / 0.726 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 2.648e-05/0.1951, allocations: 11.97 kB / 0.726 GB, free: 1.816 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.001001/0.1961, allocations: 258.3 kB / 0.7262 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.083e-05/0.1962, allocations: 23.92 kB / 0.7262 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.545e-05/0.1963, allocations: 4.266 kB / 0.7263 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.57e-05/0.1963, allocations: 15.92 kB / 0.7263 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.211e-05/0.1964, allocations: 15.97 kB / 0.7263 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.1964, allocations: 0 / 0.7263 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007161/0.1971, allocations: 387.4 kB / 0.7267 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.033e-05/0.1971, allocations: 19.92 kB / 0.7267 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.606e-05/0.1972, allocations: 27.8 kB / 0.7267 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004592/0.1976, allocations: 291.2 kB / 0.727 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1976, allocations: 0 / 0.727 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.473e-06/0.1976, allocations: 0 / 0.727 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.1977, allocations: 0 / 0.727 GB, free: 0.793 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.000526/0.1982, allocations: 410.7 kB / 0.7274 GB, free: 352 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.1982, allocations: 8.031 kB / 0.7274 GB, free: 344 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.687e-05/0.1982, allocations: 192 / 0.7274 GB, free: 344 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.84e-05/0.1983, allocations: 30.75 kB / 0.7274 GB, free: 304 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.9e-05/0.1983, allocations: 20.77 kB / 0.7274 GB, free: 284 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001989/0.1985, allocations: 188.2 kB / 0.7276 GB, free: 56 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.622e-06/0.1985, allocations: 384 / 0.7276 GB, free: 56 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.1985, allocations: 384 / 0.7276 GB, free: 56 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.1986, allocations: 45.62 kB / 0.7276 GB, free: 4 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.1986, allocations: 0 / 0.7276 GB, free: 4 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.355e-06/0.1986, allocations: 0 / 0.7276 GB, free: 4 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.1987, allocations: 0 / 0.7276 GB, free: 4 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.822e-05/0.1987, allocations: 20.05 kB / 0.7277 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002047/0.1989, allocations: 173.6 kB / 0.7278 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.7e-05/0.199, allocations: 30.5 kB / 0.7279 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.402e-05/0.199, allocations: 12.92 kB / 0.7279 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.438e-05/0.199, allocations: 7.938 kB / 0.7279 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.199, allocations: 30.56 kB / 0.7279 GB, free: 15.66 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.199, allocations: 0 / 0.7279 GB, free: 15.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001816/0.1992, allocations: 65.72 kB / 0.728 GB, free: 15.59 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.1993, allocations: 59.38 kB / 0.728 GB, free: 15.52 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.1995, allocations: 170.2 kB / 0.7282 GB, free: 15.35 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.1995, allocations: 29.64 kB / 0.7282 GB, free: 15.31 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.009e-05/0.1995, allocations: 96.12 kB / 0.7283 GB, free: 15.21 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.092e-05/0.1996, allocations: 0 / 0.7283 GB, free: 15.21 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.615e-05/0.1996, allocations: 25.7 kB / 0.7283 GB, free: 15.18 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002072/0.1998, allocations: 322.8 kB / 0.7286 GB, free: 14.86 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.905e-05/0.1999, allocations: 39.98 kB / 0.7287 GB, free: 14.82 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.951e-05/0.1999, allocations: 39.98 kB / 0.7287 GB, free: 14.78 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.638e-05/0.2, allocations: 68.81 kB / 0.7288 GB, free: 14.71 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.2, allocations: 4 kB / 0.7288 GB, free: 14.71 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001631/0.2002, allocations: 129.5 kB / 0.7289 GB, free: 14.57 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.323e-05/0.2002, allocations: 6.031 kB / 0.7289 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/0.2002, allocations: 11.94 kB / 0.7289 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.2002, allocations: 0 / 0.7289 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.554e-05/0.2003, allocations: 3.984 kB / 0.7289 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2003, allocations: 3.984 kB / 0.7289 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.825e-05/0.2003, allocations: 15.95 kB / 0.729 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.235e-06/0.2003, allocations: 0 / 0.729 GB, free: 14.54 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: 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.0001522/0.2005, allocations: 121.8 kB / 0.7291 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.407e-05/0.2005, allocations: 7.891 kB / 0.7291 GB, free: 14.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/0.2006, allocations: 61.55 kB / 0.7291 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2006, allocations: 0 / 0.7291 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2006, allocations: 0 / 0.7291 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.2006, allocations: 0 / 0.7291 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.2007, allocations: 177.6 kB / 0.7293 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.2007, allocations: 11.86 kB / 0.7293 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.688e-06/0.2007, allocations: 0 / 0.7293 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.2007, allocations: 3.938 kB / 0.7293 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-06/0.2008, allocations: 0 / 0.7293 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.2008, allocations: 0 / 0.7293 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2008, allocations: 0 / 0.7293 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.64e-05/0.2008, allocations: 73.08 kB / 0.7294 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.2009, allocations: 93.03 kB / 0.7295 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.2009, allocations: 4 kB / 0.7295 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.155e-05/0.2009, allocations: 0 / 0.7295 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.878e-05/0.2009, allocations: 3.984 kB / 0.7295 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-06/0.201, allocations: 8 kB / 0.7295 GB, free: 13.88 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.725e-05/0.201, allocations: 122.8 kB / 0.7296 GB, free: 13.76 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.201, allocations: 0 / 0.7296 GB, free: 13.76 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003583/0.2014, allocations: 87.8 kB / 0.7297 GB, free: 13.68 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.0008924/0.2023, allocations: 0.7505 MB / 0.7304 GB, free: 12.92 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001809/0.2025, allocations: 93.7 kB / 0.7305 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2025, allocations: 0 / 0.7305 GB, free: 12.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.759e-05/0.2025, allocations: 11.98 kB / 0.7305 GB, free: 12.81 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.2027, allocations: 5.719 kB / 0.7305 GB, free: 12.81 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.2043, allocations: 1.547 MB / 0.732 GB, free: 11.18 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.2047, allocations: 0.6924 MB / 0.7327 GB, free: 10.46 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.342e-05/0.2047, allocations: 4 kB / 0.7327 GB, free: 10.46 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.784e-05/0.2047, allocations: 15.44 kB / 0.7327 GB, free: 10.45 MB / 0.545 GB Notification: Performance of SimCode: time 6.11e-07/0.2047, allocations: 0 / 0.7327 GB, free: 10.45 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.2267, allocations: 3.621 MB / 0.7363 GB, free: 6.953 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.466/8.693, allocations: 10.62 kB / 0.7363 GB, free: 6.945 MB / 0.545 GB " [Timeout remaining time 651] (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.80501206900226] Failed to read output from testmodel.py, exit status != 0: 8.81832248903811 8.834239357 8.633533787 Calling exit ...