Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.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.0009519/0.0009519, allocations: 71.75 kB / 20.97 MB, free: 3.582 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.0008926/0.0008926, allocations: 169 kB / 24.28 MB, free: 280 kB / 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.9865/0.9865, allocations: 177.1 MB / 204.6 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.764/1.764, allocations: 359 MB / 0.6055 GB, free: 10.99 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 0.787 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.989e-05/2.201e-05, allocations: 6.25 kB / 0.787 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001477/0.001499, allocations: 0.5295 MB / 0.7876 GB, free: 12.3 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002339/0.003838, allocations: 1.648 MB / 0.7892 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.729e-05/0.003886, allocations: 3.938 kB / 0.7892 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.004045, allocations: 16.55 kB / 0.7892 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.649e-05/0.004071, allocations: 13.08 kB / 0.7892 GB, free: 10.61 MB / 0.7448 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/Buildings 11.1.2-maint.11.x/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.0008856/0.004957, allocations: 264.4 kB / 0.7895 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 7.726e-05/0.005034, allocations: 24.83 kB / 0.7895 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 4.429e-05/0.005078, allocations: 7.969 kB / 0.7895 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 4.702e-05/0.005125, allocations: 11.98 kB / 0.7895 GB, free: 10.31 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.687e-05/0.005172, allocations: 16.58 kB / 0.7895 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.559e-05/0.005188, allocations: 0.5938 kB / 0.7895 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006636/0.005851, allocations: 428.8 kB / 0.7899 GB, free: 9.879 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.598e-05/0.005907, allocations: 19.92 kB / 0.7899 GB, free: 9.859 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.323e-05/0.005931, allocations: 7.938 kB / 0.79 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004532/0.006384, allocations: 339.1 kB / 0.7903 GB, free: 9.52 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.006386, allocations: 1.531 kB / 0.7903 GB, free: 9.52 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.42e-07/0.006387, allocations: 0 / 0.7903 GB, free: 9.52 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.006391, allocations: 0 / 0.7903 GB, free: 9.52 MB / 0.7448 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.0004279/0.006819, allocations: 431.9 kB / 0.7907 GB, free: 9.062 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.006862, allocations: 13.62 kB / 0.7907 GB, free: 9.051 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.782e-05/0.00691, allocations: 12.89 kB / 0.7907 GB, free: 9.039 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/0.007069, allocations: 139.5 kB / 0.7908 GB, free: 8.879 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.007079, allocations: 384 / 0.7908 GB, free: 8.879 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-06/0.007089, allocations: 384 / 0.7908 GB, free: 8.879 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.264e-05/0.007171, allocations: 37.64 kB / 0.7909 GB, free: 8.84 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.007178, allocations: 192 / 0.7909 GB, free: 8.84 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.007189, allocations: 4.125 kB / 0.7909 GB, free: 8.836 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.007197, allocations: 0 / 0.7909 GB, free: 8.836 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.595e-05/0.007213, allocations: 3.984 kB / 0.7909 GB, free: 8.832 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.007376, allocations: 140.6 kB / 0.791 GB, free: 8.66 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.201e-05/0.007418, allocations: 23.06 kB / 0.791 GB, free: 8.625 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.893e-05/0.007437, allocations: 7.688 kB / 0.7911 GB, free: 8.613 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.535e-05/0.007483, allocations: 12.7 kB / 0.7911 GB, free: 8.602 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.007512, allocations: 37.33 kB / 0.7911 GB, free: 8.555 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 2.434e-06/0.007515, allocations: 4.547 kB / 0.7911 GB, free: 8.551 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.0001354/0.00765, allocations: 42.38 kB / 0.7911 GB, free: 8.504 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.007687, allocations: 56.56 kB / 0.7912 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.007844, allocations: 221.8 kB / 0.7914 GB, free: 8.203 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.153e-05/0.007855, allocations: 29.7 kB / 0.7914 GB, free: 8.168 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.523e-05/0.00792, allocations: 143.5 kB / 0.7916 GB, free: 8.023 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.055e-05/0.007931, allocations: 0 / 0.7916 GB, free: 8.023 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.558e-05/0.007977, allocations: 36.48 kB / 0.7916 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.00812, allocations: 0.4923 MB / 0.7921 GB, free: 7.477 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.403e-05/0.008144, allocations: 12 kB / 0.7921 GB, free: 7.465 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.79e-05/0.008162, allocations: 12.75 kB / 0.7921 GB, free: 7.453 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.15e-05/0.008214, allocations: 31.69 kB / 0.7921 GB, free: 7.418 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.008216, allocations: 0.6562 kB / 0.7921 GB, free: 7.418 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001002/0.008316, allocations: 73.64 kB / 0.7922 GB, free: 7.34 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.00833, allocations: 5.219 kB / 0.7922 GB, free: 7.336 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.008344, allocations: 3.938 kB / 0.7922 GB, free: 7.332 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.008358, allocations: 0 / 0.7922 GB, free: 7.332 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.328e-05/0.008372, allocations: 8.656 kB / 0.7922 GB, free: 7.324 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.008378, allocations: 3.984 kB / 0.7922 GB, free: 7.32 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.169e-05/0.0084, allocations: 5.172 kB / 0.7922 GB, free: 7.316 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.008409, allocations: 4 kB / 0.7922 GB, free: 7.312 MB / 0.7448 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 9.331e-05/0.008503, allocations: 162.7 kB / 0.7924 GB, free: 7.145 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.113e-05/0.008514, allocations: 7.953 kB / 0.7924 GB, free: 7.137 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.896e-05/0.008603, allocations: 41.5 kB / 0.7924 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.008605, allocations: 0 / 0.7924 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.008609, allocations: 3.938 kB / 0.7925 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.008612, allocations: 2.781 kB / 0.7925 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.594e-05/0.008708, allocations: 136.6 kB / 0.7926 GB, free: 6.918 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.00871, allocations: 4 kB / 0.7926 GB, free: 6.914 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.607e-06/0.008713, allocations: 0 / 0.7926 GB, free: 6.914 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.008715, allocations: 0 / 0.7926 GB, free: 6.914 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.00872, allocations: 0 / 0.7926 GB, free: 6.914 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.008721, allocations: 0 / 0.7926 GB, free: 6.914 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.008725, allocations: 4 kB / 0.7926 GB, free: 6.91 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.766e-05/0.008792, allocations: 81.73 kB / 0.7927 GB, free: 6.809 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.302e-05/0.008805, allocations: 15.89 kB / 0.7927 GB, free: 6.793 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.008816, allocations: 0 / 0.7927 GB, free: 6.793 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.086e-05/0.008827, allocations: 0.5 kB / 0.7927 GB, free: 6.793 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.008846, allocations: 8.5 kB / 0.7927 GB, free: 6.785 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.008848, allocations: 0 / 0.7927 GB, free: 6.785 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.651e-05/0.008925, allocations: 154.8 kB / 0.7928 GB, free: 6.637 MB / 0.7448 GB Notification: Performance of sort global known variables: time 9e-08/0.008925, allocations: 0 / 0.7928 GB, free: 6.637 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003367/0.009262, allocations: 83.8 kB / 0.7929 GB, free: 6.555 MB / 0.7448 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.0005404/0.009802, allocations: 260.1 kB / 0.7932 GB, free: 6.32 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001361/0.009938, allocations: 69.89 kB / 0.7932 GB, free: 6.242 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.00994, allocations: 1.125 kB / 0.7932 GB, free: 6.242 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.043e-05/0.00995, allocations: 15.62 kB / 0.7933 GB, free: 6.223 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000154/0.0101, allocations: 0.9375 kB / 0.7933 GB, free: 6.223 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002723/0.01038, allocations: 158.4 kB / 0.7934 GB, free: 6.039 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.89e-05/0.01042, allocations: 60.19 kB / 0.7935 GB, free: 5.961 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.139e-05/0.01044, allocations: 4 kB / 0.7935 GB, free: 5.957 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.624e-05/0.01045, allocations: 9.5 kB / 0.7935 GB, free: 5.949 MB / 0.7448 GB Notification: Performance of SimCode: time 6.21e-07/0.01045, allocations: 0 / 0.7935 GB, free: 5.949 MB / 0.7448 GB Notification: Performance of Templates: time 0.005134/0.01559, allocations: 2.126 MB / 0.7956 GB, free: 3.844 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.943422197829932]