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.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.001446/0.001446, allocations: 114.2 kB / 18.94 MB, free: 2.93 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.001513/0.001513, allocations: 189 kB / 22.22 MB, free: 5.105 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.281/1.281, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 2.831/2.831, allocations: 0.4893 GB / 0.7884 GB, free: 33.04 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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_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 0.001845/0.001845, allocations: 60.44 kB / 1.145 GB, free: 30.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2924, allocations: 174.9 MB / 1.316 GB, free: 9.723 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001617/0.294, allocations: 0.5232 MB / 1.316 GB, free: 9.203 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002319/0.2963, allocations: 1.649 MB / 1.318 GB, free: 7.535 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.699e-05/0.2964, allocations: 0 / 1.318 GB, free: 7.535 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001781/0.2965, allocations: 59.86 kB / 1.318 GB, free: 7.477 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 3.703e-05/0.2966, allocations: 31.89 kB / 1.318 GB, free: 7.445 MB / 1.014 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0008948/0.2975, allocations: 287.2 kB / 1.318 GB, free: 7.164 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 7.54e-05/0.2975, allocations: 27.91 kB / 1.318 GB, free: 7.137 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 3.901e-05/0.2976, allocations: 7.984 kB / 1.319 GB, free: 7.129 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.354e-05/0.2976, allocations: 19.97 kB / 1.319 GB, free: 7.109 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.272e-05/0.2977, allocations: 47.88 kB / 1.319 GB, free: 7.062 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.2977, allocations: 0 / 1.319 GB, free: 7.062 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007319/0.2984, allocations: 495.1 kB / 1.319 GB, free: 6.578 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 5.279e-05/0.2985, allocations: 19.92 kB / 1.319 GB, free: 6.559 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.254e-05/0.2985, allocations: 31.73 kB / 1.319 GB, free: 6.527 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004222/0.2989, allocations: 315 kB / 1.319 GB, free: 6.219 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.2989, allocations: 4 kB / 1.319 GB, free: 6.215 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.213e-06/0.299, allocations: 0 / 1.319 GB, free: 6.215 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.289e-06/0.299, allocations: 0 / 1.319 GB, free: 6.215 MB / 1.014 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.0005396/0.2995, allocations: 367.3 kB / 1.32 GB, free: 5.828 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.2995, allocations: 12.03 kB / 1.32 GB, free: 5.816 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.511e-05/0.2996, allocations: 8.891 kB / 1.32 GB, free: 5.809 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001557/0.2997, allocations: 134.4 kB / 1.32 GB, free: 5.652 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.594e-06/0.2997, allocations: 384 / 1.32 GB, free: 5.652 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-06/0.2997, allocations: 384 / 1.32 GB, free: 5.652 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.087e-05/0.2998, allocations: 42 kB / 1.32 GB, free: 5.605 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.2998, allocations: 0 / 1.32 GB, free: 5.605 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.2998, allocations: 3.984 kB / 1.32 GB, free: 5.602 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-06/0.2998, allocations: 0 / 1.32 GB, free: 5.602 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.97e-05/0.2999, allocations: 23.92 kB / 1.32 GB, free: 5.578 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002091/0.3001, allocations: 168.7 kB / 1.32 GB, free: 5.371 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 5.088e-05/0.3001, allocations: 26.58 kB / 1.32 GB, free: 5.336 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.345e-05/0.3002, allocations: 16.91 kB / 1.32 GB, free: 5.316 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.3002, allocations: 4 kB / 1.32 GB, free: 5.312 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.3002, allocations: 38.5 kB / 1.32 GB, free: 5.266 MB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3002, allocations: 0 / 1.32 GB, free: 5.266 MB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.0001539/0.3004, allocations: 73.56 kB / 1.32 GB, free: 5.188 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.3004, allocations: 51.41 kB / 1.32 GB, free: 5.125 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.3006, allocations: 214.1 kB / 1.321 GB, free: 4.902 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.3006, allocations: 29.7 kB / 1.321 GB, free: 4.867 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.859e-05/0.3007, allocations: 100.1 kB / 1.321 GB, free: 4.766 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.019e-05/0.3007, allocations: 7.875 kB / 1.321 GB, free: 4.758 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.356e-05/0.3008, allocations: 33.7 kB / 1.321 GB, free: 4.719 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3009, allocations: 322.8 kB / 1.321 GB, free: 4.395 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.602e-05/0.301, allocations: 60.09 kB / 1.321 GB, free: 4.336 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.701e-05/0.301, allocations: 51.98 kB / 1.321 GB, free: 4.285 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.3011, allocations: 96.77 kB / 1.321 GB, free: 4.188 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3011, allocations: 0 / 1.321 GB, free: 4.188 MB / 1.014 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002033/0.3013, allocations: 167.2 kB / 1.321 GB, free: 4.02 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3013, allocations: 11.94 kB / 1.321 GB, free: 4.008 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3014, allocations: 0 / 1.321 GB, free: 4.008 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.3014, allocations: 0 / 1.321 GB, free: 4.008 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.21e-05/0.3014, allocations: 3.984 kB / 1.321 GB, free: 4.004 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.3014, allocations: 0 / 1.321 GB, free: 4.004 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.776e-05/0.3014, allocations: 19.89 kB / 1.321 GB, free: 3.984 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.3014, allocations: 0 / 1.321 GB, free: 3.984 MB / 1.014 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.0001395/0.3016, allocations: 130.5 kB / 1.322 GB, free: 3.848 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.968e-05/0.3016, allocations: 15.84 kB / 1.322 GB, free: 3.832 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.3017, allocations: 66.11 kB / 1.322 GB, free: 3.758 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.3017, allocations: 0 / 1.322 GB, free: 3.758 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3017, allocations: 0 / 1.322 GB, free: 3.758 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3017, allocations: 8.031 kB / 1.322 GB, free: 3.75 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.3018, allocations: 148.7 kB / 1.322 GB, free: 3.562 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3018, allocations: 4 kB / 1.322 GB, free: 3.559 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.767e-06/0.3018, allocations: 0 / 1.322 GB, free: 3.559 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.3018, allocations: 7.922 kB / 1.322 GB, free: 3.551 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.498e-06/0.3018, allocations: 0 / 1.322 GB, free: 3.551 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.3018, allocations: 0 / 1.322 GB, free: 3.551 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.3018, allocations: 0 / 1.322 GB, free: 3.551 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.966e-05/0.3019, allocations: 85.08 kB / 1.322 GB, free: 3.449 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.703e-05/0.3019, allocations: 15.84 kB / 1.322 GB, free: 3.434 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.302, allocations: 0 / 1.322 GB, free: 3.434 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.208e-05/0.302, allocations: 0 / 1.322 GB, free: 3.434 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.987e-06/0.302, allocations: 0 / 1.322 GB, free: 3.434 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.302, allocations: 7.922 kB / 1.322 GB, free: 3.426 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001263/0.3021, allocations: 148.4 kB / 1.322 GB, free: 3.281 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3021, allocations: 0 / 1.322 GB, free: 3.281 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003017/0.3024, allocations: 91.8 kB / 1.322 GB, free: 3.191 MB / 1.014 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.0005113/0.3029, allocations: 244.2 kB / 1.322 GB, free: 2.965 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002251/0.3031, allocations: 113.7 kB / 1.322 GB, free: 2.848 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3031, allocations: 0 / 1.322 GB, free: 2.848 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 1.561e-05/0.3032, allocations: 12 kB / 1.322 GB, free: 2.836 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001325/0.3033, allocations: 11.88 kB / 1.322 GB, free: 2.824 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003196/0.3036, allocations: 209.9 kB / 1.323 GB, free: 2.594 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.304, allocations: 0.7041 MB / 1.323 GB, free: 1.863 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 1.869e-05/0.304, allocations: 4 kB / 1.323 GB, free: 1.859 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.623e-05/0.304, allocations: 11.38 kB / 1.323 GB, free: 1.848 MB / 1.014 GB Notification: Performance of SimCode: time 2.81e-07/0.304, allocations: 0 / 1.323 GB, free: 1.848 MB / 1.014 GB Notification: Performance of Templates: time 0.00533/0.3093, allocations: 2.211 MB / 1.326 GB, free: 15.64 MB / 1.029 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.629699548706412]