Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.001506/0.001506, allocations: 73.88 kB / 20.65 MB, free: 3.844 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.001853/0.001853, allocations: 169 kB / 24.06 MB, free: 452 kB / 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.9692/0.9692, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.11/2.11, allocations: 429.5 MB / 0.6743 GB, free: 3.922 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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 1.094 kB / 0.8793 GB, free: 6.082 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.092e-05, allocations: 2.312 kB / 0.8793 GB, free: 6.078 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001151/0.001172, allocations: 0.5439 MB / 0.8799 GB, free: 5.555 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001812/0.002984, allocations: 1.641 MB / 0.8815 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.973e-05/0.003024, allocations: 4 kB / 0.8815 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.003163, allocations: 23.84 kB / 0.8815 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 2.466e-05/0.003188, allocations: 11.27 kB / 0.8815 GB, free: 3.867 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.000725/0.003913, allocations: 283 kB / 0.8818 GB, free: 3.59 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 5.772e-05/0.003971, allocations: 24.5 kB / 0.8818 GB, free: 3.566 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.174e-05/0.004002, allocations: 0 / 0.8818 GB, free: 3.566 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 3.683e-05/0.004039, allocations: 21.55 kB / 0.8818 GB, free: 3.547 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 3.314e-05/0.004072, allocations: 11.98 kB / 0.8818 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.004084, allocations: 0 / 0.8818 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005227/0.004606, allocations: 459.5 kB / 0.8823 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.748e-05/0.004654, allocations: 21.39 kB / 0.8823 GB, free: 3.066 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.053e-05/0.004674, allocations: 11.92 kB / 0.8823 GB, free: 3.055 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003621/0.005036, allocations: 343.1 kB / 0.8826 GB, free: 2.719 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.005038, allocations: 5.406 kB / 0.8826 GB, free: 2.715 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.61e-07/0.005039, allocations: 0 / 0.8826 GB, free: 2.715 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.005044, allocations: 0 / 0.8826 GB, free: 2.715 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.0003538/0.005398, allocations: 439.9 kB / 0.8831 GB, free: 2.25 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.005431, allocations: 16.03 kB / 0.8831 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.00546, allocations: 8.844 kB / 0.8831 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.005585, allocations: 131.5 kB / 0.8832 GB, free: 2.074 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.565e-06/0.005592, allocations: 384 / 0.8832 GB, free: 2.074 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.992e-06/0.005598, allocations: 384 / 0.8832 GB, free: 2.074 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.41e-05/0.005652, allocations: 34.2 kB / 0.8832 GB, free: 2.035 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.00566, allocations: 192 / 0.8832 GB, free: 2.035 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.429e-06/0.005664, allocations: 4.375 kB / 0.8833 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.00567, allocations: 3.938 kB / 0.8833 GB, free: 2.027 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.652e-06/0.005677, allocations: 0 / 0.8833 GB, free: 2.027 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.421e-05/0.005771, allocations: 113.2 kB / 0.8834 GB, free: 1.891 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.346e-05/0.005805, allocations: 31.06 kB / 0.8834 GB, free: 1.848 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.046e-05/0.005815, allocations: 7.688 kB / 0.8834 GB, free: 1.836 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.005844, allocations: 8.047 kB / 0.8834 GB, free: 1.828 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.005869, allocations: 41.33 kB / 0.8834 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 5.41e-07/0.00587, allocations: 0 / 0.8834 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 8.852e-05/0.005958, allocations: 33.66 kB / 0.8835 GB, free: 1.738 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/0.005986, allocations: 55.41 kB / 0.8835 GB, free: 1.672 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.006089, allocations: 225.7 kB / 0.8837 GB, free: 1.434 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.636e-06/0.006098, allocations: 25.7 kB / 0.8838 GB, free: 1.402 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.924e-05/0.006147, allocations: 155 kB / 0.8839 GB, free: 1.246 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.496e-06/0.006156, allocations: 3.953 kB / 0.8839 GB, free: 1.242 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.131e-05/0.006187, allocations: 35.34 kB / 0.884 GB, free: 1.199 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.006299, allocations: 0.4962 MB / 0.8844 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.318e-05/0.006312, allocations: 4 kB / 0.8844 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.057e-05/0.006323, allocations: 11.94 kB / 0.8845 GB, free: 0.6758 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.527e-05/0.006358, allocations: 31.61 kB / 0.8845 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.00636, allocations: 0 / 0.8845 GB, free: 0.6406 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12) (initialization): time 6.892e-05/0.006429, allocations: 69.64 kB / 0.8846 GB, free: 0.5664 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.006443, allocations: 6.5 kB / 0.8846 GB, free: 0.5625 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.006454, allocations: 4.062 kB / 0.8846 GB, free: 0.5586 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.845e-06/0.006461, allocations: 4 kB / 0.8846 GB, free: 0.5547 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.798e-06/0.006471, allocations: 0 / 0.8846 GB, free: 0.5547 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.944e-06/0.006473, allocations: 0 / 0.8846 GB, free: 0.5547 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.987e-05/0.006493, allocations: 15.83 kB / 0.8846 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.0065, allocations: 3.984 kB / 0.8846 GB, free: 0.5352 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: 9 (labels[1],labels[2],labels[3],labels[4],labels[5],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.007e-05/0.00657, allocations: 160.5 kB / 0.8847 GB, free: 376 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-06/0.006577, allocations: 7.953 kB / 0.8847 GB, free: 368 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.314e-05/0.00664, allocations: 41.5 kB / 0.8848 GB, free: 320 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.006641, allocations: 4.031 kB / 0.8848 GB, free: 316 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.006644, allocations: 4 kB / 0.8848 GB, free: 312 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.006647, allocations: 3.938 kB / 0.8848 GB, free: 308 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.119e-05/0.006708, allocations: 109.2 kB / 0.8849 GB, free: 172 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.00671, allocations: 4 kB / 0.8849 GB, free: 168 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.705e-06/0.006713, allocations: 0 / 0.8849 GB, free: 168 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.006714, allocations: 0 / 0.8849 GB, free: 168 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.747e-06/0.006718, allocations: 4 kB / 0.8849 GB, free: 164 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.006718, allocations: 0 / 0.8849 GB, free: 164 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.006719, allocations: 0 / 0.8849 GB, free: 164 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.796e-05/0.006767, allocations: 80.27 kB / 0.885 GB, free: 60 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.857e-06/0.006776, allocations: 15.97 kB / 0.885 GB, free: 44 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.163e-06/0.006783, allocations: 0 / 0.885 GB, free: 44 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.543e-06/0.00679, allocations: 0 / 0.885 GB, free: 44 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.037e-06/0.006799, allocations: 0 / 0.885 GB, free: 44 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-06/0.0068, allocations: 0 / 0.885 GB, free: 44 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.425e-05/0.006864, allocations: 153.2 kB / 0.8851 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.006864, allocations: 4 kB / 0.8852 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002322/0.007096, allocations: 87.8 kB / 0.8852 GB, free: 15.8 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.0004049/0.007501, allocations: 260.5 kB / 0.8855 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001038/0.007605, allocations: 73.3 kB / 0.8856 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.007606, allocations: 0 / 0.8856 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 7.434e-06/0.007614, allocations: 11.62 kB / 0.8856 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001022/0.007716, allocations: 8 kB / 0.8856 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001747/0.007891, allocations: 146.7 kB / 0.8857 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.962e-05/0.00792, allocations: 59.34 kB / 0.8858 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 1.523e-05/0.007936, allocations: 4 kB / 0.8858 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.26e-05/0.007968, allocations: 70.2 kB / 0.8858 GB, free: 15.13 MB / 0.8542 GB Notification: Performance of SimCode: time 5.51e-07/0.007969, allocations: 0 / 0.8858 GB, free: 15.13 MB / 0.8542 GB Notification: Performance of Templates: time 0.004108/0.01208, allocations: 2.6 MB / 0.8884 GB, free: 12.54 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.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.367257276084274]