Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.001518/0.001518, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.001742/0.001742, allocations: 157.6 kB / 22.75 MB, free: 1.684 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.453/1.453, allocations: 177.1 MB / 203.1 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.137/3.137, allocations: 429.6 MB / 0.673 GB, free: 3.871 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 0.8776 GB, free: 6.535 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.084e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.531 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001413/0.001434, allocations: 0.5244 MB / 0.8781 GB, free: 6.031 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002618/0.004052, allocations: 1.617 MB / 0.8796 GB, free: 4.402 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.547e-05/0.004077, allocations: 0.625 kB / 0.8796 GB, free: 4.402 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001963/0.004274, allocations: 68.5 kB / 0.8797 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.351e-05/0.004317, allocations: 31.39 kB / 0.8797 GB, free: 4.309 MB / 0.8386 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.0009489/0.005266, allocations: 279 kB / 0.88 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.301e-05/0.005339, allocations: 31.91 kB / 0.88 GB, free: 4.004 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.593e-05/0.005375, allocations: 12.56 kB / 0.88 GB, free: 3.992 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 5.273e-05/0.005428, allocations: 15.98 kB / 0.8801 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.781e-05/0.005506, allocations: 49.08 kB / 0.8801 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.005518, allocations: 0 / 0.8801 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008096/0.006328, allocations: 453 kB / 0.8805 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.896e-05/0.006387, allocations: 27.92 kB / 0.8806 GB, free: 3.461 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.934e-05/0.006416, allocations: 11.92 kB / 0.8806 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0005391/0.006955, allocations: 367 kB / 0.8809 GB, free: 3.09 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.006957, allocations: 4 kB / 0.8809 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.12e-07/0.006958, allocations: 3.938 kB / 0.8809 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.506e-06/0.006962, allocations: 0 / 0.8809 GB, free: 3.082 MB / 0.8386 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.0004985/0.00746, allocations: 361.3 kB / 0.8813 GB, free: 2.699 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.007492, allocations: 8.031 kB / 0.8813 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.594e-05/0.007538, allocations: 12.84 kB / 0.8813 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.007714, allocations: 126.6 kB / 0.8814 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.007725, allocations: 4.375 kB / 0.8814 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.007737, allocations: 4.375 kB / 0.8814 GB, free: 2.523 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.059e-05/0.007827, allocations: 38.2 kB / 0.8815 GB, free: 2.48 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.007835, allocations: 4.188 kB / 0.8815 GB, free: 2.477 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.224e-06/0.007842, allocations: 384 / 0.8815 GB, free: 2.477 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.007848, allocations: 3.938 kB / 0.8815 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.57e-05/0.007884, allocations: 19.98 kB / 0.8815 GB, free: 2.453 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001829/0.008067, allocations: 137.3 kB / 0.8816 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.361e-05/0.00812, allocations: 30.5 kB / 0.8817 GB, free: 2.25 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.608e-05/0.008146, allocations: 12.92 kB / 0.8817 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.631e-05/0.008183, allocations: 7.984 kB / 0.8817 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.008217, allocations: 38.56 kB / 0.8817 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.008218, allocations: 0 / 0.8817 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001782/0.008396, allocations: 73.53 kB / 0.8818 GB, free: 2.102 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.008442, allocations: 55.34 kB / 0.8818 GB, free: 2.035 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002488/0.008691, allocations: 216 kB / 0.882 GB, free: 1.816 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.008709, allocations: 25.7 kB / 0.8821 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.465e-05/0.008794, allocations: 108.1 kB / 0.8822 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.516e-06/0.008803, allocations: 0 / 0.8822 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.397e-05/0.008856, allocations: 33.7 kB / 0.8822 GB, free: 1.637 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002109/0.009067, allocations: 326.8 kB / 0.8825 GB, free: 1.309 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.009181, allocations: 51.98 kB / 0.8826 GB, free: 1.258 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.486e-05/0.009256, allocations: 55.97 kB / 0.8826 GB, free: 1.203 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.009373, allocations: 92.98 kB / 0.8827 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.009375, allocations: 0 / 0.8827 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002311/0.009606, allocations: 172.4 kB / 0.8829 GB, free: 0.9375 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.009619, allocations: 4 kB / 0.8829 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.009631, allocations: 0 / 0.8829 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.009647, allocations: 0 / 0.8829 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.313e-05/0.00966, allocations: 4 kB / 0.8829 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.009666, allocations: 3.938 kB / 0.8829 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.689e-05/0.009693, allocations: 7.891 kB / 0.8829 GB, free: 0.918 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.009703, allocations: 4 kB / 0.8829 GB, free: 0.9141 MB / 0.8386 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.0001488/0.009851, allocations: 133.8 kB / 0.883 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.971e-05/0.009871, allocations: 11.91 kB / 0.883 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.00999, allocations: 66.14 kB / 0.8831 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.009992, allocations: 0 / 0.8831 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.009999, allocations: 3.938 kB / 0.8831 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.01, allocations: 11.86 kB / 0.8831 GB, free: 0.6758 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.01014, allocations: 133.3 kB / 0.8832 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.01014, allocations: 0 / 0.8832 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.278e-06/0.01014, allocations: 0 / 0.8832 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.01014, allocations: 0 / 0.8832 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.579e-06/0.01015, allocations: 4.031 kB / 0.8832 GB, free: 0.5117 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.01015, allocations: 4 kB / 0.8832 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.01015, allocations: 0 / 0.8832 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001059/0.01026, allocations: 84.97 kB / 0.8833 GB, free: 416 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.664e-05/0.01027, allocations: 7.953 kB / 0.8833 GB, free: 408 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.01029, allocations: 7.984 kB / 0.8833 GB, free: 400 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.359e-05/0.0103, allocations: 0 / 0.8833 GB, free: 400 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.394e-05/0.01032, allocations: 3.984 kB / 0.8833 GB, free: 396 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.01032, allocations: 3.938 kB / 0.8833 GB, free: 392 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001539/0.01048, allocations: 155.1 kB / 0.8835 GB, free: 236 kB / 0.8386 GB Notification: Performance of sort global known variables: time 1e-07/0.01048, allocations: 4.031 kB / 0.8835 GB, free: 232 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003335/0.01081, allocations: 87.8 kB / 0.8836 GB, free: 144 kB / 0.8386 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.0007265/0.01154, allocations: 250.6 kB / 0.8838 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001914/0.01173, allocations: 121.7 kB / 0.8839 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.01173, allocations: 0 / 0.8839 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.14e-05/0.01175, allocations: 11.98 kB / 0.8839 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001503/0.0119, allocations: 8 kB / 0.884 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003492/0.01225, allocations: 213.2 kB / 0.8842 GB, free: 15.54 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.01236, allocations: 88.31 kB / 0.8842 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.592e-05/0.01237, allocations: 3.938 kB / 0.8842 GB, free: 15.42 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.197e-05/0.0124, allocations: 12.5 kB / 0.8843 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of SimCode: time 3.91e-07/0.0124, allocations: 0 / 0.8843 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of Templates: time 0.006047/0.01844, allocations: 2.218 MB / 0.8864 GB, free: 13.19 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.90853712905664]