Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001002/0.001002, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001002/0.001002, allocations: 161 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.9116/0.9116, allocations: 177.2 MB / 204.2 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.878/1.878, allocations: 377.8 MB / 0.6236 GB, free: 8.555 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 0.8115 GB, free: 1.766 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.92e-05/3.123e-05, allocations: 4.844 kB / 0.8115 GB, free: 1.762 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001281/0.001312, allocations: 0.5341 MB / 0.812 GB, free: 1.246 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001824/0.003136, allocations: 1.647 MB / 0.8136 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.17e-05/0.003178, allocations: 4.656 kB / 0.8136 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.003327, allocations: 21.12 kB / 0.8137 GB, free: 15.56 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.279e-05/0.00335, allocations: 15.86 kB / 0.8137 GB, free: 15.54 MB / 0.7761 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0008286/0.004178, allocations: 273.7 kB / 0.8139 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 7.075e-05/0.004249, allocations: 27.91 kB / 0.814 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.653e-05/0.004285, allocations: 4.656 kB / 0.814 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 4.067e-05/0.004326, allocations: 15.91 kB / 0.814 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 3.832e-05/0.004364, allocations: 17.33 kB / 0.814 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.412e-05/0.004379, allocations: 0 / 0.814 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006202/0.004999, allocations: 455.6 kB / 0.8144 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.005154, allocations: 19.92 kB / 0.8144 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.129e-05/0.005175, allocations: 9.875 kB / 0.8145 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0004123/0.005587, allocations: 355.1 kB / 0.8148 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.005591, allocations: 4 kB / 0.8148 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.042e-06/0.005592, allocations: 0 / 0.8148 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.005597, allocations: 5.812 kB / 0.8148 GB, free: 14.39 MB / 0.7761 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.0003798/0.005977, allocations: 427.9 kB / 0.8152 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.006014, allocations: 12.03 kB / 0.8152 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.169e-05/0.006056, allocations: 16.81 kB / 0.8152 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.006174, allocations: 120.5 kB / 0.8154 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.556e-06/0.006183, allocations: 5.094 kB / 0.8154 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-06/0.006192, allocations: 384 / 0.8154 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.153e-05/0.006263, allocations: 30.78 kB / 0.8154 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.006269, allocations: 0.9062 kB / 0.8154 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.006279, allocations: 4.359 kB / 0.8154 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.006288, allocations: 8.469 kB / 0.8154 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.053e-05/0.006298, allocations: 1.344 kB / 0.8154 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001256/0.006424, allocations: 140.5 kB / 0.8155 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 3.847e-05/0.006462, allocations: 31 kB / 0.8156 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.462e-05/0.006477, allocations: 8.219 kB / 0.8156 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.881e-05/0.006516, allocations: 8.047 kB / 0.8156 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.006536, allocations: 42.77 kB / 0.8156 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.006537, allocations: 0 / 0.8156 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 0.0001257/0.006663, allocations: 38.56 kB / 0.8157 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.905e-05/0.006692, allocations: 59.28 kB / 0.8157 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.006804, allocations: 220.7 kB / 0.8159 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 8.145e-06/0.006812, allocations: 26.48 kB / 0.816 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.198e-05/0.006864, allocations: 146.8 kB / 0.8161 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.186e-05/0.006876, allocations: 9.266 kB / 0.8161 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.468e-05/0.00691, allocations: 31.36 kB / 0.8161 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.007015, allocations: 0.4923 MB / 0.8166 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.121e-05/0.007036, allocations: 16.84 kB / 0.8166 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.259e-05/0.007049, allocations: 8 kB / 0.8166 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.233e-05/0.007091, allocations: 36.92 kB / 0.8167 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.007093, allocations: 0 / 0.8167 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of matching and sorting (n=12) (initialization): time 7.366e-05/0.007166, allocations: 73.53 kB / 0.8167 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.007178, allocations: 4 kB / 0.8167 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.007191, allocations: 1.281 kB / 0.8167 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.007202, allocations: 0 / 0.8167 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.701e-05/0.007219, allocations: 7.984 kB / 0.8168 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.007224, allocations: 5.719 kB / 0.8168 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.825e-05/0.007243, allocations: 3.953 kB / 0.8168 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.00725, allocations: 3.938 kB / 0.8168 GB, free: 12.19 MB / 0.7761 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 7.375e-05/0.007324, allocations: 160.6 kB / 0.8169 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.523e-06/0.007331, allocations: 10.52 kB / 0.8169 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.302e-05/0.007414, allocations: 45.5 kB / 0.817 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.007416, allocations: 0 / 0.817 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.007419, allocations: 3.938 kB / 0.817 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.007421, allocations: 0 / 0.817 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.064e-05/0.007492, allocations: 132.6 kB / 0.8171 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.007494, allocations: 0.5 kB / 0.8171 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.048e-06/0.007498, allocations: 5.031 kB / 0.8171 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.0075, allocations: 7.938 kB / 0.8171 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-06/0.007505, allocations: 0 / 0.8171 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.007506, allocations: 1.438 kB / 0.8171 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.007508, allocations: 0 / 0.8171 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.26e-05/0.007561, allocations: 80.33 kB / 0.8172 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.208e-06/0.00757, allocations: 8.703 kB / 0.8172 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.598e-06/0.007579, allocations: 0 / 0.8172 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.236e-06/0.007588, allocations: 1.344 kB / 0.8172 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.303e-05/0.007601, allocations: 0 / 0.8172 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.007604, allocations: 7.938 kB / 0.8172 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.382e-05/0.007658, allocations: 151.2 kB / 0.8174 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.007658, allocations: 0.875 kB / 0.8174 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002671/0.007925, allocations: 87.8 kB / 0.8174 GB, free: 11.43 MB / 0.7761 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.0004772/0.008402, allocations: 271.7 kB / 0.8177 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001237/0.008526, allocations: 73.25 kB / 0.8178 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.008528, allocations: 0 / 0.8178 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 8.426e-06/0.008536, allocations: 11.69 kB / 0.8178 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001158/0.008652, allocations: 8.859 kB / 0.8178 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002423/0.008894, allocations: 150.6 kB / 0.8179 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.461e-05/0.008929, allocations: 63.28 kB / 0.818 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.936e-05/0.008948, allocations: 0 / 0.818 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.594e-05/0.008964, allocations: 12.5 kB / 0.818 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of SimCode: time 6.01e-07/0.008965, allocations: 0.9375 kB / 0.818 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of Templates: time 0.005025/0.01399, allocations: 2.617 MB / 0.8206 GB, free: 8.211 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.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.907213634811342]