Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009024/0.0009024, allocations: 81.86 kB / 20.68 MB, free: 3.82 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.001455/0.001455, allocations: 181 kB / 24.09 MB, free: 420 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.9544/0.9544, allocations: 177.1 MB / 204.5 MB, free: 5.523 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.857/1.857, allocations: 377.9 MB / 0.6239 GB, free: 8.387 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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 0.812 GB, free: 1.488 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.266e-05/1.405e-05, allocations: 2.312 kB / 0.812 GB, free: 1.484 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.0009907/0.001005, allocations: 0.539 MB / 0.8125 GB, free: 0.9648 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001699/0.002704, allocations: 1.639 MB / 0.8141 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.759e-05/0.002741, allocations: 0 / 0.8141 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001812/0.002923, allocations: 65.73 kB / 0.8141 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.859e-05/0.002951, allocations: 31.89 kB / 0.8142 GB, free: 15.21 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.0006143/0.003565, allocations: 288.2 kB / 0.8144 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 6.064e-05/0.003626, allocations: 31.89 kB / 0.8145 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.023e-05/0.003656, allocations: 4.719 kB / 0.8145 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 4.748e-05/0.003704, allocations: 31.89 kB / 0.8145 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.591e-05/0.00375, allocations: 40.48 kB / 0.8146 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.211e-05/0.003762, allocations: 1.656 kB / 0.8146 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004636/0.004225, allocations: 447 kB / 0.815 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.531e-05/0.004271, allocations: 31.86 kB / 0.815 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 1.543e-05/0.004286, allocations: 8.594 kB / 0.815 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003068/0.004593, allocations: 360.2 kB / 0.8154 GB, free: 14 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.004595, allocations: 0 / 0.8154 GB, free: 14 MB / 0.7761 GB Notification: Performance of FrontEnd: time 4.21e-07/0.004595, allocations: 0 / 0.8154 GB, free: 14 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 2.775e-06/0.004598, allocations: 1.156 kB / 0.8154 GB, free: 14 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.0003014/0.004899, allocations: 479.5 kB / 0.8158 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.004936, allocations: 8.031 kB / 0.8158 GB, free: 13.49 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.363e-05/0.004959, allocations: 14.27 kB / 0.8158 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.84e-05/0.005058, allocations: 137 kB / 0.816 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.661e-06/0.005063, allocations: 384 / 0.816 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.91e-06/0.005068, allocations: 384 / 0.816 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.732e-05/0.005116, allocations: 35.36 kB / 0.816 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.759e-06/0.00512, allocations: 192 / 0.816 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.988e-06/0.005124, allocations: 384 / 0.816 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.005128, allocations: 4.562 kB / 0.816 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.634e-06/0.005136, allocations: 4.703 kB / 0.816 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.905e-05/0.005235, allocations: 129.2 kB / 0.8161 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 2.668e-05/0.005261, allocations: 23.91 kB / 0.8162 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.708e-06/0.005271, allocations: 7.688 kB / 0.8162 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.005302, allocations: 9.906 kB / 0.8162 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.784e-05/0.00532, allocations: 37.33 kB / 0.8162 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 6.31e-07/0.00532, allocations: 0 / 0.8162 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 7.893e-05/0.005399, allocations: 41.64 kB / 0.8163 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.122e-05/0.00542, allocations: 52.19 kB / 0.8163 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.005543, allocations: 275.6 kB / 0.8166 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 8.286e-06/0.005552, allocations: 28.08 kB / 0.8166 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.954e-05/0.005601, allocations: 158.8 kB / 0.8167 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 6.953e-06/0.005608, allocations: 0 / 0.8167 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.264e-05/0.005641, allocations: 43.33 kB / 0.8168 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.005747, allocations: 0.4962 MB / 0.8173 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.438e-05/0.005761, allocations: 8 kB / 0.8173 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.047e-05/0.005772, allocations: 8 kB / 0.8173 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.73e-05/0.005809, allocations: 45.53 kB / 0.8173 GB, free: 11.81 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.005811, allocations: 0 / 0.8173 GB, free: 11.81 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 6.747e-05/0.005878, allocations: 85.53 kB / 0.8174 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 9.268e-06/0.005887, allocations: 4 kB / 0.8174 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.005897, allocations: 0 / 0.8174 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.943e-06/0.005904, allocations: 4.5 kB / 0.8174 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.128e-06/0.005913, allocations: 5.281 kB / 0.8174 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.005916, allocations: 3.984 kB / 0.8174 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.755e-05/0.005934, allocations: 15.89 kB / 0.8174 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-06/0.00594, allocations: 0 / 0.8174 GB, free: 11.69 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: 10 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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.485e-05/0.006004, allocations: 159.1 kB / 0.8176 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-06/0.006012, allocations: 11.91 kB / 0.8176 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.865e-05/0.00607, allocations: 57.73 kB / 0.8177 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.006072, allocations: 0 / 0.8177 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.006073, allocations: 0 / 0.8177 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.006076, allocations: 3.938 kB / 0.8177 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.658e-05/0.006143, allocations: 121.2 kB / 0.8178 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-07/0.006144, allocations: 0 / 0.8178 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.585e-06/0.006146, allocations: 0 / 0.8178 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.006148, allocations: 3.984 kB / 0.8178 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.825e-06/0.006151, allocations: 0 / 0.8178 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-07/0.006152, allocations: 2.062 kB / 0.8178 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.006153, allocations: 4 kB / 0.8178 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002635/0.006417, allocations: 80.28 kB / 0.8179 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.031e-05/0.006427, allocations: 15.84 kB / 0.8179 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.734e-06/0.006435, allocations: 3.984 kB / 0.8179 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.033e-06/0.006442, allocations: 0.9375 kB / 0.8179 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-06/0.00645, allocations: 0 / 0.8179 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-06/0.006452, allocations: 0 / 0.8179 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.359e-05/0.006505, allocations: 164.3 kB / 0.818 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of sort global known variables: time 4e-08/0.006505, allocations: 4 kB / 0.818 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001907/0.006696, allocations: 83.8 kB / 0.8181 GB, free: 10.94 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.0003386/0.007035, allocations: 271.3 kB / 0.8184 GB, free: 10.7 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 8.912e-05/0.007124, allocations: 81.8 kB / 0.8185 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.007125, allocations: 1.5 kB / 0.8185 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 6.944e-06/0.007132, allocations: 11.62 kB / 0.8185 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.522e-05/0.007227, allocations: 8 kB / 0.8185 GB, free: 10.58 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001791/0.007406, allocations: 184.5 kB / 0.8187 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.006e-05/0.007436, allocations: 67.33 kB / 0.8187 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.361e-05/0.00745, allocations: 3.984 kB / 0.8187 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.012e-05/0.00748, allocations: 72.55 kB / 0.8188 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of SimCode: time 3.5e-07/0.00748, allocations: 0 / 0.8188 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of Templates: time 0.00368/0.01116, allocations: 2.61 MB / 0.8213 GB, free: 7.609 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.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.796219363808632]