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.002015/0.002015, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.001534/0.001534, allocations: 161.7 kB / 23.54 MB, free: 0.8906 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 1.457/1.457, allocations: 177.1 MB / 203.9 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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 2.871/2.871, allocations: 377.8 MB / 0.6232 GB, free: 8.551 MB / 0.5886 GB " [Timeout remaining time 177] 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.653e-06/1.653e-06, allocations: 0 / 0.8108 GB, free: 2.16 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.475e-05/2.64e-05, allocations: 3.406 kB / 0.8108 GB, free: 2.156 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001625/0.001652, allocations: 0.5292 MB / 0.8113 GB, free: 1.645 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.003042/0.004694, allocations: 1.616 MB / 0.8128 GB, free: 12 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.038e-05/0.004734, allocations: 0 / 0.8128 GB, free: 12 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.004971, allocations: 69.73 kB / 0.8129 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 4.396e-05/0.005014, allocations: 23.97 kB / 0.8129 GB, free: 15.92 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.001102/0.006117, allocations: 284.4 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 8.611e-05/0.006203, allocations: 37.25 kB / 0.8132 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.098e-05/0.006234, allocations: 0 / 0.8132 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 5.883e-05/0.006293, allocations: 23.95 kB / 0.8133 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 8.144e-05/0.006374, allocations: 46.05 kB / 0.8133 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.439e-05/0.006388, allocations: 0 / 0.8133 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008999/0.007288, allocations: 451 kB / 0.8137 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.497e-05/0.007353, allocations: 31.92 kB / 0.8138 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.284e-05/0.007386, allocations: 8.469 kB / 0.8138 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0006284/0.008015, allocations: 367.7 kB / 0.8141 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.008017, allocations: 0 / 0.8141 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.353e-06/0.008019, allocations: 0.5312 kB / 0.8141 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.008023, allocations: 0 / 0.8141 GB, free: 14.7 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.0005376/0.00856, allocations: 359 kB / 0.8145 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.008613, allocations: 12.03 kB / 0.8145 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.723e-05/0.00866, allocations: 8.891 kB / 0.8145 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001794/0.008839, allocations: 134.1 kB / 0.8146 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.00885, allocations: 0.9062 kB / 0.8146 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.008861, allocations: 9.688 kB / 0.8146 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.008968, allocations: 42.25 kB / 0.8147 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.008978, allocations: 192 / 0.8147 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.864e-06/0.008986, allocations: 1.531 kB / 0.8147 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.008992, allocations: 3.938 kB / 0.8147 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.007e-05/0.009033, allocations: 27.91 kB / 0.8147 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001984/0.009231, allocations: 138.6 kB / 0.8148 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 6.102e-05/0.009292, allocations: 26.58 kB / 0.8149 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.005e-05/0.009322, allocations: 16.91 kB / 0.8149 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.009359, allocations: 4 kB / 0.8149 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.009395, allocations: 35.56 kB / 0.8149 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.009396, allocations: 0 / 0.8149 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1): time 0.0002031/0.009599, allocations: 70.25 kB / 0.815 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.009646, allocations: 60.31 kB / 0.815 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000249/0.009895, allocations: 212.3 kB / 0.8152 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.009917, allocations: 25.7 kB / 0.8153 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.894e-05/0.01001, allocations: 104.9 kB / 0.8154 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.54e-05/0.01002, allocations: 7.984 kB / 0.8154 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-05/0.01007, allocations: 31.23 kB / 0.8154 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001904/0.01026, allocations: 326.8 kB / 0.8157 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.31e-05/0.01034, allocations: 51.97 kB / 0.8158 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.911e-05/0.01041, allocations: 51.98 kB / 0.8158 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001425/0.01056, allocations: 97.77 kB / 0.8159 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.01056, allocations: 0 / 0.8159 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002419/0.0108, allocations: 171.5 kB / 0.8161 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.01082, allocations: 6.062 kB / 0.8161 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.01083, allocations: 0 / 0.8161 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.01085, allocations: 4 kB / 0.8161 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.341e-05/0.01086, allocations: 0 / 0.8161 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.01087, allocations: 3.938 kB / 0.8161 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.661e-05/0.01091, allocations: 14.17 kB / 0.8161 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.01092, allocations: 3.984 kB / 0.8161 GB, free: 12.53 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 (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 0.0001846/0.01111, allocations: 125.8 kB / 0.8162 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.968e-05/0.01113, allocations: 11.91 kB / 0.8162 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.01126, allocations: 70.61 kB / 0.8163 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.01126, allocations: 0 / 0.8163 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.01127, allocations: 4.469 kB / 0.8163 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.01127, allocations: 1.938 kB / 0.8163 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001527/0.01142, allocations: 133.3 kB / 0.8164 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.01143, allocations: 0 / 0.8164 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.272e-06/0.01143, allocations: 0 / 0.8164 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.01143, allocations: 0 / 0.8164 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/0.01144, allocations: 4.5 kB / 0.8164 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.01144, allocations: 0 / 0.8164 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01144, allocations: 0.5938 kB / 0.8164 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001202/0.01156, allocations: 85.66 kB / 0.8165 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.148e-05/0.01158, allocations: 12.56 kB / 0.8165 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.0116, allocations: 4 kB / 0.8165 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.918e-05/0.01162, allocations: 7.344 kB / 0.8165 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.577e-05/0.01164, allocations: 3.938 kB / 0.8165 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.01164, allocations: 3.938 kB / 0.8166 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001574/0.0118, allocations: 151.1 kB / 0.8167 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.0118, allocations: 0 / 0.8167 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003971/0.0122, allocations: 91.8 kB / 0.8168 GB, free: 11.78 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.0007163/0.01291, allocations: 254.6 kB / 0.817 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002189/0.01313, allocations: 113.7 kB / 0.8171 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.01313, allocations: 0.9375 kB / 0.8171 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.357e-05/0.01316, allocations: 12 kB / 0.8171 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001707/0.01333, allocations: 6.812 kB / 0.8172 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004071/0.01373, allocations: 217.2 kB / 0.8174 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001072/0.01384, allocations: 93.42 kB / 0.8174 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 1.869e-05/0.01386, allocations: 3.938 kB / 0.8175 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.558e-05/0.01389, allocations: 8.5 kB / 0.8175 GB, free: 11.06 MB / 0.7761 GB Notification: Performance of SimCode: time 5.51e-07/0.01389, allocations: 1.031 kB / 0.8175 GB, free: 11.06 MB / 0.7761 GB Notification: Performance of Templates: time 0.00667/0.02056, allocations: 2.215 MB / 0.8196 GB, free: 8.855 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.7272832558956]