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.0009207/0.0009207, allocations: 76.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.001716/0.001716, allocations: 170.3 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.9025/0.9025, allocations: 177.1 MB / 203.5 MB, free: 5.754 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.5586/0.5586, allocations: 114 MB / 373.9 MB, free: 8.734 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 1.011e-06/1.011e-06, allocations: 0 / 0.5541 GB, free: 2.836 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.243e-05/1.345e-05, allocations: 2.281 kB / 0.5541 GB, free: 2.832 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0009765/0.0009899, allocations: 0.5267 MB / 0.5547 GB, free: 2.309 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.00177/0.002759, allocations: 1.61 MB / 0.5562 GB, free: 0.6797 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.305e-05/0.002782, allocations: 0 / 0.5562 GB, free: 0.6797 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 8.618e-05/0.002869, allocations: 19.91 kB / 0.5562 GB, free: 0.6602 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 1.52e-05/0.002884, allocations: 11.98 kB / 0.5563 GB, free: 0.6484 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.0006019/0.003486, allocations: 275 kB / 0.5565 GB, free: 388 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 5.141e-05/0.003537, allocations: 27.91 kB / 0.5565 GB, free: 360 kB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 2.564e-05/0.003563, allocations: 7.984 kB / 0.5566 GB, free: 352 kB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 2.71e-05/0.00359, allocations: 7.984 kB / 0.5566 GB, free: 344 kB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 2.582e-05/0.003616, allocations: 19.92 kB / 0.5566 GB, free: 324 kB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 9.257e-06/0.003625, allocations: 0 / 0.5566 GB, free: 324 kB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004365/0.004061, allocations: 455 kB / 0.557 GB, free: 15.87 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.004101, allocations: 23.92 kB / 0.557 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 1.459e-05/0.004116, allocations: 7.938 kB / 0.557 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0002898/0.004406, allocations: 351.1 kB / 0.5574 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.322e-06/0.004407, allocations: 3.938 kB / 0.5574 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of FrontEnd: time 5.11e-07/0.004408, allocations: 0 / 0.5574 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.004412, allocations: 0 / 0.5574 GB, free: 15.49 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.0002631/0.004675, allocations: 331.8 kB / 0.5577 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.004705, allocations: 12.62 kB / 0.5577 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.196e-05/0.004726, allocations: 34.75 kB / 0.5577 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.716e-05/0.004744, allocations: 8.875 kB / 0.5578 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.695e-05/0.004841, allocations: 125.7 kB / 0.5579 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.735e-06/0.004848, allocations: 8.375 kB / 0.5579 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.052e-06/0.004854, allocations: 4.359 kB / 0.5579 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.19e-05/0.004916, allocations: 38.25 kB / 0.5579 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.03e-06/0.004921, allocations: 192 / 0.5579 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.004929, allocations: 8.062 kB / 0.5579 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-06/0.004932, allocations: 0 / 0.5579 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.092e-05/0.004953, allocations: 15.98 kB / 0.5579 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001063/0.00506, allocations: 144.7 kB / 0.5581 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 3.079e-05/0.00509, allocations: 30.56 kB / 0.5581 GB, free: 14.63 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.646e-05/0.005107, allocations: 16.92 kB / 0.5581 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.005132, allocations: 4 kB / 0.5581 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.401e-05/0.005146, allocations: 30.56 kB / 0.5582 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.005146, allocations: 3.938 kB / 0.5582 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1): time 9.651e-05/0.005243, allocations: 69.5 kB / 0.5582 GB, free: 14.49 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/0.005267, allocations: 51.41 kB / 0.5583 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.294e-05/0.00536, allocations: 169.5 kB / 0.5584 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.554e-06/0.005368, allocations: 25.7 kB / 0.5585 GB, free: 14.22 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.894e-05/0.005406, allocations: 100.2 kB / 0.5586 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.39e-06/0.005412, allocations: 0 / 0.5586 GB, free: 14.12 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-05/0.005439, allocations: 25.7 kB / 0.5586 GB, free: 14.09 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.838e-05/0.005507, allocations: 322.8 kB / 0.5589 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.551e-05/0.005542, allocations: 39.98 kB / 0.5589 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.686e-05/0.005569, allocations: 39.98 kB / 0.559 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.391e-05/0.005623, allocations: 76.05 kB / 0.559 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.005625, allocations: 0 / 0.559 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001079/0.005732, allocations: 125.5 kB / 0.5592 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.005744, allocations: 10.5 kB / 0.5592 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.005754, allocations: 0 / 0.5592 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.706e-06/0.005763, allocations: 8 kB / 0.5592 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.484e-06/0.005771, allocations: 0 / 0.5592 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.875e-06/0.005774, allocations: 0 / 0.5592 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.664e-05/0.00579, allocations: 7.953 kB / 0.5592 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.005796, allocations: 0 / 0.5592 GB, free: 13.46 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: 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 9.682e-05/0.005893, allocations: 128.3 kB / 0.5593 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.496e-06/0.005902, allocations: 11.89 kB / 0.5593 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.759e-05/0.005979, allocations: 65.36 kB / 0.5594 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.005983, allocations: 3.938 kB / 0.5594 GB, free: 13.24 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.005986, allocations: 4.031 kB / 0.5594 GB, free: 13.24 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.005988, allocations: 0 / 0.5594 GB, free: 13.24 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.323e-05/0.006061, allocations: 136.8 kB / 0.5595 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.51e-07/0.006062, allocations: 3.938 kB / 0.5595 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.667e-06/0.006065, allocations: 3.984 kB / 0.5595 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.006067, allocations: 4 kB / 0.5595 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.108e-06/0.006071, allocations: 0 / 0.5595 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.006072, allocations: 3.938 kB / 0.5595 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.006073, allocations: 0 / 0.5595 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.158e-05/0.006124, allocations: 77.08 kB / 0.5596 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 9.508e-06/0.006134, allocations: 15.94 kB / 0.5596 GB, free: 12.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.556e-06/0.006142, allocations: 7.938 kB / 0.5596 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-06/0.006151, allocations: 3.938 kB / 0.5596 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.335e-06/0.006159, allocations: 0 / 0.5596 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.62e-07/0.00616, allocations: 0 / 0.5596 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 5.492e-05/0.006215, allocations: 127.1 kB / 0.5598 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/0.006215, allocations: 0 / 0.5598 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003678/0.006583, allocations: 87.8 kB / 0.5598 GB, free: 12.71 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.0004918/0.007075, allocations: 0.7595 MB / 0.5606 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001036/0.007178, allocations: 93.61 kB / 0.5607 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.00718, allocations: 0 / 0.5607 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 8.957e-06/0.007189, allocations: 11.98 kB / 0.5607 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.819e-05/0.007287, allocations: 11.94 kB / 0.5607 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009256/0.008212, allocations: 1.542 MB / 0.5622 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.145e-05/0.008264, allocations: 75.33 kB / 0.5623 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 1.103e-05/0.008275, allocations: 0 / 0.5623 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.386e-05/0.008299, allocations: 20.48 kB / 0.5623 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of SimCode: time 6.61e-07/0.008299, allocations: 0 / 0.5623 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01411/0.0224, allocations: 4.253 MB / 0.5664 GB, free: 5.977 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.149/7.172, allocations: 0.9375 kB / 0.5664 GB, free: 5.977 MB / 0.5261 GB " [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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.801877815276384] Failed to read output from testmodel.py, exit status != 0: 7.253997180610895 7.267993172 7.260984165 Calling exit ...