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.00125/0.00125, allocations: 83.44 kB / 19.02 MB, free: 2.719 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.001419/0.001419, allocations: 159.6 kB / 22.25 MB, free: 4.715 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.34/1.34, allocations: 177.2 MB / 202.6 MB, free: 9.293 MB / 190.1 MB " [Timeout remaining time 179] 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.002458/0.002458, allocations: 230.2 kB / 259.2 MB, free: 0.6016 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.005/1.005, allocations: 138.5 MB / 454.2 MB, free: 2.059 MB / 366.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: translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") [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.003394/0.003394, allocations: 107.8 kB / 0.6466 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3896, allocations: 95.34 MB / 0.7397 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.00181/0.3914, allocations: 0.5308 MB / 0.7402 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002514/0.3939, allocations: 1.597 MB / 0.7418 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.248e-05/0.394, allocations: 0 / 0.7418 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.3941, allocations: 19.91 kB / 0.7418 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.803e-05/0.3941, allocations: 15.98 kB / 0.7418 GB, free: 13.07 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.0009757/0.3951, allocations: 270.8 kB / 0.742 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.689e-05/0.3952, allocations: 23.86 kB / 0.7421 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.609e-05/0.3952, allocations: 4 kB / 0.7421 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.399e-05/0.3953, allocations: 19.97 kB / 0.7421 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.594e-05/0.3953, allocations: 19.91 kB / 0.7421 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.485e-05/0.3953, allocations: 8 kB / 0.7421 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007713/0.3961, allocations: 423.2 kB / 0.7425 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.175e-05/0.3962, allocations: 15.92 kB / 0.7425 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.62e-05/0.3962, allocations: 15.88 kB / 0.7426 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005694/0.3968, allocations: 292.5 kB / 0.7428 GB, free: 12 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3968, allocations: 0 / 0.7428 GB, free: 12 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.715e-06/0.3968, allocations: 0 / 0.7428 GB, free: 12 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.416e-05/0.3968, allocations: 0 / 0.7428 GB, free: 12 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.0005373/0.3973, allocations: 329.6 kB / 0.7431 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.3974, allocations: 9.938 kB / 0.7432 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/0.3974, allocations: 12.89 kB / 0.7432 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001898/0.3976, allocations: 130.4 kB / 0.7433 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.222e-06/0.3976, allocations: 384 / 0.7433 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.3976, allocations: 384 / 0.7433 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.3977, allocations: 49.94 kB / 0.7433 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.3977, allocations: 0 / 0.7433 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.3977, allocations: 4 kB / 0.7433 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.3977, allocations: 3.938 kB / 0.7433 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.194e-05/0.3978, allocations: 12 kB / 0.7434 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001918/0.398, allocations: 121.3 kB / 0.7435 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.052e-05/0.398, allocations: 30.58 kB / 0.7435 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.587e-05/0.398, allocations: 16.91 kB / 0.7435 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.492e-05/0.3981, allocations: 4 kB / 0.7435 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.3981, allocations: 34.56 kB / 0.7436 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 2.795e-06/0.3981, allocations: 7.922 kB / 0.7436 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001639/0.3983, allocations: 65.53 kB / 0.7436 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.3983, allocations: 55.39 kB / 0.7437 GB, free: 11 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.3985, allocations: 160.1 kB / 0.7438 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.3985, allocations: 25.7 kB / 0.7439 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.96e-05/0.3986, allocations: 100.1 kB / 0.744 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.457e-06/0.3986, allocations: 8.125 kB / 0.744 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.966e-05/0.3986, allocations: 25.7 kB / 0.744 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3988, allocations: 318.8 kB / 0.7443 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.718e-05/0.3988, allocations: 43.97 kB / 0.7443 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.583e-05/0.3989, allocations: 39.92 kB / 0.7444 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.964e-05/0.399, allocations: 76.7 kB / 0.7444 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.399, allocations: 0 / 0.7444 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001581/0.3991, allocations: 121.6 kB / 0.7446 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.3991, allocations: 4 kB / 0.7446 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.3992, allocations: 7.938 kB / 0.7446 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.3992, allocations: 4.062 kB / 0.7446 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.599e-05/0.3992, allocations: 3.984 kB / 0.7446 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.3992, allocations: 0 / 0.7446 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.903e-05/0.3992, allocations: 7.891 kB / 0.7446 GB, free: 10.04 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.3992, allocations: 4 kB / 0.7446 GB, free: 10.03 MB / 0.5762 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.0001579/0.3994, allocations: 125.8 kB / 0.7447 GB, free: 9.898 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.293e-05/0.3994, allocations: 3.953 kB / 0.7447 GB, free: 9.895 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.3995, allocations: 61.38 kB / 0.7448 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3995, allocations: 0 / 0.7448 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3995, allocations: 4.031 kB / 0.7448 GB, free: 9.82 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.3995, allocations: 3.984 kB / 0.7448 GB, free: 9.816 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.3996, allocations: 121.3 kB / 0.7449 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.3997, allocations: 0 / 0.7449 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.442e-06/0.3997, allocations: 0 / 0.7449 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3997, allocations: 0 / 0.7449 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.3997, allocations: 0 / 0.7449 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.209e-06/0.3997, allocations: 3.938 kB / 0.7449 GB, free: 9.664 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3997, allocations: 0 / 0.7449 GB, free: 9.664 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001006/0.3998, allocations: 89 kB / 0.745 GB, free: 9.559 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.313e-05/0.3998, allocations: 7.953 kB / 0.745 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.3998, allocations: 4.031 kB / 0.745 GB, free: 9.547 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.852e-05/0.3998, allocations: 11.94 kB / 0.745 GB, free: 9.535 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.493e-05/0.3998, allocations: 0 / 0.745 GB, free: 9.535 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.3998, allocations: 0 / 0.745 GB, free: 9.535 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001078/0.3999, allocations: 129.3 kB / 0.7451 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3999, allocations: 0 / 0.7451 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003421/0.4003, allocations: 87.8 kB / 0.7452 GB, free: 9.324 MB / 0.5762 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.0005698/0.4009, allocations: 232.4 kB / 0.7454 GB, free: 9.113 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001738/0.401, allocations: 89.67 kB / 0.7455 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.401, allocations: 0 / 0.7455 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.973e-05/0.401, allocations: 15.92 kB / 0.7455 GB, free: 9.004 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.4012, allocations: 13.39 kB / 0.7455 GB, free: 8.996 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002991/0.4015, allocations: 165.3 kB / 0.7457 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.785e-05/0.4016, allocations: 83.44 kB / 0.7458 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.68e-05/0.4016, allocations: 0 / 0.7458 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.672e-05/0.4016, allocations: 8.5 kB / 0.7458 GB, free: 8.699 MB / 0.5762 GB Notification: Performance of SimCode: time 4.81e-07/0.4016, allocations: 0 / 0.7458 GB, free: 8.699 MB / 0.5762 GB Notification: Performance of Templates: time 0.005651/0.4073, allocations: 2.084 MB / 0.7478 GB, free: 6.617 MB / 0.5762 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (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 & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.562867343425751] Failed to read output from testmodel.py, exit status != 0: 0.4160665590316057 0.43016802099999996 0.030335088000000003 Calling exit ...