Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001655/0.001655, allocations: 104.2 kB / 19.74 MB, free: 2.07 MB / 14.72 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.001884/0.001884, allocations: 212.1 kB / 23.03 MB, free: 4.867 MB / 14.72 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.497/1.497, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.214/3.214, allocations: 0.49 GB / 0.7959 GB, free: 35.47 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 64.67 kB / 1.155 GB, free: 25.16 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.3604, allocations: 176.1 MB / 1.327 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001803/0.3622, allocations: 0.5313 MB / 1.328 GB, free: 456 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002575/0.3648, allocations: 1.611 MB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.497e-05/0.3648, allocations: 0 / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.365, allocations: 19.91 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 2.612e-05/0.365, allocations: 11.92 kB / 1.329 GB, free: 14.79 MB / 1.029 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'. Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.366, allocations: 279.2 kB / 1.33 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.125e-05/0.3661, allocations: 31.91 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 3.581e-05/0.3661, allocations: 0 / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 2.966e-05/0.3661, allocations: 11.98 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.432e-05/0.3662, allocations: 15.92 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.077e-05/0.3662, allocations: 4 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007658/0.367, allocations: 455 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.356e-05/0.367, allocations: 23.92 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.515e-05/0.367, allocations: 11.88 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004649/0.3675, allocations: 303.1 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3675, allocations: 0 / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3675, allocations: 0 / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.3675, allocations: 0 / 1.33 GB, free: 13.67 MB / 1.029 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.0004415/0.368, allocations: 333.6 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.368, allocations: 8.031 kB / 1.331 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.667e-05/0.368, allocations: 12.88 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.3682, allocations: 127 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.52e-06/0.3682, allocations: 384 / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.3682, allocations: 384 / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.747e-05/0.3683, allocations: 46 kB / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.3683, allocations: 0 / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.3683, allocations: 3.984 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.3683, allocations: 3.938 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.369e-05/0.3684, allocations: 19.92 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001618/0.3685, allocations: 125.3 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 4.866e-05/0.3686, allocations: 26.56 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.376e-05/0.3686, allocations: 16.92 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.3686, allocations: 4 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.3687, allocations: 30.56 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3687, allocations: 4 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.000164/0.3688, allocations: 69.5 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/0.3689, allocations: 51.41 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.369, allocations: 173.8 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.369, allocations: 25.7 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.076e-05/0.3691, allocations: 96.14 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.759e-06/0.3691, allocations: 0 / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.591e-05/0.3692, allocations: 29.7 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3693, allocations: 318.8 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.873e-05/0.3694, allocations: 43.98 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.786e-05/0.3694, allocations: 44.05 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.472e-05/0.3695, allocations: 68.83 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3695, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001675/0.3697, allocations: 121.6 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3697, allocations: 11.98 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.3697, allocations: 3.938 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.3697, allocations: 0 / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.25e-05/0.3697, allocations: 0 / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.3697, allocations: 4 kB / 1.332 GB, free: 11.72 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.443e-05/0.3698, allocations: 11.83 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.3698, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 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.0001836/0.37, allocations: 129.2 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.811e-05/0.37, allocations: 15.91 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/0.3701, allocations: 69.3 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3701, allocations: 0 / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.3701, allocations: 0 / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.3701, allocations: 0 / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.3702, allocations: 117.3 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3702, allocations: 0 / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.131e-06/0.3702, allocations: 4 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3702, allocations: 4.031 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.3702, allocations: 4 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.3702, allocations: 7.922 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3702, allocations: 0 / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.894e-05/0.3703, allocations: 77.08 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.131e-05/0.3703, allocations: 7.953 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.3703, allocations: 0 / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.367e-05/0.3703, allocations: 3.938 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.434e-05/0.3704, allocations: 0 / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.3704, allocations: 4 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.824e-05/0.3705, allocations: 124.9 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3705, allocations: 3.938 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003504/0.3708, allocations: 91.8 kB / 1.333 GB, free: 10.99 MB / 1.029 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.0005466/0.3714, allocations: 233.7 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001698/0.3715, allocations: 101.7 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3715, allocations: 0 / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.577e-05/0.3715, allocations: 8 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.3717, allocations: 4 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003539/0.372, allocations: 187 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001351/0.3722, allocations: 75.33 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.353e-05/0.3722, allocations: 15.42 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of SimCode: time 2.8e-07/0.3722, allocations: 0 / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of Templates: time 0.004762/0.377, allocations: 2.356 MB / 1.336 GB, free: 7.977 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 13.548424896085635]