Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.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.0007438/0.0007438, allocations: 76.5 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.0007819/0.0007819, allocations: 174.3 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.8101/0.8101, 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/BuildSysPro 3.7.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo): time 0.509/0.509, allocations: 110.2 MB / 370.2 MB, free: 12.64 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:44:3-56:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:58:3-65:19:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:67:3-72:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:74:3-79:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/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: translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 0.5485 GB, free: 9.398 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.621e-05/1.75e-05, allocations: 6.219 kB / 0.5485 GB, free: 9.391 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.000951/0.0009685, allocations: 0.5193 MB / 0.549 GB, free: 8.871 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.002573, allocations: 1.61 MB / 0.5505 GB, free: 7.242 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.252e-05/0.002605, allocations: 4 kB / 0.5505 GB, free: 7.238 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.00274, allocations: 23.91 kB / 0.5506 GB, free: 7.215 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 1.767e-05/0.002757, allocations: 7.938 kB / 0.5506 GB, free: 7.207 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/IBPSA/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0006819/0.003439, allocations: 255.1 kB / 0.5508 GB, free: 6.957 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 6.552e-05/0.003505, allocations: 27.91 kB / 0.5508 GB, free: 6.93 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 3.378e-05/0.003539, allocations: 4 kB / 0.5508 GB, free: 6.926 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 3.728e-05/0.003576, allocations: 19.92 kB / 0.5509 GB, free: 6.906 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 3.332e-05/0.003609, allocations: 15.97 kB / 0.5509 GB, free: 6.891 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.003623, allocations: 3.938 kB / 0.5509 GB, free: 6.887 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004547/0.004077, allocations: 427.1 kB / 0.5513 GB, free: 6.469 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 4.78e-05/0.004125, allocations: 23.92 kB / 0.5513 GB, free: 6.445 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 1.765e-05/0.004143, allocations: 7.938 kB / 0.5513 GB, free: 6.438 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0003383/0.004481, allocations: 331.3 kB / 0.5516 GB, free: 6.113 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.004483, allocations: 0 / 0.5516 GB, free: 6.113 MB / 0.5105 GB Notification: Performance of FrontEnd: time 7.92e-07/0.004484, allocations: 0 / 0.5516 GB, free: 6.113 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.477e-06/0.004487, allocations: 3.938 kB / 0.5516 GB, free: 6.109 MB / 0.5105 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.00032/0.004807, allocations: 337.5 kB / 0.552 GB, free: 5.75 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.004843, allocations: 12.02 kB / 0.552 GB, free: 5.738 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.265e-05/0.004875, allocations: 12.83 kB / 0.552 GB, free: 5.727 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.004988, allocations: 127.4 kB / 0.5521 GB, free: 5.578 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.586e-06/0.004996, allocations: 384 / 0.5521 GB, free: 5.578 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-06/0.005005, allocations: 384 / 0.5521 GB, free: 5.578 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.998e-05/0.005085, allocations: 38.25 kB / 0.5521 GB, free: 5.535 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.005092, allocations: 192 / 0.5521 GB, free: 5.535 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-06/0.005099, allocations: 384 / 0.5521 GB, free: 5.535 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.005104, allocations: 3.938 kB / 0.5522 GB, free: 5.531 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.474e-05/0.005129, allocations: 23.98 kB / 0.5522 GB, free: 5.508 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001246/0.005253, allocations: 121.3 kB / 0.5523 GB, free: 5.359 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 3.915e-05/0.005292, allocations: 30.5 kB / 0.5523 GB, free: 5.32 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.784e-05/0.00531, allocations: 16.92 kB / 0.5523 GB, free: 5.301 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.00534, allocations: 4 kB / 0.5523 GB, free: 5.297 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/0.005358, allocations: 34.56 kB / 0.5524 GB, free: 5.254 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1): time 5.21e-07/0.005359, allocations: 0 / 0.5524 GB, free: 5.254 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1): time 0.000127/0.005486, allocations: 61.62 kB / 0.5524 GB, free: 5.188 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.858e-05/0.005514, allocations: 59.34 kB / 0.5525 GB, free: 5.117 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.005615, allocations: 180.9 kB / 0.5527 GB, free: 4.934 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.317e-06/0.005625, allocations: 29.7 kB / 0.5527 GB, free: 4.898 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.783e-05/0.005662, allocations: 96.12 kB / 0.5528 GB, free: 4.801 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.788e-06/0.005672, allocations: 3.953 kB / 0.5528 GB, free: 4.797 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.005701, allocations: 29.7 kB / 0.5528 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.819e-05/0.005779, allocations: 318.8 kB / 0.5531 GB, free: 4.441 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.873e-05/0.005818, allocations: 43.98 kB / 0.5532 GB, free: 4.398 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.748e-05/0.005845, allocations: 35.98 kB / 0.5532 GB, free: 4.363 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.36e-05/0.005909, allocations: 72.88 kB / 0.5533 GB, free: 4.289 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.005911, allocations: 0 / 0.5533 GB, free: 4.289 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001013/0.006013, allocations: 121.6 kB / 0.5534 GB, free: 4.164 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.006026, allocations: 18.55 kB / 0.5534 GB, free: 4.148 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.006038, allocations: 0 / 0.5534 GB, free: 4.148 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.006049, allocations: 3.938 kB / 0.5534 GB, free: 4.145 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.117e-05/0.00606, allocations: 0 / 0.5534 GB, free: 4.145 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.006065, allocations: 7.938 kB / 0.5534 GB, free: 4.137 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.491e-05/0.00608, allocations: 3.953 kB / 0.5534 GB, free: 4.133 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.006087, allocations: 3.938 kB / 0.5534 GB, free: 4.129 MB / 0.5105 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 8.632e-05/0.006174, allocations: 125.8 kB / 0.5535 GB, free: 3.996 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.473e-06/0.00618, allocations: 7.953 kB / 0.5535 GB, free: 3.988 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.214e-05/0.006262, allocations: 65.48 kB / 0.5536 GB, free: 3.914 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.62e-07/0.006263, allocations: 0 / 0.5536 GB, free: 3.914 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.006267, allocations: 3.938 kB / 0.5536 GB, free: 3.91 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.00627, allocations: 0 / 0.5536 GB, free: 3.91 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.344e-05/0.006334, allocations: 117.3 kB / 0.5537 GB, free: 3.766 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.006335, allocations: 0 / 0.5537 GB, free: 3.766 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.166e-06/0.006338, allocations: 7.938 kB / 0.5537 GB, free: 3.758 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.006339, allocations: 3.984 kB / 0.5537 GB, free: 3.754 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-06/0.006345, allocations: 3.984 kB / 0.5537 GB, free: 3.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.006346, allocations: 0 / 0.5537 GB, free: 3.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.006347, allocations: 7.922 kB / 0.5537 GB, free: 3.742 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.995e-05/0.006397, allocations: 81.05 kB / 0.5538 GB, free: 3.645 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 9.939e-06/0.006407, allocations: 11.95 kB / 0.5538 GB, free: 3.633 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.248e-06/0.006416, allocations: 0 / 0.5538 GB, free: 3.633 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.701e-06/0.006422, allocations: 0 / 0.5538 GB, free: 3.633 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.093e-05/0.006433, allocations: 0 / 0.5538 GB, free: 3.633 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.006436, allocations: 7.938 kB / 0.5538 GB, free: 3.625 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 5.752e-05/0.006494, allocations: 119.2 kB / 0.554 GB, free: 3.508 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5e-08/0.006494, allocations: 0 / 0.554 GB, free: 3.508 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002331/0.006727, allocations: 87.8 kB / 0.554 GB, free: 3.422 MB / 0.5105 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.0003713/0.007098, allocations: 244.9 kB / 0.5543 GB, free: 3.199 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001275/0.007226, allocations: 101.5 kB / 0.5544 GB, free: 3.094 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.007228, allocations: 0 / 0.5544 GB, free: 3.094 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.544e-06/0.007235, allocations: 8 kB / 0.5544 GB, free: 3.086 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001077/0.007343, allocations: 8.125 kB / 0.5544 GB, free: 3.078 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002418/0.007585, allocations: 198.9 kB / 0.5546 GB, free: 2.852 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.549e-05/0.00764, allocations: 83.25 kB / 0.5547 GB, free: 2.75 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.527e-05/0.007655, allocations: 8.5 kB / 0.5547 GB, free: 2.742 MB / 0.5105 GB Notification: Performance of SimCode: time 3.61e-07/0.007656, allocations: 0 / 0.5547 GB, free: 2.742 MB / 0.5105 GB Notification: Performance of Templates: time 0.004011/0.01167, allocations: 2.29 MB / 0.5569 GB, free: 460 kB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.146441565826535] Failed to read output from testmodel.py, exit status != 0: 0.01606856659054756 0.023806505000000002 0.017787189000000002 Calling exit ...