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.001281/0.001281, allocations: 109.1 kB / 17.12 MB, free: 5.926 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.001557/0.001557, allocations: 205 kB / 20.09 MB, free: 2.977 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.511/1.511, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.06/1.06, allocations: 150 MB / 459.5 MB, free: 5.312 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="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: 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.002024/0.002024, allocations: 70.03 kB / 0.6361 GB, free: 30.46 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.175, allocations: 89.12 MB / 0.7231 GB, free: 4.113 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001816/0.1769, allocations: 0.5197 MB / 0.7236 GB, free: 3.594 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002756/0.1796, allocations: 1.679 MB / 0.7253 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.099e-05/0.1797, allocations: 0 / 0.7253 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001479/0.1798, allocations: 23.84 kB / 0.7253 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.167e-05/0.1798, allocations: 7.984 kB / 0.7253 GB, free: 1.867 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.001155/0.181, allocations: 255.3 kB / 0.7255 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.447e-05/0.1811, allocations: 27.91 kB / 0.7256 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.204e-05/0.1811, allocations: 4.281 kB / 0.7256 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.975e-05/0.1812, allocations: 15.91 kB / 0.7256 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.239e-05/0.1812, allocations: 15.98 kB / 0.7256 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.191e-05/0.1812, allocations: 0 / 0.7256 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000742/0.182, allocations: 391.3 kB / 0.726 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.524e-05/0.182, allocations: 19.92 kB / 0.726 GB, free: 1.148 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.073e-05/0.182, allocations: 19.81 kB / 0.726 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004831/0.1825, allocations: 295.1 kB / 0.7263 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1825, allocations: 0 / 0.7263 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1825, allocations: 0 / 0.7263 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.381e-06/0.1825, allocations: 0 / 0.7263 GB, free: 0.8398 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.0005614/0.1831, allocations: 410.7 kB / 0.7267 GB, free: 400 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.1831, allocations: 16.02 kB / 0.7267 GB, free: 384 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.535e-05/0.1832, allocations: 34.75 kB / 0.7267 GB, free: 340 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.411e-05/0.1832, allocations: 4.891 kB / 0.7267 GB, free: 336 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.1834, allocations: 187.2 kB / 0.7269 GB, free: 112 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.071e-06/0.1834, allocations: 384 / 0.7269 GB, free: 112 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.1834, allocations: 384 / 0.7269 GB, free: 112 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.1835, allocations: 41.81 kB / 0.727 GB, free: 64 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1835, allocations: 3.984 kB / 0.727 GB, free: 60 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.1835, allocations: 4 kB / 0.727 GB, free: 56 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.1836, allocations: 0 / 0.727 GB, free: 56 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.662e-05/0.1836, allocations: 15.98 kB / 0.727 GB, free: 40 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002268/0.1838, allocations: 177.6 kB / 0.7271 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 5.11e-05/0.1839, allocations: 26.58 kB / 0.7272 GB, free: 15.78 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.685e-05/0.1839, allocations: 12.92 kB / 0.7272 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/0.1839, allocations: 7.984 kB / 0.7272 GB, free: 15.76 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.184, allocations: 34.5 kB / 0.7272 GB, free: 15.71 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.184, allocations: 0 / 0.7272 GB, free: 15.71 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.000158/0.1841, allocations: 65.58 kB / 0.7273 GB, free: 15.64 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.1842, allocations: 51.41 kB / 0.7273 GB, free: 15.58 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001789/0.1843, allocations: 178.1 kB / 0.7275 GB, free: 15.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.1844, allocations: 25.7 kB / 0.7275 GB, free: 15.37 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.885e-05/0.1844, allocations: 96.11 kB / 0.7276 GB, free: 15.27 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.047e-06/0.1844, allocations: 0 / 0.7276 GB, free: 15.27 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-05/0.1845, allocations: 33.64 kB / 0.7277 GB, free: 15.23 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1846, allocations: 315 kB / 0.728 GB, free: 14.91 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.146e-05/0.1847, allocations: 43.98 kB / 0.728 GB, free: 14.87 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.925e-05/0.1847, allocations: 46.7 kB / 0.728 GB, free: 14.83 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.127e-05/0.1848, allocations: 68.83 kB / 0.7281 GB, free: 14.76 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1848, allocations: 0 / 0.7281 GB, free: 14.76 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001703/0.185, allocations: 133.4 kB / 0.7282 GB, free: 14.62 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.185, allocations: 4 kB / 0.7282 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.185, allocations: 8 kB / 0.7282 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.185, allocations: 0 / 0.7282 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-05/0.185, allocations: 0 / 0.7282 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.1851, allocations: 64 / 0.7282 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.873e-05/0.1851, allocations: 15.89 kB / 0.7283 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.1851, allocations: 3.984 kB / 0.7283 GB, free: 14.59 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.0001709/0.1853, allocations: 125.8 kB / 0.7284 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.1853, allocations: 11.89 kB / 0.7284 GB, free: 14.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001309/0.1854, allocations: 53.56 kB / 0.7285 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1854, allocations: 0 / 0.7285 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1854, allocations: 3.938 kB / 0.7285 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.1854, allocations: 8.031 kB / 0.7285 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.1856, allocations: 169.6 kB / 0.7286 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1856, allocations: 0 / 0.7286 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.745e-06/0.1856, allocations: 3.938 kB / 0.7286 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.572e-06/0.1856, allocations: 0 / 0.7286 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-06/0.1856, allocations: 0 / 0.7286 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1856, allocations: 0 / 0.7286 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1856, allocations: 4 kB / 0.7286 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.705e-05/0.1857, allocations: 85.06 kB / 0.7287 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.663e-05/0.1857, allocations: 85 kB / 0.7288 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.1857, allocations: 0 / 0.7288 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.238e-05/0.1858, allocations: 0 / 0.7288 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.582e-05/0.1858, allocations: 4 kB / 0.7288 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.1858, allocations: 3.938 kB / 0.7288 GB, free: 13.94 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001018/0.1859, allocations: 126.5 kB / 0.7289 GB, free: 13.82 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.1859, allocations: 0 / 0.7289 GB, free: 13.82 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003646/0.1862, allocations: 87.8 kB / 0.729 GB, free: 13.73 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.0008995/0.1871, allocations: 0.756 MB / 0.7297 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001758/0.1873, allocations: 93.66 kB / 0.7298 GB, free: 12.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.1873, allocations: 4 kB / 0.7298 GB, free: 12.88 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.769e-05/0.1873, allocations: 7.938 kB / 0.7298 GB, free: 12.87 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.1875, allocations: 8 kB / 0.7299 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.189, allocations: 1.544 MB / 0.7314 GB, free: 11.24 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.1894, allocations: 0.6885 MB / 0.732 GB, free: 10.52 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.204e-05/0.1894, allocations: 4 kB / 0.732 GB, free: 10.52 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.585e-05/0.1894, allocations: 19.42 kB / 0.7321 GB, free: 10.5 MB / 0.545 GB Notification: Performance of SimCode: time 6.71e-07/0.1894, allocations: 4.219 kB / 0.7321 GB, free: 10.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03139/0.2208, allocations: 3.58 MB / 0.7356 GB, free: 7.012 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.158/8.379, allocations: 11.02 kB / 0.7356 GB, free: 7.004 MB / 0.545 GB " [Timeout remaining time 652] (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: 12.487392457900569] Failed to read output from testmodel.py, exit status != 0: 8.452172097051516 8.470849048 8.285438594 Calling exit ...