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.001243/0.001243, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0016/0.0016, allocations: 177.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.9235/0.9235, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.5858/0.5858, allocations: 114 MB / 373.9 MB, free: 8.695 MB / 346.7 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: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 0 / 0.5541 GB, free: 2.832 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.175e-05/2.442e-05, allocations: 2.281 kB / 0.5542 GB, free: 2.828 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001793/0.001818, allocations: 0.521 MB / 0.5547 GB, free: 2.312 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.002498/0.004316, allocations: 1.61 MB / 0.5562 GB, free: 0.6836 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.142e-05/0.004367, allocations: 3.938 kB / 0.5562 GB, free: 0.6797 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.000217/0.004584, allocations: 59.89 kB / 0.5563 GB, free: 0.6211 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 4.386e-05/0.004628, allocations: 27.91 kB / 0.5563 GB, free: 0.5938 MB / 0.5105 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.001189/0.005817, allocations: 290.4 kB / 0.5566 GB, free: 320 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.005918, allocations: 35.91 kB / 0.5566 GB, free: 284 kB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 4.507e-05/0.005963, allocations: 0 / 0.5566 GB, free: 284 kB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.006086, allocations: 27.89 kB / 0.5567 GB, free: 256 kB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 8.991e-05/0.006176, allocations: 39.95 kB / 0.5567 GB, free: 216 kB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 1.797e-05/0.006194, allocations: 0 / 0.5567 GB, free: 216 kB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006768/0.006871, allocations: 463 kB / 0.5571 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 5.412e-05/0.006925, allocations: 23.92 kB / 0.5572 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 2.838e-05/0.006954, allocations: 11.88 kB / 0.5572 GB, free: 15.72 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0003631/0.007317, allocations: 355.1 kB / 0.5575 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.00732, allocations: 4 kB / 0.5575 GB, free: 15.37 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.794e-06/0.007322, allocations: 0 / 0.5575 GB, free: 15.37 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.007327, allocations: 4 kB / 0.5575 GB, free: 15.37 MB / 0.5261 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.0003338/0.00766, allocations: 357.3 kB / 0.5579 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.007698, allocations: 16.56 kB / 0.5579 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.634e-05/0.007725, allocations: 34.75 kB / 0.5579 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.566e-05/0.00775, allocations: 16.89 kB / 0.5579 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.007867, allocations: 130.8 kB / 0.558 GB, free: 14.76 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.275e-06/0.007875, allocations: 4.375 kB / 0.5581 GB, free: 14.76 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-06/0.007882, allocations: 384 / 0.5581 GB, free: 14.76 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.007993, allocations: 42.19 kB / 0.5581 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.008, allocations: 192 / 0.5581 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.008008, allocations: 4.125 kB / 0.5581 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.008013, allocations: 0 / 0.5581 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.616e-05/0.008039, allocations: 19.98 kB / 0.5581 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001338/0.008173, allocations: 160.7 kB / 0.5583 GB, free: 14.49 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 3.559e-05/0.008208, allocations: 26.58 kB / 0.5583 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.814e-05/0.008226, allocations: 16.91 kB / 0.5583 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.208e-05/0.008258, allocations: 11.92 kB / 0.5583 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.663e-05/0.008275, allocations: 38.56 kB / 0.5584 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.008276, allocations: 0 / 0.5584 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1): time 0.0001218/0.008398, allocations: 69.56 kB / 0.5584 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.546e-05/0.008423, allocations: 51.41 kB / 0.5585 GB, free: 14.24 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.008553, allocations: 210.2 kB / 0.5587 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.905e-06/0.008561, allocations: 25.7 kB / 0.5587 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.285e-05/0.008604, allocations: 104.2 kB / 0.5588 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.666e-06/0.008613, allocations: 4 kB / 0.5588 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.127e-05/0.008644, allocations: 33.7 kB / 0.5588 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.43e-05/0.008718, allocations: 326.8 kB / 0.5591 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.559e-05/0.008764, allocations: 51.97 kB / 0.5592 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.366e-05/0.008797, allocations: 55.92 kB / 0.5592 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.715e-05/0.008875, allocations: 98.45 kB / 0.5593 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.008876, allocations: 0 / 0.5593 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001098/0.008986, allocations: 161.5 kB / 0.5595 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.11e-05/0.008997, allocations: 4 kB / 0.5595 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.00901, allocations: 0 / 0.5595 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.009023, allocations: 12 kB / 0.5595 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.203e-05/0.009035, allocations: 4 kB / 0.5595 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-06/0.009039, allocations: 0 / 0.5595 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.846e-05/0.009058, allocations: 7.891 kB / 0.5595 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.009067, allocations: 7.984 kB / 0.5595 GB, free: 13.11 MB / 0.5261 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.0001268/0.009193, allocations: 129.8 kB / 0.5597 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.185e-06/0.009202, allocations: 11.91 kB / 0.5597 GB, free: 12.96 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.279e-05/0.009284, allocations: 66.17 kB / 0.5597 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.009287, allocations: 3.938 kB / 0.5597 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.009291, allocations: 4.031 kB / 0.5597 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.009293, allocations: 3.938 kB / 0.5597 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.623e-05/0.009369, allocations: 156.7 kB / 0.5599 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.00937, allocations: 0 / 0.5599 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.687e-06/0.009374, allocations: 0 / 0.5599 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.32e-07/0.009375, allocations: 0 / 0.5599 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.99e-06/0.00938, allocations: 0 / 0.5599 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.009381, allocations: 7.938 kB / 0.5599 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.009384, allocations: 7.984 kB / 0.5599 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.298e-05/0.009437, allocations: 81.02 kB / 0.56 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 8.997e-06/0.009446, allocations: 15.94 kB / 0.56 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.716e-06/0.009454, allocations: 0 / 0.56 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.767e-06/0.009463, allocations: 7.875 kB / 0.56 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.017e-05/0.009473, allocations: 0 / 0.56 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-06/0.009474, allocations: 0 / 0.56 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 7.346e-05/0.009548, allocations: 156.3 kB / 0.5602 GB, free: 12.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6e-08/0.009548, allocations: 0 / 0.5602 GB, free: 12.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002458/0.009794, allocations: 87.8 kB / 0.5602 GB, free: 12.31 MB / 0.5261 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.000513/0.01031, allocations: 0.7727 MB / 0.561 GB, free: 11.54 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001203/0.01043, allocations: 113.6 kB / 0.5611 GB, free: 11.42 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.01043, allocations: 0 / 0.5611 GB, free: 11.42 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 1.063e-05/0.01044, allocations: 15.98 kB / 0.5611 GB, free: 11.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000108/0.01055, allocations: 10.44 kB / 0.5611 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.01165, allocations: 1.821 MB / 0.5629 GB, free: 9.488 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.805e-05/0.01171, allocations: 92.25 kB / 0.563 GB, free: 9.379 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 1.765e-05/0.01173, allocations: 3.984 kB / 0.563 GB, free: 9.375 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.01176, allocations: 28.5 kB / 0.563 GB, free: 9.348 MB / 0.5261 GB Notification: Performance of SimCode: time 3.21e-07/0.01176, allocations: 0 / 0.563 GB, free: 9.348 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.02766, allocations: 4.623 MB / 0.5675 GB, free: 4.852 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.42/7.447, allocations: 2.031 kB / 0.5675 GB, free: 4.852 MB / 0.5261 GB " [Timeout remaining time 652] (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: 10.013022064231336] Failed to read output from testmodel.py, exit status != 0: 7.533605348318815 7.544186969 7.534315601 Calling exit ...