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.001507/0.001507, allocations: 82.05 kB / 19.87 MB, free: 4.617 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.001784/0.001784, allocations: 170 kB / 23.27 MB, free: 1.223 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.981/0.981, allocations: 177.1 MB / 203.7 MB, free: 5.488 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 2.375/2.375, allocations: 438.1 MB / 0.682 GB, free: 14.17 MB / 0.6511 GB " [Timeout remaining time 177] 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 2.545e-06/2.545e-06, allocations: 0 / 0.8897 GB, free: 9.828 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.91e-05/3.164e-05, allocations: 6.25 kB / 0.8897 GB, free: 9.82 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001876/0.001908, allocations: 0.5393 MB / 0.8902 GB, free: 9.285 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.002457/0.004364, allocations: 1.637 MB / 0.8918 GB, free: 7.629 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.944e-05/0.004424, allocations: 7.938 kB / 0.8918 GB, free: 7.621 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0002293/0.004653, allocations: 59.91 kB / 0.8919 GB, free: 7.562 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 4.165e-05/0.004695, allocations: 27.95 kB / 0.8919 GB, free: 7.535 MB / 0.8542 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.001101/0.005796, allocations: 286.9 kB / 0.8922 GB, free: 7.254 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 9.067e-05/0.005887, allocations: 39.89 kB / 0.8922 GB, free: 7.215 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 3.729e-05/0.005924, allocations: 0 / 0.8922 GB, free: 7.215 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 5.887e-05/0.005983, allocations: 19.97 kB / 0.8922 GB, free: 7.195 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 7.254e-05/0.006056, allocations: 51.88 kB / 0.8923 GB, free: 7.145 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.624e-05/0.006072, allocations: 0 / 0.8923 GB, free: 7.145 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007498/0.006822, allocations: 451 kB / 0.8927 GB, free: 6.703 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 5.888e-05/0.00688, allocations: 27.92 kB / 0.8928 GB, free: 6.676 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.118e-05/0.006902, allocations: 11.94 kB / 0.8928 GB, free: 6.664 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0004942/0.007396, allocations: 363 kB / 0.8931 GB, free: 6.309 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.0074, allocations: 0 / 0.8931 GB, free: 6.309 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.913e-06/0.007402, allocations: 0 / 0.8931 GB, free: 6.309 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.007407, allocations: 0 / 0.8931 GB, free: 6.309 MB / 0.8542 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.0004809/0.007888, allocations: 471.6 kB / 0.8936 GB, free: 5.812 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/0.007942, allocations: 8.625 kB / 0.8936 GB, free: 5.805 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.007988, allocations: 20.78 kB / 0.8936 GB, free: 5.785 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.008128, allocations: 133.4 kB / 0.8937 GB, free: 5.629 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.008139, allocations: 384 / 0.8937 GB, free: 5.629 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.564e-06/0.008146, allocations: 4.312 kB / 0.8937 GB, free: 5.625 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.187e-05/0.008218, allocations: 38.25 kB / 0.8938 GB, free: 5.582 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.008226, allocations: 192 / 0.8938 GB, free: 5.582 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.551e-06/0.008232, allocations: 384 / 0.8938 GB, free: 5.582 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.00824, allocations: 3.938 kB / 0.8938 GB, free: 5.578 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.105e-05/0.008251, allocations: 4 kB / 0.8938 GB, free: 5.574 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.008395, allocations: 117.2 kB / 0.8939 GB, free: 5.434 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 3.958e-05/0.008435, allocations: 23.06 kB / 0.8939 GB, free: 5.398 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.544e-05/0.00845, allocations: 15.69 kB / 0.8939 GB, free: 5.379 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.525e-05/0.008495, allocations: 15.97 kB / 0.8939 GB, free: 5.363 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.008516, allocations: 33.39 kB / 0.894 GB, free: 5.32 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.008516, allocations: 4 kB / 0.894 GB, free: 5.316 MB / 0.8542 GB Notification: Performance of matching and sorting (n=1): time 0.0001073/0.008624, allocations: 45.55 kB / 0.894 GB, free: 5.266 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.008652, allocations: 55.41 kB / 0.8941 GB, free: 5.199 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.008788, allocations: 262.7 kB / 0.8943 GB, free: 4.926 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.008799, allocations: 25.7 kB / 0.8943 GB, free: 4.895 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.66e-05/0.008856, allocations: 158.8 kB / 0.8945 GB, free: 4.734 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.007e-05/0.008866, allocations: 3.953 kB / 0.8945 GB, free: 4.73 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.605e-05/0.008902, allocations: 39.34 kB / 0.8945 GB, free: 4.684 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.009021, allocations: 0.504 MB / 0.895 GB, free: 4.168 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.753e-05/0.009039, allocations: 11.94 kB / 0.895 GB, free: 4.156 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.368e-05/0.009052, allocations: 12.12 kB / 0.895 GB, free: 4.145 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.204e-05/0.009095, allocations: 39.66 kB / 0.8951 GB, free: 4.102 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.009096, allocations: 0 / 0.8951 GB, free: 4.102 MB / 0.8542 GB Notification: Performance of matching and sorting (n=16) (initialization): time 8.069e-05/0.009177, allocations: 84.25 kB / 0.8952 GB, free: 4.016 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.009192, allocations: 4 kB / 0.8952 GB, free: 4.012 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.009206, allocations: 4 kB / 0.8952 GB, free: 4.008 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.009218, allocations: 0 / 0.8952 GB, free: 4.008 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.465e-05/0.009232, allocations: 0 / 0.8952 GB, free: 4.008 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.515e-06/0.009235, allocations: 0 / 0.8952 GB, free: 4.008 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.13e-05/0.009256, allocations: 19.78 kB / 0.8952 GB, free: 3.988 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-06/0.009263, allocations: 3.938 kB / 0.8952 GB, free: 3.984 MB / 0.8542 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 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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 7.968e-05/0.009343, allocations: 164.6 kB / 0.8953 GB, free: 3.812 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.885e-06/0.009351, allocations: 7.953 kB / 0.8954 GB, free: 3.805 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.347e-05/0.009434, allocations: 42.19 kB / 0.8954 GB, free: 3.758 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.009437, allocations: 3.984 kB / 0.8954 GB, free: 3.754 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.009438, allocations: 0 / 0.8954 GB, free: 3.754 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.009442, allocations: 3.938 kB / 0.8954 GB, free: 3.75 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.49e-05/0.009517, allocations: 117.2 kB / 0.8955 GB, free: 3.609 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.009518, allocations: 0 / 0.8955 GB, free: 3.609 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.767e-06/0.009522, allocations: 0 / 0.8955 GB, free: 3.609 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.009523, allocations: 4.031 kB / 0.8955 GB, free: 3.605 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-06/0.009527, allocations: 0 / 0.8955 GB, free: 3.605 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-07/0.009527, allocations: 0 / 0.8955 GB, free: 3.605 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.009528, allocations: 0 / 0.8955 GB, free: 3.605 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.451e-05/0.009583, allocations: 96.22 kB / 0.8956 GB, free: 3.488 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.338e-05/0.009596, allocations: 19.89 kB / 0.8956 GB, free: 3.469 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.985e-06/0.009604, allocations: 0 / 0.8956 GB, free: 3.469 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.586e-06/0.009613, allocations: 0 / 0.8956 GB, free: 3.469 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.069e-05/0.009623, allocations: 0 / 0.8956 GB, free: 3.469 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.009626, allocations: 4 kB / 0.8956 GB, free: 3.465 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.708e-05/0.009693, allocations: 172.3 kB / 0.8958 GB, free: 3.297 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.009693, allocations: 0 / 0.8958 GB, free: 3.297 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002551/0.009948, allocations: 87.8 kB / 0.8959 GB, free: 3.211 MB / 0.8542 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.0004277/0.01038, allocations: 255.1 kB / 0.8961 GB, free: 2.977 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001218/0.0105, allocations: 89.23 kB / 0.8962 GB, free: 2.879 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.0105, allocations: 0 / 0.8962 GB, free: 2.879 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 7.234e-06/0.01051, allocations: 11.67 kB / 0.8962 GB, free: 2.863 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001091/0.01062, allocations: 4 kB / 0.8962 GB, free: 2.859 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002309/0.01085, allocations: 186.8 kB / 0.8964 GB, free: 2.648 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.348e-05/0.01088, allocations: 63.34 kB / 0.8965 GB, free: 2.566 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.219e-05/0.0109, allocations: 7.938 kB / 0.8965 GB, free: 2.559 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.197e-05/0.01094, allocations: 70.2 kB / 0.8965 GB, free: 2.488 MB / 0.8542 GB Notification: Performance of SimCode: time 1.222e-06/0.01095, allocations: 0 / 0.8965 GB, free: 2.488 MB / 0.8542 GB Notification: Performance of Templates: time 0.004585/0.01553, allocations: 2.615 MB / 0.8991 GB, free: 15.88 MB / 0.8698 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.370107068680227]