Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002004/0.002004, allocations: 113.9 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002523/0.002523, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 225.6 MB / 249.4 MB, free: 3.305 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.499/2.499, allocations: 443.4 MB / 0.7304 GB, free: 13.87 MB / 0.5763 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_10_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_10_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 71.89 kB / 1.059 GB, free: 428 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3152, allocations: 160.7 MB / 1.216 GB, free: 15.39 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001666/0.3169, allocations: 0.5346 MB / 1.217 GB, free: 14.86 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002342/0.3192, allocations: 1.627 MB / 1.218 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.782e-05/0.3193, allocations: 0 / 1.218 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001817/0.3194, allocations: 67.83 kB / 1.218 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.449e-05/0.3195, allocations: 35.89 kB / 1.218 GB, free: 13.11 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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 10.1.1-maint.10.0.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.0008512/0.3203, allocations: 246 kB / 1.219 GB, free: 12.87 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.683e-05/0.3204, allocations: 27.91 kB / 1.219 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.683e-05/0.3205, allocations: 4 kB / 1.219 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.39e-05/0.3205, allocations: 35.89 kB / 1.219 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.293e-05/0.3206, allocations: 39.89 kB / 1.219 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.082e-05/0.3206, allocations: 0 / 1.219 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005863/0.3212, allocations: 371.3 kB / 1.219 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.577e-05/0.3212, allocations: 23.91 kB / 1.219 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.104e-05/0.3212, allocations: 27.75 kB / 1.219 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004098/0.3217, allocations: 299.1 kB / 1.219 GB, free: 12.06 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.3217, allocations: 0 / 1.219 GB, free: 12.06 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3217, allocations: 4 kB / 1.219 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.3217, allocations: 0 / 1.219 GB, free: 12.05 MB / 0.9669 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.000519/0.3222, allocations: 438.4 kB / 1.22 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.3222, allocations: 12.03 kB / 1.22 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.369e-05/0.3223, allocations: 12.84 kB / 1.22 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001952/0.3224, allocations: 192.1 kB / 1.22 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.41e-06/0.3225, allocations: 384 / 1.22 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.3225, allocations: 384 / 1.22 GB, free: 11.33 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.573e-05/0.3226, allocations: 46.02 kB / 1.22 GB, free: 11.28 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3226, allocations: 0 / 1.22 GB, free: 11.28 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.3226, allocations: 4 kB / 1.22 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-06/0.3226, allocations: 0 / 1.22 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.587e-05/0.3226, allocations: 19.98 kB / 1.22 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001999/0.3228, allocations: 185.6 kB / 1.22 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.025e-05/0.3229, allocations: 26.52 kB / 1.22 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.503e-05/0.3229, allocations: 16.92 kB / 1.22 GB, free: 10.97 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.3229, allocations: 11.98 kB / 1.22 GB, free: 10.96 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.323, allocations: 38.5 kB / 1.22 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.323, allocations: 0 / 1.22 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001584/0.3231, allocations: 65.59 kB / 1.22 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.3232, allocations: 55.39 kB / 1.22 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002158/0.3234, allocations: 219.3 kB / 1.221 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.3234, allocations: 25.7 kB / 1.221 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.499e-05/0.3234, allocations: 104.1 kB / 1.221 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.3235, allocations: 7.891 kB / 1.221 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.454e-05/0.3235, allocations: 33.83 kB / 1.221 GB, free: 10.37 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3237, allocations: 326.8 kB / 1.221 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.94e-05/0.3237, allocations: 51.97 kB / 1.221 GB, free: 9.988 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.661e-05/0.3238, allocations: 55.98 kB / 1.221 GB, free: 9.934 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.3239, allocations: 91.45 kB / 1.221 GB, free: 9.844 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3239, allocations: 0 / 1.221 GB, free: 9.844 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002266/0.3241, allocations: 165.5 kB / 1.221 GB, free: 9.676 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3241, allocations: 7.938 kB / 1.221 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.3242, allocations: 0 / 1.221 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.3242, allocations: 4.062 kB / 1.221 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.44e-05/0.3242, allocations: 4 kB / 1.221 GB, free: 9.66 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.3242, allocations: 3.938 kB / 1.221 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.773e-05/0.3242, allocations: 15.84 kB / 1.221 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.3242, allocations: 4 kB / 1.221 GB, free: 9.637 MB / 0.9669 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.0001443/0.3244, allocations: 132.4 kB / 1.222 GB, free: 9.5 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.3244, allocations: 11.89 kB / 1.222 GB, free: 9.488 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.3245, allocations: 70.17 kB / 1.222 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.3245, allocations: 7.984 kB / 1.222 GB, free: 9.402 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.3245, allocations: 0 / 1.222 GB, free: 9.402 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3245, allocations: 0 / 1.222 GB, free: 9.402 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001717/0.3247, allocations: 181.7 kB / 1.222 GB, free: 9.176 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3247, allocations: 0 / 1.222 GB, free: 9.176 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.529e-06/0.3247, allocations: 0 / 1.222 GB, free: 9.176 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3247, allocations: 3.938 kB / 1.222 GB, free: 9.172 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.3247, allocations: 0 / 1.222 GB, free: 9.172 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.3247, allocations: 0 / 1.222 GB, free: 9.172 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3247, allocations: 3.938 kB / 1.222 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.975e-05/0.3248, allocations: 93.05 kB / 1.222 GB, free: 9.059 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.135e-05/0.3249, allocations: 92.95 kB / 1.222 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.3249, allocations: 0 / 1.222 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.281e-05/0.3249, allocations: 0 / 1.222 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.633e-05/0.3249, allocations: 0 / 1.222 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.3249, allocations: 0 / 1.222 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001247/0.325, allocations: 148.4 kB / 1.222 GB, free: 8.805 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.325, allocations: 4.031 kB / 1.222 GB, free: 8.801 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003277/0.3254, allocations: 87.8 kB / 1.222 GB, free: 8.715 MB / 0.9669 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.00055/0.3259, allocations: 222.6 kB / 1.222 GB, free: 8.504 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002016/0.3261, allocations: 121.6 kB / 1.223 GB, free: 8.379 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3261, allocations: 0 / 1.223 GB, free: 8.379 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.963e-05/0.3261, allocations: 11.98 kB / 1.223 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.3263, allocations: 13.62 kB / 1.223 GB, free: 8.355 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003631/0.3267, allocations: 209.8 kB / 1.223 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003807/0.327, allocations: 0.708 MB / 1.224 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.497e-05/0.3271, allocations: 3.984 kB / 1.224 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.587e-05/0.3271, allocations: 7.438 kB / 1.224 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of SimCode: time 4.51e-07/0.3271, allocations: 4.125 kB / 1.224 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of Templates: time 0.005751/0.3328, allocations: 2.11 MB / 1.226 GB, free: 5.266 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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.84359838347882]