Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 109.2 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002554/0.002554, allocations: 290.7 kB / 303 MB, free: 9.484 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.261/1.261, allocations: 180.9 MB / 0.5261 GB, free: 14.71 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002807/0.002807, allocations: 99.52 kB / 0.7247 GB, free: 40.57 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.1994, allocations: 94.15 MB / 0.8167 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001873/0.2013, allocations: 0.5288 MB / 0.8172 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002609/0.2039, allocations: 1.62 MB / 0.8188 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.328e-05/0.204, allocations: 0 / 0.8188 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002079/0.2042, allocations: 63.84 kB / 0.8188 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.455e-05/0.2042, allocations: 35.88 kB / 0.8189 GB, free: 3.219 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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 2.0.0-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.0009653/0.2052, allocations: 245.5 kB / 0.8191 GB, free: 2.98 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.703e-05/0.2053, allocations: 31.84 kB / 0.8191 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.04e-05/0.2053, allocations: 7.984 kB / 0.8191 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.257e-05/0.2054, allocations: 31.91 kB / 0.8192 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.434e-05/0.2055, allocations: 43.88 kB / 0.8192 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.2055, allocations: 4 kB / 0.8192 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000629/0.2061, allocations: 367.4 kB / 0.8196 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.282e-05/0.2062, allocations: 23.92 kB / 0.8196 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.72e-05/0.2062, allocations: 23.75 kB / 0.8196 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004463/0.2066, allocations: 295.4 kB / 0.8199 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2066, allocations: 4 kB / 0.8199 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.134e-06/0.2067, allocations: 0 / 0.8199 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.893e-06/0.2067, allocations: 4 kB / 0.8199 GB, free: 2.16 MB / 0.5606 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.0005716/0.2072, allocations: 430.5 kB / 0.8203 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.2073, allocations: 12.03 kB / 0.8203 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.161e-05/0.2073, allocations: 34.69 kB / 0.8204 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.365e-05/0.2074, allocations: 12.84 kB / 0.8204 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.2076, allocations: 192.1 kB / 0.8206 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.442e-06/0.2076, allocations: 384 / 0.8206 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.121e-05/0.2076, allocations: 4.375 kB / 0.8206 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.2078, allocations: 49.81 kB / 0.8206 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.2078, allocations: 0 / 0.8206 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.2078, allocations: 0 / 0.8206 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2078, allocations: 0 / 0.8206 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.325e-05/0.2078, allocations: 16 kB / 0.8206 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002424/0.208, allocations: 181.7 kB / 0.8208 GB, free: 1.098 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.528e-05/0.2081, allocations: 30.52 kB / 0.8208 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.83e-05/0.2081, allocations: 16.91 kB / 0.8208 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.881e-05/0.2082, allocations: 8 kB / 0.8209 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.2082, allocations: 34.5 kB / 0.8209 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.2082, allocations: 0 / 0.8209 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.000184/0.2084, allocations: 73.58 kB / 0.821 GB, free: 0.9102 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.2084, allocations: 59.34 kB / 0.821 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.2087, allocations: 211.8 kB / 0.8212 GB, free: 0.625 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.2087, allocations: 25.7 kB / 0.8212 GB, free: 0.5938 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.354e-05/0.2088, allocations: 104.2 kB / 0.8213 GB, free: 500 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.299e-05/0.2088, allocations: 7.953 kB / 0.8213 GB, free: 492 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.805e-05/0.2088, allocations: 29.7 kB / 0.8214 GB, free: 456 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001742/0.209, allocations: 322.8 kB / 0.8217 GB, free: 124 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.448e-05/0.2091, allocations: 59.97 kB / 0.8217 GB, free: 64 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.893e-05/0.2091, allocations: 51.98 kB / 0.8218 GB, free: 12 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/0.2093, allocations: 88.77 kB / 0.8219 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2093, allocations: 0 / 0.8219 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002002/0.2095, allocations: 173.4 kB / 0.822 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.2095, allocations: 8.062 kB / 0.822 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.2095, allocations: 3.984 kB / 0.8221 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.2095, allocations: 4 kB / 0.8221 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.423e-05/0.2095, allocations: 0 / 0.8221 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.2096, allocations: 0 / 0.8221 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.139e-05/0.2096, allocations: 15.78 kB / 0.8221 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.2096, allocations: 7.984 kB / 0.8221 GB, free: 15.71 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: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001925/0.2098, allocations: 133.2 kB / 0.8222 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.642e-05/0.2098, allocations: 11.89 kB / 0.8222 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000126/0.2099, allocations: 66.23 kB / 0.8223 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2099, allocations: 0 / 0.8223 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.2099, allocations: 0 / 0.8223 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.2099, allocations: 0 / 0.8223 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001641/0.2101, allocations: 181.7 kB / 0.8225 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.2101, allocations: 0 / 0.8225 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.104e-06/0.2101, allocations: 7.875 kB / 0.8225 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.2101, allocations: 0 / 0.8225 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-06/0.2101, allocations: 0 / 0.8225 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2101, allocations: 8.016 kB / 0.8225 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.2101, allocations: 4 kB / 0.8225 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.2102, allocations: 85.02 kB / 0.8226 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.18e-05/0.2103, allocations: 89 kB / 0.8226 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.284e-05/0.2103, allocations: 0 / 0.8226 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.256e-05/0.2103, allocations: 0 / 0.8226 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.498e-05/0.2103, allocations: 0 / 0.8226 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.2103, allocations: 4 kB / 0.8226 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001354/0.2105, allocations: 151.4 kB / 0.8228 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.2105, allocations: 0 / 0.8228 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003713/0.2108, allocations: 91.8 kB / 0.8229 GB, free: 14.8 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.000887/0.2117, allocations: 0.7488 MB / 0.8236 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001987/0.2119, allocations: 113.7 kB / 0.8237 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2119, allocations: 0 / 0.8237 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.95e-05/0.2119, allocations: 12 kB / 0.8237 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001506/0.2121, allocations: 7.75 kB / 0.8237 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001921/0.214, allocations: 1.812 MB / 0.8255 GB, free: 12 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.2144, allocations: 0.708 MB / 0.8262 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.061e-05/0.2144, allocations: 0 / 0.8262 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.384e-05/0.2145, allocations: 31.42 kB / 0.8262 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of SimCode: time 6.21e-07/0.2145, allocations: 0 / 0.8262 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02802/0.2425, allocations: 3.909 MB / 0.83 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/8.114, allocations: 10.92 kB / 0.8301 GB, free: 7.434 MB / 0.5762 GB " [Timeout remaining time 652] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.299871465191245] Failed to read output from testmodel.py, exit status != 0: 8.18108261981979 8.194653971 7.985184428 Calling exit ...