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.0009633/0.0009633, allocations: 87.58 kB / 20.45 MB, free: 4.113 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.001017/0.001017, allocations: 161 kB / 23.82 MB, free: 0.7461 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.9019/0.9019, allocations: 177.1 MB / 204.2 MB, free: 5.637 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.755/1.755, allocations: 359 MB / 0.6052 GB, free: 10.95 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.753e-06/1.753e-06, allocations: 0 / 0.7871 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.901e-05/3.076e-05, allocations: 2.312 kB / 0.7871 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001904/0.001935, allocations: 0.5381 MB / 0.7876 GB, free: 11.96 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002568/0.004503, allocations: 1.648 MB / 0.7892 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.428e-05/0.004547, allocations: 0 / 0.7892 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.00473, allocations: 23.84 kB / 0.7892 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.755e-05/0.004757, allocations: 13.23 kB / 0.7892 GB, free: 10.26 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.0009158/0.005673, allocations: 260.5 kB / 0.7895 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 7.213e-05/0.005745, allocations: 19.98 kB / 0.7895 GB, free: 9.988 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 4.619e-05/0.005792, allocations: 13.05 kB / 0.7895 GB, free: 9.977 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.119e-05/0.005843, allocations: 11.98 kB / 0.7895 GB, free: 9.965 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.802e-05/0.005891, allocations: 16.59 kB / 0.7895 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.005908, allocations: 0 / 0.7895 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005354/0.006443, allocations: 432.4 kB / 0.7899 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.249e-05/0.006495, allocations: 16 kB / 0.79 GB, free: 9.512 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.364e-05/0.006519, allocations: 15.91 kB / 0.79 GB, free: 9.496 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003535/0.006873, allocations: 332.1 kB / 0.7903 GB, free: 9.172 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.006875, allocations: 3.938 kB / 0.7903 GB, free: 9.168 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.393e-06/0.006876, allocations: 0 / 0.7903 GB, free: 9.168 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.006883, allocations: 5.109 kB / 0.7903 GB, free: 9.164 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.0003995/0.007282, allocations: 431.9 kB / 0.7907 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.007327, allocations: 13.34 kB / 0.7907 GB, free: 8.695 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.35e-05/0.007371, allocations: 8.891 kB / 0.7907 GB, free: 8.688 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.007517, allocations: 130.9 kB / 0.7909 GB, free: 8.535 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.326e-06/0.007525, allocations: 384 / 0.7909 GB, free: 8.535 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.007536, allocations: 7.312 kB / 0.7909 GB, free: 8.531 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.155e-05/0.007618, allocations: 26.27 kB / 0.7909 GB, free: 8.5 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.007627, allocations: 192 / 0.7909 GB, free: 8.5 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.007636, allocations: 384 / 0.7909 GB, free: 8.5 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.007645, allocations: 7.938 kB / 0.7909 GB, free: 8.492 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.163e-05/0.007657, allocations: 4 kB / 0.7909 GB, free: 8.488 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001364/0.007793, allocations: 148.5 kB / 0.791 GB, free: 8.309 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.025e-05/0.007834, allocations: 27.78 kB / 0.7911 GB, free: 8.27 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.041e-05/0.007854, allocations: 7.688 kB / 0.7911 GB, free: 8.258 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.435e-05/0.007898, allocations: 5.719 kB / 0.7911 GB, free: 8.254 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.007924, allocations: 41.39 kB / 0.7911 GB, free: 8.203 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 5.21e-07/0.007925, allocations: 0 / 0.7911 GB, free: 8.203 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.0001237/0.008049, allocations: 47.33 kB / 0.7912 GB, free: 8.152 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.008082, allocations: 55.34 kB / 0.7912 GB, free: 8.086 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.008205, allocations: 216.3 kB / 0.7914 GB, free: 7.859 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.879e-06/0.008215, allocations: 25.7 kB / 0.7915 GB, free: 7.828 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.089e-05/0.008276, allocations: 150.8 kB / 0.7916 GB, free: 7.676 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.098e-05/0.008287, allocations: 5.188 kB / 0.7916 GB, free: 7.672 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-05/0.008323, allocations: 31.36 kB / 0.7916 GB, free: 7.633 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001338/0.008457, allocations: 0.4884 MB / 0.7921 GB, free: 7.133 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.395e-05/0.008481, allocations: 17.58 kB / 0.7921 GB, free: 7.117 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.337e-05/0.008494, allocations: 12 kB / 0.7921 GB, free: 7.105 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.378e-05/0.008538, allocations: 31.62 kB / 0.7922 GB, free: 7.07 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.008541, allocations: 4 kB / 0.7922 GB, free: 7.066 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12) (initialization): time 7.849e-05/0.008619, allocations: 71.3 kB / 0.7922 GB, free: 6.992 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.008632, allocations: 8 kB / 0.7922 GB, free: 6.984 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.008646, allocations: 0 / 0.7922 GB, free: 6.984 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.008661, allocations: 0 / 0.7922 GB, free: 6.984 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.495e-05/0.008676, allocations: 0 / 0.7922 GB, free: 6.984 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.008683, allocations: 4.812 kB / 0.7922 GB, free: 6.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.785e-05/0.008701, allocations: 11.89 kB / 0.7923 GB, free: 6.969 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.008708, allocations: 0.5312 kB / 0.7923 GB, free: 6.969 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 7.78e-05/0.008786, allocations: 165.3 kB / 0.7924 GB, free: 6.797 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.024e-06/0.008793, allocations: 8.484 kB / 0.7924 GB, free: 6.789 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.234e-05/0.008875, allocations: 50.8 kB / 0.7925 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.008877, allocations: 0 / 0.7925 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.008882, allocations: 7.875 kB / 0.7925 GB, free: 6.727 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.008885, allocations: 0 / 0.7925 GB, free: 6.727 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.783e-05/0.008963, allocations: 129.2 kB / 0.7926 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.008964, allocations: 1.375 kB / 0.7926 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.985e-06/0.008967, allocations: 0 / 0.7926 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.008969, allocations: 4 kB / 0.7926 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.008976, allocations: 3.984 kB / 0.7926 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.42e-07/0.008977, allocations: 1.156 kB / 0.7926 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.008978, allocations: 0 / 0.7926 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.158e-05/0.009039, allocations: 77.5 kB / 0.7927 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.142e-05/0.009051, allocations: 7.953 kB / 0.7927 GB, free: 6.453 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.979e-06/0.009061, allocations: 3.984 kB / 0.7927 GB, free: 6.449 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.603e-06/0.009067, allocations: 0.8125 kB / 0.7927 GB, free: 6.449 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.68e-05/0.009084, allocations: 4 kB / 0.7927 GB, free: 6.445 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.009087, allocations: 8.875 kB / 0.7927 GB, free: 6.438 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.171e-05/0.009149, allocations: 151.2 kB / 0.7929 GB, free: 6.289 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.009149, allocations: 0 / 0.7929 GB, free: 6.289 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000243/0.009392, allocations: 89.09 kB / 0.7929 GB, free: 6.203 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.0004719/0.009864, allocations: 259.2 kB / 0.7932 GB, free: 5.969 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001267/0.009991, allocations: 65.38 kB / 0.7933 GB, free: 5.895 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.009992, allocations: 0 / 0.7933 GB, free: 5.895 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.545e-05/0.01001, allocations: 16.36 kB / 0.7933 GB, free: 5.875 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.01013, allocations: 7.438 kB / 0.7933 GB, free: 5.871 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000248/0.01038, allocations: 152.7 kB / 0.7934 GB, free: 5.695 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.776e-05/0.01042, allocations: 63.28 kB / 0.7935 GB, free: 5.613 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.69e-05/0.01043, allocations: 7.969 kB / 0.7935 GB, free: 5.605 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.55e-05/0.01045, allocations: 12.5 kB / 0.7935 GB, free: 5.594 MB / 0.7448 GB Notification: Performance of SimCode: time 4.41e-07/0.01045, allocations: 0 / 0.7935 GB, free: 5.594 MB / 0.7448 GB Notification: Performance of Templates: time 0.003724/0.01417, allocations: 2.115 MB / 0.7956 GB, free: 3.5 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.992719261907041]