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.001353/0.001353, 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.001533/0.001533, allocations: 165 kB / 23.82 MB, free: 0.75 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.9442/0.9442, allocations: 177.1 MB / 204.2 MB, free: 5.59 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.703/1.703, allocations: 359 MB / 0.6052 GB, free: 10.94 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 1.583e-06/1.583e-06, allocations: 0 / 0.7871 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.887e-05/3.046e-05, allocations: 8.156 kB / 0.7871 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001266/0.001296, allocations: 0.5331 MB / 0.7876 GB, free: 11.98 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.00193/0.003227, allocations: 1.644 MB / 0.7892 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.025e-05/0.003277, allocations: 4 kB / 0.7892 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.003471, allocations: 28.41 kB / 0.7892 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.676e-05/0.003498, allocations: 7.984 kB / 0.7892 GB, free: 10.28 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.001099/0.004597, allocations: 265.9 kB / 0.7895 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001004/0.004697, allocations: 27.91 kB / 0.7895 GB, free: 9.996 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 4.709e-05/0.004744, allocations: 0 / 0.7895 GB, free: 9.996 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.056e-05/0.004795, allocations: 13.2 kB / 0.7895 GB, free: 9.984 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.76e-05/0.004842, allocations: 15.98 kB / 0.7895 GB, free: 9.969 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.911e-05/0.004862, allocations: 0 / 0.7895 GB, free: 9.969 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007031/0.005565, allocations: 435.7 kB / 0.7899 GB, free: 9.543 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.814e-05/0.005633, allocations: 20.84 kB / 0.79 GB, free: 9.523 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.706e-05/0.00566, allocations: 4 kB / 0.79 GB, free: 9.52 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004884/0.006148, allocations: 343.7 kB / 0.7903 GB, free: 9.184 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.006152, allocations: 0 / 0.7903 GB, free: 9.184 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.072e-06/0.006153, allocations: 1.594 kB / 0.7903 GB, free: 9.184 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.006161, allocations: 0 / 0.7903 GB, free: 9.184 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.0005095/0.00667, allocations: 435.9 kB / 0.7907 GB, free: 8.723 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.006717, allocations: 8.031 kB / 0.7907 GB, free: 8.715 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.788e-05/0.006765, allocations: 9.891 kB / 0.7907 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.006908, allocations: 126.5 kB / 0.7909 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.006922, allocations: 8.359 kB / 0.7909 GB, free: 8.551 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.046e-05/0.006932, allocations: 7.625 kB / 0.7909 GB, free: 8.547 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/0.007038, allocations: 26.27 kB / 0.7909 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.007046, allocations: 192 / 0.7909 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.007056, allocations: 4.125 kB / 0.7909 GB, free: 8.512 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.007065, allocations: 0 / 0.7909 GB, free: 8.512 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.307e-05/0.007078, allocations: 7.938 kB / 0.7909 GB, free: 8.504 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/0.00724, allocations: 140.6 kB / 0.791 GB, free: 8.332 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.803e-05/0.007288, allocations: 31 kB / 0.7911 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.925e-05/0.007307, allocations: 8.406 kB / 0.7911 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.778e-05/0.007355, allocations: 4.062 kB / 0.7911 GB, free: 8.273 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.007379, allocations: 39.05 kB / 0.7911 GB, free: 8.227 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 1.213e-06/0.007381, allocations: 0 / 0.7911 GB, free: 8.227 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.0001478/0.007528, allocations: 41.64 kB / 0.7912 GB, free: 8.18 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.007565, allocations: 64.88 kB / 0.7912 GB, free: 8.105 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.007695, allocations: 216.3 kB / 0.7914 GB, free: 7.879 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.007706, allocations: 25.7 kB / 0.7915 GB, free: 7.848 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.035e-05/0.007766, allocations: 150.8 kB / 0.7916 GB, free: 7.695 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.332e-05/0.00778, allocations: 4 kB / 0.7916 GB, free: 7.691 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.2e-05/0.007822, allocations: 32.72 kB / 0.7916 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.007956, allocations: 0.4923 MB / 0.7921 GB, free: 7.148 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.52e-05/0.007981, allocations: 8 kB / 0.7921 GB, free: 7.141 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.35e-05/0.007994, allocations: 13.41 kB / 0.7921 GB, free: 7.129 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.061e-05/0.008045, allocations: 35.61 kB / 0.7922 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.008048, allocations: 0 / 0.7922 GB, free: 7.09 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12) (initialization): time 9.317e-05/0.008141, allocations: 73.64 kB / 0.7922 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.008156, allocations: 12.47 kB / 0.7922 GB, free: 7 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.008172, allocations: 1.656 kB / 0.7922 GB, free: 7 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.008186, allocations: 4 kB / 0.7923 GB, free: 6.996 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.717e-05/0.008203, allocations: 3.938 kB / 0.7923 GB, free: 6.992 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.00821, allocations: 0 / 0.7923 GB, free: 6.992 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.278e-05/0.008232, allocations: 12.83 kB / 0.7923 GB, free: 6.98 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.00824, allocations: 0 / 0.7923 GB, free: 6.98 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.239e-05/0.008333, allocations: 157.1 kB / 0.7924 GB, free: 6.816 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.746e-06/0.008341, allocations: 12.47 kB / 0.7924 GB, free: 6.805 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.008449, allocations: 42.64 kB / 0.7925 GB, free: 6.758 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.008452, allocations: 0 / 0.7925 GB, free: 6.758 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.008459, allocations: 7.922 kB / 0.7925 GB, free: 6.75 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.008464, allocations: 4.547 kB / 0.7925 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.802e-05/0.008552, allocations: 133.2 kB / 0.7926 GB, free: 6.582 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.008554, allocations: 0 / 0.7926 GB, free: 6.582 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.292e-06/0.00856, allocations: 1.375 kB / 0.7926 GB, free: 6.582 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.008564, allocations: 4 kB / 0.7926 GB, free: 6.578 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.008572, allocations: 3.938 kB / 0.7926 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.008574, allocations: 1.156 kB / 0.7926 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.008575, allocations: 0 / 0.7926 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.683e-05/0.008642, allocations: 76.33 kB / 0.7927 GB, free: 6.477 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.139e-05/0.008654, allocations: 8.891 kB / 0.7927 GB, free: 6.469 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.008664, allocations: 0 / 0.7927 GB, free: 6.469 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.015e-06/0.008672, allocations: 4 kB / 0.7927 GB, free: 6.465 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.881e-05/0.008691, allocations: 4.75 kB / 0.7927 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-06/0.008695, allocations: 3.984 kB / 0.7927 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.002e-05/0.008755, allocations: 152.1 kB / 0.7929 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.008755, allocations: 0 / 0.7929 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003231/0.009078, allocations: 85.14 kB / 0.7929 GB, free: 6.227 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.0005841/0.009662, allocations: 272.2 kB / 0.7932 GB, free: 5.984 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001679/0.00983, allocations: 69.31 kB / 0.7933 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.009833, allocations: 0 / 0.7933 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.018e-05/0.009843, allocations: 11.69 kB / 0.7933 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.009974, allocations: 3.438 kB / 0.7933 GB, free: 5.891 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002929/0.01027, allocations: 158.4 kB / 0.7934 GB, free: 5.707 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.848e-05/0.01031, allocations: 59.34 kB / 0.7935 GB, free: 5.629 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.978e-05/0.01032, allocations: 0 / 0.7935 GB, free: 5.629 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.982e-05/0.01034, allocations: 12.5 kB / 0.7935 GB, free: 5.617 MB / 0.7448 GB Notification: Performance of SimCode: time 1.283e-06/0.01035, allocations: 0 / 0.7935 GB, free: 5.617 MB / 0.7448 GB Notification: Performance of Templates: time 0.005397/0.01574, allocations: 2.52 MB / 0.796 GB, free: 3.121 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.744870034046471]