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.001007/0.001007, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.000964/0.000964, allocations: 173 kB / 23.49 MB, free: 1.055 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.9759/0.9759, allocations: 177.1 MB / 203.8 MB, free: 5.641 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.139/2.139, allocations: 429.5 MB / 0.6736 GB, free: 4.051 MB / 0.6355 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.134e-06/2.134e-06, allocations: 0 / 0.8781 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.551e-05/2.764e-05, allocations: 3.156 kB / 0.8781 GB, free: 6.676 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001638/0.001665, allocations: 0.539 MB / 0.8787 GB, free: 6.156 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002243/0.003908, allocations: 1.657 MB / 0.8803 GB, free: 4.488 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.843e-05/0.003946, allocations: 0 / 0.8803 GB, free: 4.488 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.004123, allocations: 64.88 kB / 0.8803 GB, free: 4.426 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 2.585e-05/0.004149, allocations: 31.94 kB / 0.8804 GB, free: 4.395 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.0007054/0.004854, allocations: 273.8 kB / 0.8806 GB, free: 4.129 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.189e-05/0.004926, allocations: 31.89 kB / 0.8807 GB, free: 4.098 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.252e-05/0.004969, allocations: 11.59 kB / 0.8807 GB, free: 4.09 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 5.077e-05/0.005019, allocations: 23.91 kB / 0.8807 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.17e-05/0.005081, allocations: 43.94 kB / 0.8807 GB, free: 4.023 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.005097, allocations: 0 / 0.8807 GB, free: 4.023 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007183/0.005816, allocations: 455 kB / 0.8812 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.949e-05/0.005895, allocations: 31.86 kB / 0.8812 GB, free: 3.547 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.509e-05/0.00593, allocations: 11.92 kB / 0.8812 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0004987/0.006429, allocations: 355.7 kB / 0.8816 GB, free: 3.188 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.006434, allocations: 3.938 kB / 0.8816 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.402e-06/0.006435, allocations: 0.5938 kB / 0.8816 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.006441, allocations: 0 / 0.8816 GB, free: 3.184 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.0005439/0.006984, allocations: 472.2 kB / 0.882 GB, free: 2.688 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.007033, allocations: 13.09 kB / 0.882 GB, free: 2.676 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.832e-05/0.007091, allocations: 12.84 kB / 0.882 GB, free: 2.664 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.007267, allocations: 133.3 kB / 0.8822 GB, free: 2.508 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.007279, allocations: 1.125 kB / 0.8822 GB, free: 2.508 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.267e-05/0.007292, allocations: 4.359 kB / 0.8822 GB, free: 2.504 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.363e-05/0.007386, allocations: 31.47 kB / 0.8822 GB, free: 2.469 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.007393, allocations: 4.188 kB / 0.8822 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.007406, allocations: 4.375 kB / 0.8822 GB, free: 2.461 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.007418, allocations: 9.406 kB / 0.8822 GB, free: 2.453 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.27e-05/0.00743, allocations: 3.938 kB / 0.8822 GB, free: 2.449 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000163/0.007593, allocations: 148.6 kB / 0.8824 GB, free: 2.27 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.71e-05/0.00764, allocations: 27.88 kB / 0.8824 GB, free: 2.23 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.843e-05/0.007659, allocations: 7.688 kB / 0.8824 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.766e-05/0.007707, allocations: 8.953 kB / 0.8824 GB, free: 2.211 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.007731, allocations: 37.39 kB / 0.8824 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 9.71e-07/0.007732, allocations: 0 / 0.8824 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001512/0.007884, allocations: 53.55 kB / 0.8825 GB, free: 2.105 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.007927, allocations: 55.34 kB / 0.8825 GB, free: 2.039 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.008103, allocations: 263.5 kB / 0.8828 GB, free: 1.766 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.008114, allocations: 25.7 kB / 0.8828 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.388e-05/0.008178, allocations: 154.9 kB / 0.883 GB, free: 1.578 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.282e-05/0.008191, allocations: 3.953 kB / 0.883 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.804e-05/0.008229, allocations: 39.36 kB / 0.883 GB, free: 1.527 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.008358, allocations: 0.5001 MB / 0.8835 GB, free: 1.016 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.204e-05/0.00838, allocations: 12 kB / 0.8835 GB, free: 1.004 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.558e-05/0.008396, allocations: 12.12 kB / 0.8835 GB, free: 0.9922 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.378e-05/0.008449, allocations: 50.88 kB / 0.8836 GB, free: 0.9414 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.008452, allocations: 3.938 kB / 0.8836 GB, free: 0.9375 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 8.442e-05/0.008536, allocations: 85.59 kB / 0.8837 GB, free: 0.8477 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.00855, allocations: 7.984 kB / 0.8837 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.008566, allocations: 0 / 0.8837 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.008581, allocations: 4 kB / 0.8837 GB, free: 0.8359 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.467e-05/0.008595, allocations: 4 kB / 0.8837 GB, free: 0.832 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.008602, allocations: 3.938 kB / 0.8837 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.004e-05/0.008622, allocations: 3.953 kB / 0.8837 GB, free: 0.8242 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.00863, allocations: 4 kB / 0.8837 GB, free: 0.8203 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 8.409e-05/0.008714, allocations: 160.6 kB / 0.8838 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.517e-06/0.008723, allocations: 11.91 kB / 0.8838 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.084e-05/0.008814, allocations: 50.12 kB / 0.8839 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.008816, allocations: 0 / 0.8839 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.008823, allocations: 7.922 kB / 0.8839 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.008827, allocations: 0 / 0.8839 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.34e-05/0.008911, allocations: 148.6 kB / 0.884 GB, free: 408 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.008912, allocations: 0 / 0.884 GB, free: 408 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.833e-06/0.008914, allocations: 0 / 0.884 GB, free: 408 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.008915, allocations: 7.969 kB / 0.8841 GB, free: 400 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.008922, allocations: 0 / 0.8841 GB, free: 400 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.008924, allocations: 7.984 kB / 0.8841 GB, free: 392 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.008925, allocations: 0 / 0.8841 GB, free: 392 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.559e-05/0.00899, allocations: 88.22 kB / 0.8841 GB, free: 280 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.859e-06/0.009, allocations: 7.953 kB / 0.8842 GB, free: 272 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.022e-05/0.00901, allocations: 0 / 0.8842 GB, free: 272 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.373e-06/0.009018, allocations: 0 / 0.8842 GB, free: 272 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.496e-05/0.009033, allocations: 4 kB / 0.8842 GB, free: 268 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.009037, allocations: 3.938 kB / 0.8842 GB, free: 264 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.909e-05/0.009106, allocations: 171.2 kB / 0.8843 GB, free: 92 kB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.009106, allocations: 4 kB / 0.8843 GB, free: 88 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002238/0.00933, allocations: 87.8 kB / 0.8844 GB, free: 0 / 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.0004899/0.009819, allocations: 260.8 kB / 0.8847 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001433/0.009963, allocations: 85.36 kB / 0.8847 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.009964, allocations: 0 / 0.8847 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 7.885e-06/0.009972, allocations: 11.69 kB / 0.8848 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001077/0.01008, allocations: 0 / 0.8848 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002581/0.01034, allocations: 202.7 kB / 0.8849 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.751e-05/0.01038, allocations: 63.34 kB / 0.885 GB, free: 15.35 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.861e-05/0.01039, allocations: 4 kB / 0.885 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.611e-05/0.01041, allocations: 12.48 kB / 0.885 GB, free: 15.33 MB / 0.8542 GB Notification: Performance of SimCode: time 5.31e-07/0.01041, allocations: 0 / 0.885 GB, free: 15.33 MB / 0.8542 GB Notification: Performance of Templates: time 0.004142/0.01455, allocations: 2.221 MB / 0.8872 GB, free: 13.11 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=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.497570998035371]