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.001189/0.001189, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.004308/0.004308, allocations: 169 kB / 24.28 MB, free: 276 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.9223/0.9223, allocations: 177.1 MB / 204.6 MB, free: 5.625 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.749/1.749, allocations: 359 MB / 0.6055 GB, free: 11.02 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.392e-06/1.392e-06, allocations: 0 / 0.787 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.687e-05/1.826e-05, allocations: 2.312 kB / 0.7871 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001029/0.001048, allocations: 0.5297 MB / 0.7876 GB, free: 12.34 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001642/0.00269, allocations: 1.647 MB / 0.7892 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.828e-05/0.002728, allocations: 0 / 0.7892 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.002905, allocations: 61.88 kB / 0.7892 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.83e-05/0.002933, allocations: 31.94 kB / 0.7893 GB, free: 10.59 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.0007396/0.003673, allocations: 268.4 kB / 0.7895 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 6.808e-05/0.003741, allocations: 32.59 kB / 0.7896 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.539e-05/0.003776, allocations: 0 / 0.7896 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 4.473e-05/0.003821, allocations: 28.86 kB / 0.7896 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.468e-05/0.003876, allocations: 40.61 kB / 0.7896 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.003889, allocations: 0 / 0.7896 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004425/0.004331, allocations: 432.7 kB / 0.79 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.084e-05/0.004382, allocations: 31.92 kB / 0.7901 GB, free: 9.777 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 1.994e-05/0.004402, allocations: 7.938 kB / 0.7901 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003322/0.004734, allocations: 351 kB / 0.7904 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.004736, allocations: 1.594 kB / 0.7904 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.41e-07/0.004737, allocations: 0 / 0.7904 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.004741, allocations: 0 / 0.7904 GB, free: 9.426 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.0003429/0.005084, allocations: 467.6 kB / 0.7909 GB, free: 8.934 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.005119, allocations: 8.688 kB / 0.7909 GB, free: 8.926 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.808e-05/0.005157, allocations: 12.89 kB / 0.7909 GB, free: 8.914 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.00528, allocations: 143.8 kB / 0.791 GB, free: 8.75 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.735e-06/0.005288, allocations: 384 / 0.791 GB, free: 8.75 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-06/0.005297, allocations: 4.312 kB / 0.791 GB, free: 8.746 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.149e-05/0.005369, allocations: 34.27 kB / 0.791 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.511e-06/0.005374, allocations: 192 / 0.791 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.904e-06/0.005382, allocations: 384 / 0.791 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.00539, allocations: 3.938 kB / 0.7911 GB, free: 8.703 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.266e-05/0.005403, allocations: 7.984 kB / 0.7911 GB, free: 8.695 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001329/0.005536, allocations: 152.6 kB / 0.7912 GB, free: 8.512 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 3.846e-05/0.005574, allocations: 23.78 kB / 0.7912 GB, free: 8.477 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.649e-05/0.005591, allocations: 12.16 kB / 0.7912 GB, free: 8.461 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.957e-05/0.00563, allocations: 12.05 kB / 0.7913 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.00565, allocations: 34.77 kB / 0.7913 GB, free: 8.406 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.005651, allocations: 0 / 0.7913 GB, free: 8.406 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.0001116/0.005763, allocations: 45.64 kB / 0.7913 GB, free: 8.355 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.643e-05/0.005789, allocations: 56.5 kB / 0.7914 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001353/0.005924, allocations: 260.5 kB / 0.7916 GB, free: 8.02 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 8.285e-06/0.005933, allocations: 29.64 kB / 0.7917 GB, free: 7.984 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.295e-05/0.005986, allocations: 155.5 kB / 0.7918 GB, free: 7.828 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.036e-05/0.005996, allocations: 3.984 kB / 0.7918 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.00603, allocations: 40.03 kB / 0.7918 GB, free: 7.777 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.006134, allocations: 0.4975 MB / 0.7923 GB, free: 7.27 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.152e-05/0.006155, allocations: 19.92 kB / 0.7924 GB, free: 7.25 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.304e-05/0.006168, allocations: 12 kB / 0.7924 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.288e-05/0.006211, allocations: 42.73 kB / 0.7924 GB, free: 7.195 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.006213, allocations: 0.6562 kB / 0.7924 GB, free: 7.195 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 7.579e-05/0.006289, allocations: 94.88 kB / 0.7925 GB, free: 7.098 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.0063, allocations: 4 kB / 0.7925 GB, free: 7.094 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.006313, allocations: 4 kB / 0.7925 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.006324, allocations: 0 / 0.7925 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.034e-05/0.006334, allocations: 0.5625 kB / 0.7925 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.00634, allocations: 4.5 kB / 0.7925 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.69e-05/0.006357, allocations: 11.94 kB / 0.7925 GB, free: 7.074 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.006362, allocations: 5.156 kB / 0.7925 GB, free: 7.07 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.7e-05/0.006429, allocations: 156.6 kB / 0.7927 GB, free: 6.906 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-06/0.006437, allocations: 16.56 kB / 0.7927 GB, free: 6.891 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.864e-05/0.006515, allocations: 47.53 kB / 0.7927 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.006517, allocations: 0 / 0.7927 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.006521, allocations: 3.938 kB / 0.7927 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.006524, allocations: 1.25 kB / 0.7927 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.708e-05/0.006601, allocations: 148.6 kB / 0.7929 GB, free: 6.656 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.006602, allocations: 0 / 0.7929 GB, free: 6.656 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.735e-06/0.006604, allocations: 0 / 0.7929 GB, free: 6.656 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.006606, allocations: 4.531 kB / 0.7929 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.509e-06/0.006611, allocations: 0.5312 kB / 0.7929 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.006612, allocations: 3.984 kB / 0.7929 GB, free: 6.648 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.006614, allocations: 4.875 kB / 0.7929 GB, free: 6.645 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.116e-05/0.006665, allocations: 81.09 kB / 0.793 GB, free: 6.543 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 9.248e-06/0.006674, allocations: 11.91 kB / 0.793 GB, free: 6.531 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.147e-06/0.006683, allocations: 0.8125 kB / 0.793 GB, free: 6.531 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.035e-06/0.006692, allocations: 7.984 kB / 0.793 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.224e-05/0.006704, allocations: 0 / 0.793 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.006707, allocations: 4.875 kB / 0.793 GB, free: 6.52 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.54e-05/0.006772, allocations: 176.1 kB / 0.7932 GB, free: 6.348 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.006772, allocations: 1.219 kB / 0.7932 GB, free: 6.348 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002025/0.006975, allocations: 87.8 kB / 0.7932 GB, free: 6.262 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.0003858/0.007361, allocations: 260.1 kB / 0.7935 GB, free: 6.027 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001213/0.007482, allocations: 85.3 kB / 0.7936 GB, free: 5.934 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.007483, allocations: 0 / 0.7936 GB, free: 5.934 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 6.172e-06/0.007489, allocations: 14.97 kB / 0.7936 GB, free: 5.918 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001081/0.007598, allocations: 8 kB / 0.7936 GB, free: 5.91 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002378/0.007835, allocations: 187.8 kB / 0.7938 GB, free: 5.699 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.246e-05/0.007868, allocations: 67.33 kB / 0.7938 GB, free: 5.613 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.491e-05/0.007883, allocations: 0 / 0.7938 GB, free: 5.613 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.567e-05/0.007898, allocations: 12.5 kB / 0.7939 GB, free: 5.602 MB / 0.7448 GB Notification: Performance of SimCode: time 7.62e-07/0.007899, allocations: 0 / 0.7939 GB, free: 5.602 MB / 0.7448 GB Notification: Performance of Templates: time 0.003684/0.01158, allocations: 2.129 MB / 0.7959 GB, free: 3.496 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.877329434035346]