Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.001692/0.001692, allocations: 115.7 kB / 18.89 MB, free: 2.898 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.002025/0.002025, allocations: 202.9 kB / 22.17 MB, free: 5.211 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.471/1.471, allocations: 225.6 MB / 250.9 MB, free: 13.27 MB / 206.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.647/2.647, allocations: 443.5 MB / 0.732 GB, free: 12.56 MB / 0.5919 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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_10_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_10_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002038/0.002038, allocations: 71.88 kB / 1.061 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6935/0.6955, allocations: 160.7 MB / 1.218 GB, free: 4.094 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001592/0.6971, allocations: 0.5256 MB / 1.219 GB, free: 3.707 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002301/0.6994, allocations: 1.623 MB / 1.22 GB, free: 2.426 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.606e-05/0.6995, allocations: 0 / 1.22 GB, free: 2.426 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.6996, allocations: 25.78 kB / 1.22 GB, free: 2.41 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.369e-05/0.6996, allocations: 9.516 kB / 1.22 GB, free: 2.406 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.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.0008186/0.7004, allocations: 249.4 kB / 1.221 GB, free: 2.246 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.925e-05/0.7005, allocations: 26.91 kB / 1.221 GB, free: 2.23 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.371e-05/0.7006, allocations: 2.5 kB / 1.221 GB, free: 2.23 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.754e-05/0.7006, allocations: 9.484 kB / 1.221 GB, free: 2.227 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.165e-05/0.7006, allocations: 21.64 kB / 1.221 GB, free: 2.215 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.066e-05/0.7006, allocations: 0 / 1.221 GB, free: 2.215 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005974/0.7012, allocations: 358 kB / 1.221 GB, free: 2.012 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.97e-05/0.7013, allocations: 26.41 kB / 1.221 GB, free: 1.996 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.926e-05/0.7013, allocations: 19.41 kB / 1.221 GB, free: 1.98 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003885/0.7017, allocations: 285.8 kB / 1.221 GB, free: 1.816 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.7017, allocations: 0 / 1.221 GB, free: 1.816 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.393e-06/0.7017, allocations: 0.9375 kB / 1.221 GB, free: 1.816 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.7017, allocations: 0 / 1.221 GB, free: 1.816 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.0004672/0.7022, allocations: 414.4 kB / 1.222 GB, free: 1.395 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.7022, allocations: 9.922 kB / 1.222 GB, free: 1.395 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.507e-05/0.7022, allocations: 11.78 kB / 1.222 GB, free: 1.387 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.7024, allocations: 175.3 kB / 1.222 GB, free: 1.184 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.953e-06/0.7024, allocations: 9.438 kB / 1.222 GB, free: 1.176 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.7024, allocations: 384 / 1.222 GB, free: 1.176 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.056e-05/0.7025, allocations: 49.94 kB / 1.222 GB, free: 1.129 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.7025, allocations: 0 / 1.222 GB, free: 1.129 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-06/0.7025, allocations: 0.7812 kB / 1.222 GB, free: 1.129 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.865e-06/0.7025, allocations: 0 / 1.222 GB, free: 1.129 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.737e-05/0.7026, allocations: 17.2 kB / 1.222 GB, free: 1.125 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001889/0.7028, allocations: 174.8 kB / 1.222 GB, free: 0.918 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.654e-05/0.7028, allocations: 26.77 kB / 1.222 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.67e-05/0.7028, allocations: 10.73 kB / 1.222 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.7029, allocations: 9.172 kB / 1.222 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.7029, allocations: 39.56 kB / 1.222 GB, free: 0.832 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.7029, allocations: 0 / 1.222 GB, free: 0.832 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001468/0.703, allocations: 62.08 kB / 1.222 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.7031, allocations: 52.41 kB / 1.222 GB, free: 0.7266 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.7032, allocations: 178.2 kB / 1.222 GB, free: 0.582 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.7033, allocations: 25.7 kB / 1.222 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.158e-05/0.7033, allocations: 100.4 kB / 1.223 GB, free: 464 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.017e-05/0.7033, allocations: 3.953 kB / 1.223 GB, free: 460 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.02e-05/0.7034, allocations: 23.22 kB / 1.223 GB, free: 440 kB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.7035, allocations: 322 kB / 1.223 GB, free: 112 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.403e-05/0.7036, allocations: 37.2 kB / 1.223 GB, free: 104 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.538e-05/0.7036, allocations: 40.67 kB / 1.223 GB, free: 92 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.794e-05/0.7037, allocations: 81.09 kB / 1.223 GB, free: 52 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.7037, allocations: 0 / 1.223 GB, free: 52 kB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001696/0.7039, allocations: 131.5 kB / 1.223 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.7039, allocations: 8.406 kB / 1.223 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.7039, allocations: 1.781 kB / 1.223 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.7039, allocations: 0.75 kB / 1.223 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-05/0.7039, allocations: 0.75 kB / 1.223 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.912e-06/0.7039, allocations: 3.984 kB / 1.223 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.438e-05/0.704, allocations: 6.141 kB / 1.223 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.735e-06/0.704, allocations: 0.7188 kB / 1.223 GB, free: 15.97 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: 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.000135/0.7041, allocations: 129.5 kB / 1.223 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.7041, allocations: 14.16 kB / 1.223 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.7042, allocations: 60.31 kB / 1.223 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.7042, allocations: 1.031 kB / 1.223 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.7042, allocations: 0 / 1.223 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.7042, allocations: 0.8125 kB / 1.223 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.7044, allocations: 171.1 kB / 1.224 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.7044, allocations: 0 / 1.224 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.368e-06/0.7044, allocations: 4.031 kB / 1.224 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.7044, allocations: 9 kB / 1.224 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.98e-06/0.7044, allocations: 0 / 1.224 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.7044, allocations: 1.094 kB / 1.224 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.7044, allocations: 0 / 1.224 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.04e-05/0.7045, allocations: 85.22 kB / 1.224 GB, free: 15.49 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.971e-05/0.7046, allocations: 90.8 kB / 1.224 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.7046, allocations: 0.875 kB / 1.224 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.171e-05/0.7046, allocations: 4.031 kB / 1.224 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.355e-05/0.7046, allocations: 1.125 kB / 1.224 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-06/0.7046, allocations: 1.062 kB / 1.224 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.229e-05/0.7047, allocations: 120.6 kB / 1.224 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.7047, allocations: 0 / 1.224 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003199/0.705, allocations: 88.33 kB / 1.224 GB, free: 15.27 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.0005258/0.7055, allocations: 231.1 kB / 1.224 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001538/0.7057, allocations: 95.2 kB / 1.224 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.7057, allocations: 0 / 1.224 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.876e-05/0.7057, allocations: 15.42 kB / 1.224 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001426/0.7058, allocations: 2.25 kB / 1.224 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002822/0.7061, allocations: 168.1 kB / 1.224 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.7065, allocations: 0.6943 MB / 1.225 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 1.622e-05/0.7065, allocations: 1.094 kB / 1.225 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.612e-05/0.7065, allocations: 8.656 kB / 1.225 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of SimCode: time 3.01e-07/0.7065, allocations: 1.312 kB / 1.225 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of Templates: time 0.005181/0.7117, allocations: 2.105 MB / 1.227 GB, free: 13.13 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 8.078201440162957]