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.002045/0.002045, allocations: 110 kB / 18.93 MB, free: 2.945 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.001736/0.001736, allocations: 194.3 kB / 22.23 MB, free: 5.152 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.435/1.435, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.655/2.655, allocations: 443.5 MB / 0.7321 GB, free: 12.27 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-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.001995/0.001995, allocations: 63.89 kB / 1.061 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7722/0.7742, allocations: 160.8 MB / 1.218 GB, free: 3.645 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001654/0.7759, allocations: 0.5252 MB / 1.219 GB, free: 3.254 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002364/0.7782, allocations: 1.631 MB / 1.221 GB, free: 1.965 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.315e-05/0.7783, allocations: 1.25 kB / 1.221 GB, free: 1.965 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.000179/0.7784, allocations: 67.7 kB / 1.221 GB, free: 1.93 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.939e-05/0.7785, allocations: 35.8 kB / 1.221 GB, free: 1.91 MB / 0.92 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.2-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.0009091/0.7794, allocations: 264.8 kB / 1.221 GB, free: 1.738 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.946e-05/0.7795, allocations: 38.16 kB / 1.221 GB, free: 1.719 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.478e-05/0.7795, allocations: 6.094 kB / 1.221 GB, free: 1.715 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.612e-05/0.7795, allocations: 19.64 kB / 1.221 GB, free: 1.707 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.24e-05/0.7796, allocations: 54.83 kB / 1.221 GB, free: 1.68 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.7796, allocations: 0 / 1.221 GB, free: 1.68 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007404/0.7804, allocations: 460.5 kB / 1.221 GB, free: 1.387 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.537e-05/0.7804, allocations: 21.58 kB / 1.221 GB, free: 1.379 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.826e-05/0.7805, allocations: 33.14 kB / 1.221 GB, free: 1.352 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004258/0.7809, allocations: 296.9 kB / 1.222 GB, free: 1.188 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.7809, allocations: 0 / 1.222 GB, free: 1.188 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7809, allocations: 0 / 1.222 GB, free: 1.188 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.023e-05/0.7809, allocations: 1.125 kB / 1.222 GB, free: 1.188 MB / 0.92 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.0004875/0.7814, allocations: 440.4 kB / 1.222 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.7814, allocations: 14.17 kB / 1.222 GB, free: 0.7422 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.549e-05/0.7815, allocations: 11.97 kB / 1.222 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.7816, allocations: 194.5 kB / 1.222 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.7817, allocations: 1.688 kB / 1.222 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.414e-05/0.7817, allocations: 4.359 kB / 1.222 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.7818, allocations: 43.05 kB / 1.222 GB, free: 484 kB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.7818, allocations: 0 / 1.222 GB, free: 484 kB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-06/0.7818, allocations: 1.062 kB / 1.222 GB, free: 484 kB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.7818, allocations: 4 kB / 1.222 GB, free: 480 kB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.078e-05/0.7818, allocations: 19.8 kB / 1.222 GB, free: 476 kB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001912/0.782, allocations: 179.7 kB / 1.223 GB, free: 264 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 5.304e-05/0.7821, allocations: 30.94 kB / 1.223 GB, free: 232 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.469e-05/0.7821, allocations: 13.52 kB / 1.223 GB, free: 224 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.7821, allocations: 8.922 kB / 1.223 GB, free: 220 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.7822, allocations: 35.44 kB / 1.223 GB, free: 176 kB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.7822, allocations: 4 kB / 1.223 GB, free: 172 kB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001478/0.7823, allocations: 66.81 kB / 1.223 GB, free: 128 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.7824, allocations: 55.41 kB / 1.223 GB, free: 60 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.7826, allocations: 225.5 kB / 1.223 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.7826, allocations: 25.7 kB / 1.223 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.498e-05/0.7827, allocations: 102.5 kB / 1.223 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.206e-05/0.7827, allocations: 3.953 kB / 1.223 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.252e-05/0.7827, allocations: 29.27 kB / 1.223 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.7828, allocations: 327.2 kB / 1.224 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.047e-05/0.7829, allocations: 56.02 kB / 1.224 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.653e-05/0.783, allocations: 55.69 kB / 1.224 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001032/0.7831, allocations: 91.53 kB / 1.224 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.7831, allocations: 4 kB / 1.224 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001922/0.7833, allocations: 162.1 kB / 1.224 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.7833, allocations: 9.5 kB / 1.224 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.7833, allocations: 0.8125 kB / 1.224 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.7833, allocations: 0.7188 kB / 1.224 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.145e-05/0.7833, allocations: 8.844 kB / 1.224 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.107e-06/0.7833, allocations: 0 / 1.224 GB, free: 15.26 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.257e-05/0.7834, allocations: 18.47 kB / 1.224 GB, free: 15.25 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.7834, allocations: 1.062 kB / 1.224 GB, free: 15.25 MB / 0.9356 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.0001531/0.7835, allocations: 146.8 kB / 1.224 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.841e-05/0.7835, allocations: 11.55 kB / 1.224 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.7836, allocations: 57.16 kB / 1.224 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.7836, allocations: 8.016 kB / 1.224 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.766e-06/0.7836, allocations: 0 / 1.224 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.7837, allocations: 1.062 kB / 1.224 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.7838, allocations: 180.3 kB / 1.224 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.7838, allocations: 0.75 kB / 1.224 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-06/0.7838, allocations: 0.8125 kB / 1.224 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.7838, allocations: 3.938 kB / 1.224 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-06/0.7838, allocations: 0.6875 kB / 1.224 GB, free: 14.85 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.7838, allocations: 5 kB / 1.224 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.7838, allocations: 0 / 1.224 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.476e-05/0.7839, allocations: 92.3 kB / 1.224 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.91e-05/0.784, allocations: 95.22 kB / 1.225 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.784, allocations: 1.125 kB / 1.225 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.362e-05/0.784, allocations: 0 / 1.225 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.789e-06/0.784, allocations: 1.094 kB / 1.225 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.784, allocations: 0.9688 kB / 1.225 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001399/0.7841, allocations: 145.4 kB / 1.225 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7841, allocations: 4.031 kB / 1.225 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003451/0.7845, allocations: 88.92 kB / 1.225 GB, free: 14.52 MB / 0.9356 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.0005169/0.785, allocations: 230.6 kB / 1.225 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001899/0.7852, allocations: 122 kB / 1.225 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.7852, allocations: 1.281 kB / 1.225 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.97e-05/0.7852, allocations: 12.23 kB / 1.225 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001554/0.7854, allocations: 8.406 kB / 1.225 GB, free: 14.31 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003395/0.7857, allocations: 216.3 kB / 1.225 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.786, allocations: 0.7014 MB / 1.226 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.739e-05/0.786, allocations: 1.5 kB / 1.226 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.685e-05/0.7861, allocations: 8.625 kB / 1.226 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of SimCode: time 3.4e-07/0.7861, allocations: 4.125 kB / 1.226 GB, free: 13.43 MB / 0.9356 GB Notification: Performance of Templates: time 0.005472/0.7915, allocations: 2.122 MB / 1.228 GB, free: 12.34 MB / 0.9356 GB " [Timeout remaining time 299] 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: 8.676641912199557]