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.0008675/0.0008675, allocations: 80.48 kB / 19.93 MB, free: 4.633 MB / 18.57 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.001054/0.001054, allocations: 173.9 kB / 23.21 MB, free: 1.352 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 0.8815/0.8815, allocations: 177.1 MB / 203.5 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.789/1.789, allocations: 389 MB / 0.6338 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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.874e-06/1.874e-06, allocations: 0 / 1.001 GB, free: 13.03 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.997e-05/3.184e-05, allocations: 2.281 kB / 1.001 GB, free: 13.03 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001258/0.00129, allocations: 0.5245 MB / 1.001 GB, free: 12.5 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.00189/0.00318, allocations: 1.611 MB / 1.003 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.418e-05/0.003224, allocations: 3.938 kB / 1.003 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0002097/0.003434, allocations: 59.84 kB / 1.003 GB, free: 10.81 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 2.757e-05/0.003461, allocations: 31.89 kB / 1.003 GB, free: 10.78 MB / 0.9636 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.0009001/0.004361, allocations: 279 kB / 1.003 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 9.112e-05/0.004452, allocations: 35.89 kB / 1.003 GB, free: 10.47 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 4.484e-05/0.004497, allocations: 3.984 kB / 1.003 GB, free: 10.47 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 4.958e-05/0.004547, allocations: 19.98 kB / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 6.923e-05/0.004616, allocations: 47.92 kB / 1.003 GB, free: 10.4 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.833e-05/0.004634, allocations: 7.938 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005567/0.005191, allocations: 443.1 kB / 1.004 GB, free: 9.961 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 6.012e-05/0.005251, allocations: 23.92 kB / 1.004 GB, free: 9.938 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.746e-05/0.005279, allocations: 19.92 kB / 1.004 GB, free: 9.918 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003907/0.005669, allocations: 363 kB / 1.004 GB, free: 9.562 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.005673, allocations: 0 / 1.004 GB, free: 9.562 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.793e-06/0.005675, allocations: 0 / 1.004 GB, free: 9.562 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.00568, allocations: 4 kB / 1.004 GB, free: 9.559 MB / 0.9636 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.0007107/0.00639, allocations: 357.4 kB / 1.005 GB, free: 9.18 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.006434, allocations: 8.75 kB / 1.005 GB, free: 9.172 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.796e-05/0.006472, allocations: 8.891 kB / 1.005 GB, free: 9.164 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.006622, allocations: 150.9 kB / 1.005 GB, free: 8.992 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.006631, allocations: 384 / 1.005 GB, free: 8.992 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.006642, allocations: 384 / 1.005 GB, free: 8.992 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.006746, allocations: 38.2 kB / 1.005 GB, free: 8.949 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.006754, allocations: 192 / 1.005 GB, free: 8.949 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.006764, allocations: 4.359 kB / 1.005 GB, free: 8.945 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.00677, allocations: 3.938 kB / 1.005 GB, free: 8.941 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.669e-05/0.006797, allocations: 20 kB / 1.005 GB, free: 8.922 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001439/0.006941, allocations: 141.2 kB / 1.005 GB, free: 8.754 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 4.801e-05/0.006989, allocations: 26.56 kB / 1.005 GB, free: 8.719 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.121e-05/0.00701, allocations: 12.92 kB / 1.005 GB, free: 8.703 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 3.986e-05/0.00705, allocations: 15.92 kB / 1.005 GB, free: 8.688 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.007072, allocations: 34.56 kB / 1.005 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.007073, allocations: 0 / 1.005 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of matching and sorting (n=1): time 0.0001533/0.007226, allocations: 69.59 kB / 1.005 GB, free: 8.57 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.00726, allocations: 55.34 kB / 1.005 GB, free: 8.504 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.007412, allocations: 219.5 kB / 1.005 GB, free: 8.277 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.007424, allocations: 25.7 kB / 1.005 GB, free: 8.246 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.087e-05/0.007475, allocations: 104.1 kB / 1.005 GB, free: 8.141 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.042e-05/0.007485, allocations: 7.938 kB / 1.005 GB, free: 8.133 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.00752, allocations: 25.7 kB / 1.005 GB, free: 8.102 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.604e-05/0.007616, allocations: 326.8 kB / 1.006 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.442e-05/0.00767, allocations: 55.98 kB / 1.006 GB, free: 7.719 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.835e-05/0.007708, allocations: 55.91 kB / 1.006 GB, free: 7.664 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.42e-05/0.007783, allocations: 87.36 kB / 1.006 GB, free: 7.578 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.007785, allocations: 0 / 1.006 GB, free: 7.578 MB / 0.9636 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000134/0.007919, allocations: 169.5 kB / 1.006 GB, free: 7.406 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.007934, allocations: 10.09 kB / 1.006 GB, free: 7.398 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.007955, allocations: 4 kB / 1.006 GB, free: 7.395 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.007971, allocations: 0 / 1.006 GB, free: 7.395 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.73e-05/0.007988, allocations: 0 / 1.006 GB, free: 7.395 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.007996, allocations: 3.938 kB / 1.006 GB, free: 7.391 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.352e-05/0.00802, allocations: 11.89 kB / 1.006 GB, free: 7.379 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.008029, allocations: 0 / 1.006 GB, free: 7.379 MB / 0.9636 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.0001779/0.008207, allocations: 137.8 kB / 1.006 GB, free: 7.234 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-06/0.008217, allocations: 11.91 kB / 1.006 GB, free: 7.223 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.008342, allocations: 62.19 kB / 1.006 GB, free: 7.152 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.008344, allocations: 0 / 1.006 GB, free: 7.152 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.008352, allocations: 7.922 kB / 1.006 GB, free: 7.145 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.008355, allocations: 0 / 1.006 GB, free: 7.145 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.334e-05/0.008439, allocations: 133.3 kB / 1.007 GB, free: 6.984 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.008441, allocations: 0 / 1.007 GB, free: 6.984 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.041e-06/0.008447, allocations: 0 / 1.007 GB, free: 6.984 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.008449, allocations: 0 / 1.007 GB, free: 6.984 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.008455, allocations: 4 kB / 1.007 GB, free: 6.98 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.008456, allocations: 0 / 1.007 GB, free: 6.98 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.008457, allocations: 32 / 1.007 GB, free: 6.98 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.852e-05/0.008526, allocations: 92.95 kB / 1.007 GB, free: 6.871 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.368e-05/0.008539, allocations: 11.91 kB / 1.007 GB, free: 6.859 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.008552, allocations: 3.984 kB / 1.007 GB, free: 6.855 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.055e-05/0.008563, allocations: 0 / 1.007 GB, free: 6.855 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.52e-05/0.008578, allocations: 0 / 1.007 GB, free: 6.855 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.008582, allocations: 3.938 kB / 1.007 GB, free: 6.852 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 8.253e-05/0.008665, allocations: 148.4 kB / 1.007 GB, free: 6.707 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.008665, allocations: 0 / 1.007 GB, free: 6.707 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002699/0.008935, allocations: 91.8 kB / 1.007 GB, free: 6.617 MB / 0.9636 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.0004804/0.009415, allocations: 263.5 kB / 1.007 GB, free: 6.379 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001692/0.009584, allocations: 113.7 kB / 1.007 GB, free: 6.262 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.009587, allocations: 0 / 1.007 GB, free: 6.262 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 1.209e-05/0.009599, allocations: 15.92 kB / 1.007 GB, free: 6.246 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001373/0.009736, allocations: 14.53 kB / 1.007 GB, free: 6.234 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003477/0.01008, allocations: 239.4 kB / 1.007 GB, free: 5.969 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.065e-05/0.01016, allocations: 92.28 kB / 1.008 GB, free: 5.859 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.916e-05/0.01018, allocations: 12.5 kB / 1.008 GB, free: 5.848 MB / 0.9636 GB Notification: Performance of SimCode: time 8.31e-07/0.01018, allocations: 0 / 1.008 GB, free: 5.848 MB / 0.9636 GB Notification: Performance of Templates: time 0.003725/0.01391, allocations: 2.496 MB / 1.01 GB, free: 3.352 MB / 0.9636 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: 8.247809215448797]