Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.0008875/0.0008875, allocations: 83.59 kB / 20.45 MB, free: 4.121 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.0009103/0.0009103, allocations: 165 kB / 23.82 MB, free: 0.7461 MB / 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.8873/0.8873, allocations: 177.1 MB / 204.2 MB, free: 5.641 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.639/1.639, allocations: 359 MB / 0.6052 GB, free: 10.98 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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 0.787 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.439e-05/1.585e-05, allocations: 6.312 kB / 0.787 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0009257/0.0009415, allocations: 0.5366 MB / 0.7876 GB, free: 11.98 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001526/0.002468, allocations: 1.643 MB / 0.7892 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.714e-05/0.002505, allocations: 5.125 kB / 0.7892 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.002668, allocations: 67.77 kB / 0.7892 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.615e-05/0.002694, allocations: 25.69 kB / 0.7893 GB, free: 10.23 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.0008898/0.003584, allocations: 272.3 kB / 0.7895 GB, free: 9.961 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.000104/0.003688, allocations: 27.91 kB / 0.7896 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 4.35e-05/0.003732, allocations: 5.219 kB / 0.7896 GB, free: 9.93 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 6.341e-05/0.003795, allocations: 23.97 kB / 0.7896 GB, free: 9.906 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 8.171e-05/0.003877, allocations: 40.44 kB / 0.7896 GB, free: 9.867 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.799e-05/0.003895, allocations: 0 / 0.7896 GB, free: 9.867 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006302/0.004525, allocations: 437.9 kB / 0.79 GB, free: 9.441 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.084e-05/0.004576, allocations: 23.92 kB / 0.7901 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.106e-05/0.004597, allocations: 15.92 kB / 0.7901 GB, free: 9.402 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003284/0.004925, allocations: 351 kB / 0.7904 GB, free: 9.059 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.004927, allocations: 0 / 0.7904 GB, free: 9.059 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.92e-07/0.004928, allocations: 0 / 0.7904 GB, free: 9.059 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.004932, allocations: 0 / 0.7904 GB, free: 9.059 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.0003522/0.005284, allocations: 473 kB / 0.7909 GB, free: 8.562 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.005318, allocations: 8.031 kB / 0.7909 GB, free: 8.555 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.7e-05/0.005355, allocations: 12.83 kB / 0.7909 GB, free: 8.543 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.005463, allocations: 128.5 kB / 0.791 GB, free: 8.391 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.445e-06/0.005471, allocations: 4.969 kB / 0.791 GB, free: 8.387 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.646e-06/0.00548, allocations: 9.234 kB / 0.791 GB, free: 8.379 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.434e-05/0.005544, allocations: 30.27 kB / 0.791 GB, free: 8.344 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.00555, allocations: 0.9062 kB / 0.791 GB, free: 8.344 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.273e-06/0.005558, allocations: 384 / 0.791 GB, free: 8.344 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.005565, allocations: 5.75 kB / 0.7911 GB, free: 8.34 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.087e-05/0.005576, allocations: 3.984 kB / 0.7911 GB, free: 8.336 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001345/0.005711, allocations: 156.6 kB / 0.7912 GB, free: 8.148 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 3.44e-05/0.005745, allocations: 27 kB / 0.7912 GB, free: 8.109 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.618e-05/0.005761, allocations: 9.219 kB / 0.7912 GB, free: 8.098 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.005798, allocations: 12.05 kB / 0.7912 GB, free: 8.086 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.005839, allocations: 37.39 kB / 0.7913 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.00584, allocations: 0 / 0.7913 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.0001052/0.005945, allocations: 39.56 kB / 0.7913 GB, free: 7.996 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.676e-05/0.005972, allocations: 59.28 kB / 0.7914 GB, free: 7.926 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.006101, allocations: 260.5 kB / 0.7916 GB, free: 7.656 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 8.356e-06/0.00611, allocations: 25.7 kB / 0.7917 GB, free: 7.625 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.527e-05/0.006165, allocations: 162.8 kB / 0.7918 GB, free: 7.461 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.316e-06/0.006173, allocations: 2.469 kB / 0.7918 GB, free: 7.461 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.685e-05/0.00621, allocations: 43.3 kB / 0.7919 GB, free: 7.41 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.006312, allocations: 0.5001 MB / 0.7923 GB, free: 6.898 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.802e-05/0.00633, allocations: 12 kB / 0.7924 GB, free: 6.887 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.338e-05/0.006344, allocations: 12 kB / 0.7924 GB, free: 6.875 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.288e-05/0.006386, allocations: 46.86 kB / 0.7924 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.006388, allocations: 0.5312 kB / 0.7924 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 7.67e-05/0.006465, allocations: 98.19 kB / 0.7925 GB, free: 6.727 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 9.618e-06/0.006474, allocations: 4 kB / 0.7925 GB, free: 6.723 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.006486, allocations: 4.531 kB / 0.7925 GB, free: 6.719 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.006496, allocations: 0 / 0.7925 GB, free: 6.719 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.228e-05/0.006508, allocations: 5.625 kB / 0.7925 GB, free: 6.715 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.006514, allocations: 3.938 kB / 0.7925 GB, free: 6.711 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.643e-05/0.00653, allocations: 7.953 kB / 0.7925 GB, free: 6.703 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.006536, allocations: 0 / 0.7925 GB, free: 6.703 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: 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 6.554e-05/0.006602, allocations: 161.9 kB / 0.7927 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.738e-06/0.006612, allocations: 15.89 kB / 0.7927 GB, free: 6.52 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.794e-05/0.006679, allocations: 46.88 kB / 0.7927 GB, free: 6.469 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.006681, allocations: 0.9062 kB / 0.7927 GB, free: 6.469 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.006685, allocations: 7.875 kB / 0.7927 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.006687, allocations: 0 / 0.7927 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.437e-05/0.006761, allocations: 150 kB / 0.7929 GB, free: 6.281 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.81e-07/0.006762, allocations: 0 / 0.7929 GB, free: 6.281 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.585e-06/0.006764, allocations: 0 / 0.7929 GB, free: 6.281 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.006766, allocations: 5.094 kB / 0.7929 GB, free: 6.277 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.749e-06/0.006771, allocations: 4 kB / 0.7929 GB, free: 6.273 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.006772, allocations: 0 / 0.7929 GB, free: 6.273 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.006772, allocations: 0 / 0.7929 GB, free: 6.273 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.767e-05/0.00682, allocations: 77.33 kB / 0.793 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 9.568e-06/0.00683, allocations: 11.91 kB / 0.793 GB, free: 6.164 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.536e-06/0.006838, allocations: 0.8438 kB / 0.793 GB, free: 6.164 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.254e-06/0.006845, allocations: 4 kB / 0.793 GB, free: 6.16 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.28e-05/0.006858, allocations: 0.8438 kB / 0.793 GB, free: 6.16 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.006898, allocations: 3.938 kB / 0.793 GB, free: 6.156 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.624e-05/0.006964, allocations: 185.8 kB / 0.7932 GB, free: 5.977 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5.1e-08/0.006964, allocations: 0 / 0.7932 GB, free: 5.977 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002198/0.007184, allocations: 83.8 kB / 0.7933 GB, free: 5.895 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.0003785/0.007562, allocations: 266.1 kB / 0.7935 GB, free: 5.656 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001102/0.007672, allocations: 81.3 kB / 0.7936 GB, free: 5.566 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.007674, allocations: 0 / 0.7936 GB, free: 5.566 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 6.382e-06/0.00768, allocations: 9.781 kB / 0.7936 GB, free: 5.555 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001034/0.007783, allocations: 8 kB / 0.7936 GB, free: 5.547 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002202/0.008004, allocations: 192.5 kB / 0.7938 GB, free: 5.332 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.069e-05/0.008034, allocations: 67.28 kB / 0.7938 GB, free: 5.246 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.359e-05/0.008048, allocations: 0.5 kB / 0.7938 GB, free: 5.246 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.311e-05/0.008061, allocations: 13.03 kB / 0.7939 GB, free: 5.234 MB / 0.7448 GB Notification: Performance of SimCode: time 7.91e-07/0.008062, allocations: 0.9375 kB / 0.7939 GB, free: 5.234 MB / 0.7448 GB Notification: Performance of Templates: time 0.004076/0.01214, allocations: 2.519 MB / 0.7963 GB, free: 2.734 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.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.612484336830676]