Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001273/0.001273, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.001395/0.001395, allocations: 215 kB / 20.13 MB, free: 2.949 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.396/1.396, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002271/0.002271, allocations: 289 kB / 309.8 MB, free: 3.465 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.007/1.007, allocations: 180.6 MB / 0.5338 GB, free: 12.41 MB / 398.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.00274/0.00274, allocations: 100.2 kB / 0.7346 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4702/0.4729, allocations: 95.34 MB / 0.8277 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001491/0.4744, allocations: 0.5256 MB / 0.8283 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001769/0.4762, allocations: 1.672 MB / 0.8299 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.823e-05/0.4762, allocations: 0 / 0.8299 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.4764, allocations: 22.27 kB / 0.8299 GB, free: 1.527 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.087e-05/0.4764, allocations: 8.203 kB / 0.8299 GB, free: 1.527 MB / 0.5762 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/BuildingSystems master/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.0007093/0.4771, allocations: 250.1 kB / 0.8302 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.27e-05/0.4772, allocations: 26.39 kB / 0.8302 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.548e-05/0.4772, allocations: 8.5 kB / 0.8302 GB, free: 1.41 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 2.736e-05/0.4772, allocations: 15.48 kB / 0.8302 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 3.794e-05/0.4773, allocations: 17.34 kB / 0.8302 GB, free: 1.402 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.069e-05/0.4773, allocations: 0 / 0.8302 GB, free: 1.402 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005195/0.4778, allocations: 369 kB / 0.8306 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.418e-05/0.4778, allocations: 17.58 kB / 0.8306 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.292e-05/0.4779, allocations: 23.27 kB / 0.8306 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003508/0.4782, allocations: 274.9 kB / 0.8309 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.4782, allocations: 0 / 0.8309 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.744e-06/0.4782, allocations: 2.625 kB / 0.8309 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.4782, allocations: 4 kB / 0.8309 GB, free: 1.191 MB / 0.5762 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.0003624/0.4786, allocations: 412.4 kB / 0.8313 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.4786, allocations: 8.438 kB / 0.8313 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.15e-05/0.4786, allocations: 2.812 kB / 0.8313 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.852e-05/0.4787, allocations: 34.69 kB / 0.8313 GB, free: 0.7383 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.408e-05/0.4787, allocations: 12.12 kB / 0.8313 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.4788, allocations: 177.5 kB / 0.8315 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-06/0.4788, allocations: 3 kB / 0.8315 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.973e-06/0.4788, allocations: 384 / 0.8315 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.094e-05/0.4789, allocations: 44.09 kB / 0.8315 GB, free: 500 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.4789, allocations: 3.984 kB / 0.8316 GB, free: 496 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-06/0.4789, allocations: 0 / 0.8316 GB, free: 496 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.4789, allocations: 0 / 0.8316 GB, free: 496 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.688e-05/0.4789, allocations: 16.41 kB / 0.8316 GB, free: 496 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001242/0.479, allocations: 175 kB / 0.8317 GB, free: 292 kB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 3.744e-05/0.4791, allocations: 29.84 kB / 0.8318 GB, free: 260 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.982e-05/0.4791, allocations: 18.52 kB / 0.8318 GB, free: 248 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.4791, allocations: 10.52 kB / 0.8318 GB, free: 244 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.4792, allocations: 30.56 kB / 0.8318 GB, free: 204 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.4792, allocations: 0 / 0.8318 GB, free: 204 kB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001242/0.4793, allocations: 65.48 kB / 0.8319 GB, free: 164 kB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.335e-05/0.4793, allocations: 56.05 kB / 0.8319 GB, free: 96 kB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.4794, allocations: 165 kB / 0.8321 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.4795, allocations: 29.83 kB / 0.8321 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.959e-05/0.4795, allocations: 97.2 kB / 0.8322 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 1.293e-05/0.4796, allocations: 4.734 kB / 0.8322 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.525e-05/0.4796, allocations: 26.16 kB / 0.8322 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001804/0.4798, allocations: 320.6 kB / 0.8326 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.446e-05/0.4799, allocations: 41.44 kB / 0.8326 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.342e-05/0.4799, allocations: 36.92 kB / 0.8326 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.48, allocations: 73.69 kB / 0.8327 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.48, allocations: 0 / 0.8327 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001997/0.4802, allocations: 132.9 kB / 0.8328 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.4802, allocations: 9.219 kB / 0.8328 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.4802, allocations: 1.688 kB / 0.8328 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.4803, allocations: 2.562 kB / 0.8328 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.299e-05/0.4803, allocations: 0.5156 kB / 0.8328 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.4803, allocations: 0 / 0.8328 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.511e-05/0.4803, allocations: 11.34 kB / 0.8328 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.4803, allocations: 3.938 kB / 0.8328 GB, free: 15.4 MB / 0.5919 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.000132/0.4804, allocations: 132.9 kB / 0.833 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.4805, allocations: 11.8 kB / 0.833 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.4806, allocations: 53.38 kB / 0.833 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.4806, allocations: 0.6094 kB / 0.833 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.4806, allocations: 3.031 kB / 0.833 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.4806, allocations: 0 / 0.833 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.4807, allocations: 172.6 kB / 0.8332 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.4807, allocations: 3.938 kB / 0.8332 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.863e-06/0.4807, allocations: 4.453 kB / 0.8332 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.4807, allocations: 1.641 kB / 0.8332 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.4807, allocations: 4.031 kB / 0.8332 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4807, allocations: 3.109 kB / 0.8332 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4807, allocations: 0 / 0.8332 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.076e-05/0.4808, allocations: 75.55 kB / 0.8333 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.998e-05/0.4809, allocations: 88.58 kB / 0.8334 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.173e-05/0.4809, allocations: 0.5625 kB / 0.8334 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.094e-05/0.4809, allocations: 1.281 kB / 0.8334 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.987e-06/0.4809, allocations: 4.734 kB / 0.8334 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.4809, allocations: 2.109 kB / 0.8334 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 9.987e-05/0.481, allocations: 127.1 kB / 0.8335 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.01e-07/0.481, allocations: 0 / 0.8335 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003023/0.4813, allocations: 87.45 kB / 0.8336 GB, free: 14.75 MB / 0.5919 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.000764/0.4821, allocations: 0.743 MB / 0.8343 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0001484/0.4822, allocations: 96.73 kB / 0.8344 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4822, allocations: 0 / 0.8344 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 1.545e-05/0.4822, allocations: 10.97 kB / 0.8344 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.4824, allocations: 8.062 kB / 0.8344 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.4838, allocations: 1.537 MB / 0.8359 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.4842, allocations: 0.6929 MB / 0.8366 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 1.945e-05/0.4842, allocations: 1.75 kB / 0.8366 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.268e-05/0.4843, allocations: 23.81 kB / 0.8366 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of SimCode: time 3.31e-07/0.4843, allocations: 0 / 0.8366 GB, free: 12.14 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0201/0.5044, allocations: 3.559 MB / 0.8401 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.993/8.498, allocations: 7.938 kB / 0.8401 GB, free: 11.57 MB / 0.5919 GB " [Timeout remaining time 651] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.195184625976253] Failed to read output from testmodel.py, exit status != 0: 8.621790052973665 8.63631421 8.154958841 Calling exit ...