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.001264/0.001264, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001416/0.001416, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.002742/0.002742, allocations: 301.3 kB / 313.5 MB, free: 2.625 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.282/1.282, allocations: 180.6 MB / 0.5377 GB, free: 14.57 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 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.00292/0.00292, allocations: 100.5 kB / 0.7402 GB, free: 28.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2093, allocations: 95.38 MB / 0.8334 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001925/0.2112, allocations: 0.5173 MB / 0.8339 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002665/0.2139, allocations: 1.613 MB / 0.8355 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.433e-05/0.2139, allocations: 0 / 0.8355 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.2141, allocations: 19.91 kB / 0.8355 GB, free: 6.199 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.766e-05/0.2141, allocations: 7.984 kB / 0.8355 GB, free: 6.191 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.001048/0.2151, allocations: 271.2 kB / 0.8357 GB, free: 5.926 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.086e-05/0.2152, allocations: 15.98 kB / 0.8358 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.822e-05/0.2152, allocations: 4 kB / 0.8358 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.802e-05/0.2153, allocations: 23.86 kB / 0.8358 GB, free: 5.883 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.776e-05/0.2153, allocations: 15.92 kB / 0.8358 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.2153, allocations: 0 / 0.8358 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009087/0.2162, allocations: 455.2 kB / 0.8362 GB, free: 5.422 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.957e-05/0.2163, allocations: 23.92 kB / 0.8363 GB, free: 5.398 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.751e-05/0.2163, allocations: 11.88 kB / 0.8363 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005076/0.2168, allocations: 291.4 kB / 0.8365 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.2168, allocations: 0 / 0.8365 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.432e-06/0.2168, allocations: 0 / 0.8365 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.2169, allocations: 4 kB / 0.8365 GB, free: 5.098 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.0004977/0.2173, allocations: 341.6 kB / 0.8369 GB, free: 4.734 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.2174, allocations: 9.344 kB / 0.8369 GB, free: 4.727 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.527e-05/0.2174, allocations: 4.172 kB / 0.8369 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.085e-05/0.2174, allocations: 38.69 kB / 0.8369 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.019e-05/0.2175, allocations: 8.891 kB / 0.8369 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.2176, allocations: 122.5 kB / 0.837 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.34e-06/0.2176, allocations: 384 / 0.837 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.2177, allocations: 384 / 0.837 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.806e-05/0.2178, allocations: 45.62 kB / 0.8371 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.2178, allocations: 0 / 0.8371 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.2178, allocations: 8 kB / 0.8371 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.2178, allocations: 7.875 kB / 0.8371 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.17e-05/0.2178, allocations: 15.98 kB / 0.8371 GB, free: 4.441 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001875/0.218, allocations: 148.7 kB / 0.8373 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.018e-05/0.218, allocations: 22.58 kB / 0.8373 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.928e-05/0.2181, allocations: 16.91 kB / 0.8373 GB, free: 4.203 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.717e-05/0.2181, allocations: 7.938 kB / 0.8373 GB, free: 4.195 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.2181, allocations: 34.56 kB / 0.8373 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.2181, allocations: 0 / 0.8373 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001701/0.2183, allocations: 69.53 kB / 0.8374 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.2183, allocations: 51.41 kB / 0.8375 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.2185, allocations: 169.1 kB / 0.8376 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.2185, allocations: 25.7 kB / 0.8376 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.992e-05/0.2186, allocations: 96.08 kB / 0.8377 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.926e-06/0.2186, allocations: 4 kB / 0.8377 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.2187, allocations: 29.7 kB / 0.8378 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001997/0.2189, allocations: 314.8 kB / 0.8381 GB, free: 3.359 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.675e-05/0.2189, allocations: 39.98 kB / 0.8381 GB, free: 3.32 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.338e-05/0.219, allocations: 47.91 kB / 0.8382 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.036e-05/0.2191, allocations: 68.94 kB / 0.8382 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.2191, allocations: 4 kB / 0.8382 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001809/0.2192, allocations: 129.5 kB / 0.8383 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.2193, allocations: 4 kB / 0.8383 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.2193, allocations: 4 kB / 0.8384 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.2193, allocations: 0 / 0.8384 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.4e-05/0.2193, allocations: 0 / 0.8384 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.2193, allocations: 0 / 0.8384 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.386e-05/0.2193, allocations: 11.88 kB / 0.8384 GB, free: 3.047 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.2193, allocations: 4 kB / 0.8384 GB, free: 3.043 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.0001892/0.2195, allocations: 130.5 kB / 0.8385 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.485e-05/0.2195, allocations: 7.891 kB / 0.8385 GB, free: 2.898 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.2197, allocations: 61.44 kB / 0.8386 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2197, allocations: 0 / 0.8386 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2197, allocations: 0 / 0.8386 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.2197, allocations: 0 / 0.8386 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001514/0.2198, allocations: 144.7 kB / 0.8387 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.2198, allocations: 3.938 kB / 0.8387 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.851e-06/0.2198, allocations: 0 / 0.8387 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2198, allocations: 0 / 0.8387 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.2198, allocations: 0 / 0.8387 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2198, allocations: 4.031 kB / 0.8387 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2198, allocations: 0 / 0.8387 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001013/0.22, allocations: 89 kB / 0.8388 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.305e-05/0.22, allocations: 7.891 kB / 0.8388 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.22, allocations: 0 / 0.8388 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.218e-05/0.22, allocations: 4 kB / 0.8388 GB, free: 2.52 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.423e-05/0.22, allocations: 0 / 0.8388 GB, free: 2.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.22, allocations: 0 / 0.8388 GB, free: 2.52 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001132/0.2201, allocations: 135 kB / 0.8389 GB, free: 2.391 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2201, allocations: 0 / 0.8389 GB, free: 2.391 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003682/0.2205, allocations: 91.83 kB / 0.839 GB, free: 2.301 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.0009976/0.2215, allocations: 0.7533 MB / 0.8398 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001963/0.2217, allocations: 97.59 kB / 0.8398 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2217, allocations: 4.094 kB / 0.8398 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.655e-05/0.2217, allocations: 8 kB / 0.8399 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001451/0.2218, allocations: 4 kB / 0.8399 GB, free: 1.43 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.2235, allocations: 1.543 MB / 0.8414 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.84e-05/0.2236, allocations: 79.27 kB / 0.8414 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 2.158e-05/0.2236, allocations: 0 / 0.8414 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.104e-05/0.2237, allocations: 23.42 kB / 0.8415 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of SimCode: time 4.51e-07/0.2237, allocations: 0 / 0.8415 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02601/0.2497, allocations: 3.678 MB / 0.8451 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.69, allocations: 14.95 kB / 0.8451 GB, free: 12.15 MB / 0.5919 GB " [Timeout remaining time 648] (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: 16.09411883202847] Failed to read output from testmodel.py, exit status != 0: 11.857338031986728 11.889408574 11.666559092 Calling exit ...