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.001171/0.001171, allocations: 72.5 kB / 19.92 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.001563/0.001563, allocations: 173.9 kB / 23.21 MB, free: 1.355 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.9152/0.9152, allocations: 177.1 MB / 203.5 MB, free: 5.723 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.5728/0.5728, allocations: 114 MB / 373.9 MB, free: 8.715 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_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.695e-06/2.695e-06, allocations: 3.984 kB / 0.5541 GB, free: 1.727 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.279e-05/2.549e-05, allocations: 4.812 kB / 0.5541 GB, free: 1.723 MB / 474.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001115/0.001141, allocations: 0.5096 MB / 0.5546 GB, free: 1.219 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.002887, allocations: 1.622 MB / 0.5562 GB, free: 15.58 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.465e-05/0.002922, allocations: 0 / 0.5562 GB, free: 15.58 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.00306, allocations: 27.91 kB / 0.5563 GB, free: 15.55 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.026e-05/0.00308, allocations: 7.984 kB / 0.5563 GB, free: 15.54 MB / 490.7 MB [/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.0007862/0.003867, allocations: 282.6 kB / 0.5565 GB, free: 15.27 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 6.271e-05/0.003929, allocations: 15.92 kB / 0.5565 GB, free: 15.25 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.858e-05/0.003968, allocations: 4 kB / 0.5565 GB, free: 15.25 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.693e-05/0.004005, allocations: 19.95 kB / 0.5566 GB, free: 15.23 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.37e-05/0.004039, allocations: 19.92 kB / 0.5566 GB, free: 15.21 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.00405, allocations: 0 / 0.5566 GB, free: 15.21 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004985/0.004548, allocations: 451.1 kB / 0.557 GB, free: 14.77 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 4.947e-05/0.004598, allocations: 23.91 kB / 0.557 GB, free: 14.75 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 1.875e-05/0.004616, allocations: 11.94 kB / 0.5571 GB, free: 14.73 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003332/0.00495, allocations: 343.1 kB / 0.5574 GB, free: 14.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.004951, allocations: 0 / 0.5574 GB, free: 14.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.004953, allocations: 3.984 kB / 0.5574 GB, free: 14.39 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.036e-06/0.004956, allocations: 4 kB / 0.5574 GB, free: 14.39 MB / 490.7 MB 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.0002525/0.005209, allocations: 329.6 kB / 0.5577 GB, free: 14.04 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.638e-05/0.005235, allocations: 16.5 kB / 0.5577 GB, free: 14.02 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.805e-05/0.005253, allocations: 34.75 kB / 0.5577 GB, free: 13.98 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.668e-05/0.00527, allocations: 8.891 kB / 0.5578 GB, free: 13.97 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.404e-05/0.005354, allocations: 129.1 kB / 0.5579 GB, free: 13.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.005362, allocations: 384 / 0.5579 GB, free: 13.82 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.542e-06/0.005369, allocations: 384 / 0.5579 GB, free: 13.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.138e-05/0.00544, allocations: 38.27 kB / 0.5579 GB, free: 13.78 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.005448, allocations: 8.109 kB / 0.5579 GB, free: 13.77 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.005456, allocations: 4.125 kB / 0.5579 GB, free: 13.77 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.005461, allocations: 0 / 0.5579 GB, free: 13.77 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.32e-05/0.005484, allocations: 16 kB / 0.5579 GB, free: 13.75 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.005613, allocations: 144.7 kB / 0.5581 GB, free: 13.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.748e-05/0.005651, allocations: 22.58 kB / 0.5581 GB, free: 13.54 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.782e-05/0.005669, allocations: 20.91 kB / 0.5581 GB, free: 13.52 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.0057, allocations: 7.984 kB / 0.5581 GB, free: 13.51 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.005718, allocations: 30.56 kB / 0.5582 GB, free: 13.47 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 5.11e-07/0.005718, allocations: 0 / 0.5582 GB, free: 13.47 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001244/0.005843, allocations: 77.45 kB / 0.5582 GB, free: 13.39 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.023e-05/0.005873, allocations: 55.39 kB / 0.5583 GB, free: 13.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.005977, allocations: 162.2 kB / 0.5584 GB, free: 13.15 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.639e-06/0.005987, allocations: 25.7 kB / 0.5585 GB, free: 13.12 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.799e-05/0.006035, allocations: 104.1 kB / 0.5586 GB, free: 13.01 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.958e-06/0.006045, allocations: 0 / 0.5586 GB, free: 13.01 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/0.006075, allocations: 33.83 kB / 0.5586 GB, free: 12.97 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.405e-05/0.006159, allocations: 318.8 kB / 0.5589 GB, free: 12.65 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.238e-05/0.006202, allocations: 39.97 kB / 0.5589 GB, free: 12.61 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.103e-05/0.006233, allocations: 39.98 kB / 0.559 GB, free: 12.57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.233e-05/0.006295, allocations: 72.75 kB / 0.559 GB, free: 12.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.006298, allocations: 0 / 0.559 GB, free: 12.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002792/0.006577, allocations: 128.1 kB / 0.5592 GB, free: 12.37 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.006592, allocations: 4 kB / 0.5592 GB, free: 12.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.006605, allocations: 0 / 0.5592 GB, free: 12.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.006618, allocations: 3.938 kB / 0.5592 GB, free: 12.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.221e-05/0.006631, allocations: 12.05 kB / 0.5592 GB, free: 12.35 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.006635, allocations: 4 kB / 0.5592 GB, free: 12.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.733e-05/0.006653, allocations: 3.953 kB / 0.5592 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.006663, allocations: 4 kB / 0.5592 GB, free: 12.34 MB / 490.7 MB 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.0001055/0.006768, allocations: 117.8 kB / 0.5593 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.502e-06/0.006775, allocations: 7.953 kB / 0.5593 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.748e-05/0.006862, allocations: 65.38 kB / 0.5594 GB, free: 12.14 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.006865, allocations: 3.938 kB / 0.5594 GB, free: 12.14 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.006869, allocations: 0 / 0.5594 GB, free: 12.14 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.006874, allocations: 11.95 kB / 0.5594 GB, free: 12.12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.069e-05/0.006954, allocations: 140.8 kB / 0.5595 GB, free: 11.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.006956, allocations: 0 / 0.5595 GB, free: 11.95 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.736e-06/0.006959, allocations: 3.938 kB / 0.5595 GB, free: 11.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.00696, allocations: 0 / 0.5595 GB, free: 11.94 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-06/0.006966, allocations: 0 / 0.5595 GB, free: 11.94 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.006969, allocations: 7.938 kB / 0.5595 GB, free: 11.93 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.00697, allocations: 0 / 0.5595 GB, free: 11.93 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.519e-05/0.007025, allocations: 77.06 kB / 0.5596 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.01e-05/0.007035, allocations: 15.89 kB / 0.5596 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.06e-05/0.007046, allocations: 0 / 0.5596 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.895e-06/0.007054, allocations: 7.969 kB / 0.5596 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.646e-05/0.00707, allocations: 4 kB / 0.5596 GB, free: 11.81 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-06/0.007072, allocations: 0 / 0.5596 GB, free: 11.81 MB / 490.7 MB Notification: Performance of sorting global known variables: time 6.457e-05/0.007137, allocations: 130.5 kB / 0.5598 GB, free: 11.69 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007137, allocations: 0 / 0.5598 GB, free: 11.69 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002718/0.007408, allocations: 87.8 kB / 0.5599 GB, free: 11.6 MB / 490.7 MB 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.0005679/0.007976, allocations: 0.7546 MB / 0.5606 GB, free: 10.85 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001394/0.008116, allocations: 101.6 kB / 0.5607 GB, free: 10.74 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.008118, allocations: 0 / 0.5607 GB, free: 10.74 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 8.857e-06/0.008127, allocations: 8 kB / 0.5607 GB, free: 10.73 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.00825, allocations: 7.922 kB / 0.5607 GB, free: 10.73 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009267/0.009177, allocations: 1.539 MB / 0.5622 GB, free: 9.105 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.664e-05/0.009223, allocations: 79.48 kB / 0.5623 GB, free: 9.008 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.679e-05/0.00924, allocations: 0 / 0.5623 GB, free: 9.008 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.241e-05/0.009272, allocations: 28.48 kB / 0.5623 GB, free: 8.98 MB / 490.7 MB Notification: Performance of SimCode: time 5.21e-07/0.009273, allocations: 0 / 0.5623 GB, free: 8.98 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01918/0.02845, allocations: 4.235 MB / 0.5664 GB, free: 4.875 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.387/7.415, allocations: 3.828 kB / 0.5664 GB, free: 4.875 MB / 490.7 MB " [Timeout remaining time 653] (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: 9.926031308248639] Failed to read output from testmodel.py, exit status != 0: 7.496707675978541 7.513929084 7.504829307 Calling exit ...