Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001103/0.001104, allocations: 199.2 kB / 16.14 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002089/0.002089, allocations: 267.2 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9377/0.9377, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 96.84 kB / 0.5945 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1353, allocations: 86.99 MB / 0.6794 GB, free: 1.223 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.00149/0.1368, allocations: 0.5744 MB / 0.68 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.1388, allocations: 1.64 MB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.28e-05/0.1388, allocations: 0 / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.139, allocations: 63.83 kB / 0.6816 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.185e-05/0.1391, allocations: 24.84 kB / 0.6817 GB, free: 14.92 MB / 494.1 MB [/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.0006742/0.1397, allocations: 194.3 kB / 0.6819 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.669e-05/0.1398, allocations: 35.89 kB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.216e-05/0.1399, allocations: 0 / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.933e-05/0.1399, allocations: 28.53 kB / 0.6819 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.208e-05/0.14, allocations: 39.95 kB / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.14, allocations: 0 / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004854/0.1405, allocations: 271.6 kB / 0.6822 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.128e-05/0.1406, allocations: 23.92 kB / 0.6822 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.861e-05/0.1406, allocations: 31.69 kB / 0.6823 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004061/0.141, allocations: 291.5 kB / 0.6825 GB, free: 14.02 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.141, allocations: 0 / 0.6825 GB, free: 14.02 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.141, allocations: 0 / 0.6825 GB, free: 14.02 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.1411, allocations: 0 / 0.6825 GB, free: 14.02 MB / 494.1 MB 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.0005082/0.1416, allocations: 435 kB / 0.683 GB, free: 13.55 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.1416, allocations: 8.031 kB / 0.683 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.1417, allocations: 12.75 kB / 0.683 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.1418, allocations: 184.8 kB / 0.6832 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.1419, allocations: 384 / 0.6832 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.274e-05/0.1419, allocations: 384 / 0.6832 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.142, allocations: 53.92 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.142, allocations: 0 / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.142, allocations: 4 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.142, allocations: 3.938 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001144/0.1421, allocations: 19.98 kB / 0.6832 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001988/0.1424, allocations: 189.6 kB / 0.6834 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.668e-05/0.1424, allocations: 26.56 kB / 0.6834 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.203e-05/0.1424, allocations: 12.92 kB / 0.6835 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.966e-05/0.1425, allocations: 11.98 kB / 0.6835 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.1425, allocations: 34.5 kB / 0.6835 GB, free: 12.89 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 2.334e-06/0.1425, allocations: 4 kB / 0.6835 GB, free: 12.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001557/0.1427, allocations: 69.44 kB / 0.6836 GB, free: 12.81 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.1427, allocations: 51.41 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.1429, allocations: 215.5 kB / 0.6838 GB, free: 12.53 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.143, allocations: 25.7 kB / 0.6838 GB, free: 12.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.378e-05/0.143, allocations: 108 kB / 0.684 GB, free: 12.39 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.628e-06/0.143, allocations: 0 / 0.684 GB, free: 12.39 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.993e-05/0.1431, allocations: 29.7 kB / 0.684 GB, free: 12.35 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1432, allocations: 327 kB / 0.6843 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.286e-05/0.1433, allocations: 51.98 kB / 0.6843 GB, free: 11.97 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.154e-05/0.1433, allocations: 59.97 kB / 0.6844 GB, free: 11.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.946e-05/0.1434, allocations: 95.25 kB / 0.6845 GB, free: 11.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1434, allocations: 0 / 0.6845 GB, free: 11.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001716/0.1436, allocations: 165.4 kB / 0.6846 GB, free: 11.65 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.1436, allocations: 11.94 kB / 0.6847 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.1437, allocations: 0 / 0.6847 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.729e-06/0.1437, allocations: 0 / 0.6847 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.054e-05/0.1437, allocations: 0 / 0.6847 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.1437, allocations: 4.062 kB / 0.6847 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.542e-05/0.1437, allocations: 11.84 kB / 0.6847 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.1437, allocations: 4 kB / 0.6847 GB, free: 11.62 MB / 494.1 MB 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.0001394/0.1439, allocations: 135.1 kB / 0.6848 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.1439, allocations: 11.84 kB / 0.6848 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.144, allocations: 62.19 kB / 0.6849 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.144, allocations: 0 / 0.6849 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.144, allocations: 4.031 kB / 0.6849 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.144, allocations: 7.984 kB / 0.6849 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.1442, allocations: 181.6 kB / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1442, allocations: 0 / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.931e-06/0.1442, allocations: 4 kB / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.1442, allocations: 3.938 kB / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-06/0.1442, allocations: 0 / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.1442, allocations: 3.938 kB / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1442, allocations: 0 / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.698e-05/0.1443, allocations: 88.97 kB / 0.6852 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.856e-05/0.1443, allocations: 92.94 kB / 0.6852 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.487e-05/0.1444, allocations: 0 / 0.6852 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.292e-05/0.1444, allocations: 3.938 kB / 0.6853 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.257e-06/0.1444, allocations: 0 / 0.6853 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-06/0.1444, allocations: 0 / 0.6853 GB, free: 10.93 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001075/0.1445, allocations: 148.4 kB / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1445, allocations: 0 / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002992/0.1448, allocations: 83.98 kB / 0.6855 GB, free: 10.71 MB / 494.1 MB 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.0004642/0.1453, allocations: 234.7 kB / 0.6857 GB, free: 10.49 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001663/0.1455, allocations: 125.7 kB / 0.6858 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1455, allocations: 0 / 0.6858 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.737e-05/0.1455, allocations: 20.05 kB / 0.6858 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.1457, allocations: 9.203 kB / 0.6858 GB, free: 10.33 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000319/0.146, allocations: 227.7 kB / 0.6861 GB, free: 10.08 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.1463, allocations: 0.7121 MB / 0.6868 GB, free: 9.344 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.769e-05/0.1463, allocations: 0 / 0.6868 GB, free: 9.344 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.315e-05/0.1463, allocations: 11.44 kB / 0.6868 GB, free: 9.332 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1463, allocations: 0 / 0.6868 GB, free: 9.332 MB / 494.1 MB Notification: Performance of Templates: time 0.004742/0.1511, allocations: 2.105 MB / 0.6888 GB, free: 7.227 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)