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.001536/0.001536, allocations: 80.41 kB / 20.23 MB, free: 4.203 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.001714/0.001714, allocations: 165.7 kB / 23.55 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.459/1.459, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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 2.647/2.647, allocations: 359 MB / 0.6048 GB, free: 10.94 MB / 0.573 GB " [Timeout remaining time 177] 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.433e-06/1.433e-06, allocations: 0.7656 kB / 0.7863 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.537e-05/2.68e-05, allocations: 3.125 kB / 0.7863 GB, free: 12.86 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001662/0.001689, allocations: 0.5311 MB / 0.7868 GB, free: 12.34 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002822/0.004511, allocations: 1.616 MB / 0.7884 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.272e-05/0.004544, allocations: 3.938 kB / 0.7884 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.004685, allocations: 16.77 kB / 0.7884 GB, free: 10.69 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.937e-05/0.004714, allocations: 11.92 kB / 0.7885 GB, free: 10.68 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.00103/0.005744, allocations: 273.7 kB / 0.7887 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 7.025e-05/0.005815, allocations: 19.92 kB / 0.7887 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.411e-05/0.005849, allocations: 3.984 kB / 0.7887 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.105e-05/0.0059, allocations: 21.44 kB / 0.7888 GB, free: 10.37 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.304e-05/0.005943, allocations: 15.92 kB / 0.7888 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.005956, allocations: 0 / 0.7888 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008302/0.006786, allocations: 420.3 kB / 0.7892 GB, free: 9.945 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.902e-05/0.006845, allocations: 23.92 kB / 0.7892 GB, free: 9.922 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.685e-05/0.006872, allocations: 7.938 kB / 0.7892 GB, free: 9.914 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0005763/0.007448, allocations: 343.7 kB / 0.7895 GB, free: 9.578 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.007451, allocations: 0 / 0.7895 GB, free: 9.578 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.042e-06/0.007452, allocations: 1.406 kB / 0.7895 GB, free: 9.578 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.007456, allocations: 0 / 0.7895 GB, free: 9.578 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.0004707/0.007927, allocations: 325.6 kB / 0.7898 GB, free: 9.23 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.00796, allocations: 9.062 kB / 0.7899 GB, free: 9.223 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.201e-05/0.008002, allocations: 8.891 kB / 0.7899 GB, free: 9.215 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.00818, allocations: 133.6 kB / 0.79 GB, free: 9.059 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.378e-06/0.008189, allocations: 1.344 kB / 0.79 GB, free: 9.059 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.0082, allocations: 4.375 kB / 0.79 GB, free: 9.055 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.525e-05/0.008296, allocations: 43.31 kB / 0.79 GB, free: 9.008 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.008302, allocations: 192 / 0.79 GB, free: 9.008 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-06/0.008309, allocations: 384 / 0.79 GB, free: 9.008 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.008315, allocations: 3.938 kB / 0.79 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.116e-05/0.008347, allocations: 17.3 kB / 0.7901 GB, free: 8.988 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000169/0.008516, allocations: 125.3 kB / 0.7902 GB, free: 8.836 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.309e-05/0.008569, allocations: 22.58 kB / 0.7902 GB, free: 8.805 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.524e-05/0.008594, allocations: 15.84 kB / 0.7902 GB, free: 8.789 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.008625, allocations: 4 kB / 0.7902 GB, free: 8.785 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.008662, allocations: 42.5 kB / 0.7903 GB, free: 8.734 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.008663, allocations: 0 / 0.7903 GB, free: 8.734 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.0001657/0.008829, allocations: 61.62 kB / 0.7903 GB, free: 8.668 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.008875, allocations: 55.34 kB / 0.7904 GB, free: 8.602 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.009067, allocations: 170.7 kB / 0.7905 GB, free: 8.43 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.009091, allocations: 30.41 kB / 0.7906 GB, free: 8.395 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.954e-05/0.00916, allocations: 97.75 kB / 0.7907 GB, free: 8.297 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.286e-06/0.009169, allocations: 0 / 0.7907 GB, free: 8.297 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.62e-05/0.009215, allocations: 25.7 kB / 0.7907 GB, free: 8.266 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000175/0.00939, allocations: 322.8 kB / 0.791 GB, free: 7.941 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.22e-05/0.009452, allocations: 39.98 kB / 0.791 GB, free: 7.902 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.939e-05/0.009511, allocations: 45.11 kB / 0.7911 GB, free: 7.859 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001016/0.009613, allocations: 72.77 kB / 0.7911 GB, free: 7.785 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.009615, allocations: 0 / 0.7911 GB, free: 7.785 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001727/0.009787, allocations: 119.2 kB / 0.7913 GB, free: 7.664 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.009806, allocations: 8 kB / 0.7913 GB, free: 7.656 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.00982, allocations: 3.984 kB / 0.7913 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.009834, allocations: 0 / 0.7913 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.026e-05/0.009844, allocations: 1.719 kB / 0.7913 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.009851, allocations: 7.875 kB / 0.7913 GB, free: 7.645 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.555e-05/0.009877, allocations: 7.953 kB / 0.7913 GB, free: 7.637 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.009884, allocations: 0 / 0.7913 GB, free: 7.637 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 0.0001598/0.01004, allocations: 122.7 kB / 0.7914 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.88e-05/0.01006, allocations: 11.95 kB / 0.7914 GB, free: 7.496 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.01018, allocations: 58.67 kB / 0.7915 GB, free: 7.434 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.01018, allocations: 4 kB / 0.7915 GB, free: 7.43 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.01019, allocations: 4.469 kB / 0.7915 GB, free: 7.426 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-06/0.01019, allocations: 0 / 0.7915 GB, free: 7.426 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/0.01031, allocations: 118.6 kB / 0.7916 GB, free: 7.281 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.01031, allocations: 0 / 0.7916 GB, free: 7.281 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.003e-06/0.01032, allocations: 4 kB / 0.7916 GB, free: 7.277 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.01032, allocations: 0.5312 kB / 0.7916 GB, free: 7.277 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-06/0.01032, allocations: 4 kB / 0.7916 GB, free: 7.273 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.01033, allocations: 5.359 kB / 0.7916 GB, free: 7.27 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01033, allocations: 0 / 0.7916 GB, free: 7.27 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001089/0.01044, allocations: 84.95 kB / 0.7917 GB, free: 7.168 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.565e-05/0.01045, allocations: 9.109 kB / 0.7917 GB, free: 7.16 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.11e-05/0.01046, allocations: 0 / 0.7917 GB, free: 7.16 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.477e-05/0.01048, allocations: 3.984 kB / 0.7917 GB, free: 7.156 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.146e-05/0.01049, allocations: 5.094 kB / 0.7917 GB, free: 7.152 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.01049, allocations: 3.938 kB / 0.7917 GB, free: 7.148 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001104/0.0106, allocations: 123.2 kB / 0.7918 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7.1e-08/0.0106, allocations: 1.75 kB / 0.7918 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003734/0.01098, allocations: 87.8 kB / 0.7919 GB, free: 6.941 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.0006037/0.01158, allocations: 243.6 kB / 0.7921 GB, free: 6.723 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001718/0.01175, allocations: 93.66 kB / 0.7922 GB, free: 6.625 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.01175, allocations: 0 / 0.7922 GB, free: 6.625 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.912e-05/0.01178, allocations: 12.62 kB / 0.7922 GB, free: 6.613 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.01193, allocations: 8 kB / 0.7922 GB, free: 6.605 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003002/0.01223, allocations: 172.2 kB / 0.7924 GB, free: 6.414 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.434e-05/0.01231, allocations: 79.27 kB / 0.7925 GB, free: 6.316 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.638e-05/0.01233, allocations: 0 / 0.7925 GB, free: 6.316 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.233e-05/0.01235, allocations: 8.5 kB / 0.7925 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of SimCode: time 7.62e-07/0.01235, allocations: 0 / 0.7925 GB, free: 6.309 MB / 0.7448 GB Notification: Performance of Templates: time 0.005894/0.01824, allocations: 2.124 MB / 0.7946 GB, free: 4.211 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=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.291297622025013]