Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001264/0.001264, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.001041/0.001041, allocations: 162.7 kB / 24.87 MB, free: 8.891 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.9649/0.9649, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.738/1.738, allocations: 359 MB / 0.6063 GB, free: 10.88 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Utilities.Clustering.Validation.KMeans_1d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 3.938 kB / 0.7883 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.82e-05/2.994e-05, allocations: 2.312 kB / 0.7883 GB, free: 12.27 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001699/0.001729, allocations: 0.5422 MB / 0.7888 GB, free: 11.74 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.002316/0.004045, allocations: 1.636 MB / 0.7904 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.116e-05/0.004096, allocations: 4 kB / 0.7904 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.004264, allocations: 20.58 kB / 0.7904 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.834e-05/0.004292, allocations: 7.984 kB / 0.7904 GB, free: 10.06 MB / 0.7448 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0009314/0.005223, allocations: 269 kB / 0.7907 GB, free: 9.797 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 8.243e-05/0.005306, allocations: 25.45 kB / 0.7907 GB, free: 9.773 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 4.013e-05/0.005346, allocations: 3.984 kB / 0.7907 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 4.6e-05/0.005392, allocations: 11.98 kB / 0.7907 GB, free: 9.758 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.645e-05/0.005438, allocations: 17.55 kB / 0.7907 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.811e-05/0.005456, allocations: 0 / 0.7907 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006857/0.006142, allocations: 435 kB / 0.7911 GB, free: 9.316 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.157e-05/0.006204, allocations: 23.92 kB / 0.7912 GB, free: 9.293 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 1.809e-05/0.006222, allocations: 7.344 kB / 0.7912 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004872/0.006709, allocations: 335.1 kB / 0.7915 GB, free: 8.961 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.006713, allocations: 0 / 0.7915 GB, free: 8.961 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.062e-06/0.006714, allocations: 0 / 0.7915 GB, free: 8.961 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.369e-06/0.006718, allocations: 3.938 kB / 0.7915 GB, free: 8.957 MB / 0.7448 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.0004035/0.007122, allocations: 435.9 kB / 0.7919 GB, free: 8.496 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.007162, allocations: 12.03 kB / 0.7919 GB, free: 8.484 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.007197, allocations: 4.891 kB / 0.7919 GB, free: 8.48 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001406/0.007338, allocations: 127.5 kB / 0.7921 GB, free: 8.332 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.007351, allocations: 13.19 kB / 0.7921 GB, free: 8.32 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.176e-06/0.007359, allocations: 384 / 0.7921 GB, free: 8.32 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.394e-05/0.007433, allocations: 26.8 kB / 0.7921 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.007441, allocations: 0.9062 kB / 0.7921 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-06/0.007447, allocations: 384 / 0.7921 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.007454, allocations: 9.344 kB / 0.7921 GB, free: 8.281 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.221e-05/0.007466, allocations: 3.984 kB / 0.7921 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001238/0.00759, allocations: 109.2 kB / 0.7922 GB, free: 8.145 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 3.967e-05/0.00763, allocations: 35.61 kB / 0.7922 GB, free: 8.098 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.37e-05/0.007643, allocations: 7.688 kB / 0.7923 GB, free: 8.086 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.007678, allocations: 5.094 kB / 0.7923 GB, free: 8.082 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.007702, allocations: 37.39 kB / 0.7923 GB, free: 8.035 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.007703, allocations: 0.75 kB / 0.7923 GB, free: 8.035 MB / 0.7448 GB Notification: Performance of matching and sorting (n=1): time 0.000117/0.00782, allocations: 41.58 kB / 0.7923 GB, free: 7.988 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.929e-05/0.007849, allocations: 52.09 kB / 0.7924 GB, free: 7.926 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.007982, allocations: 227 kB / 0.7926 GB, free: 7.688 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.848e-06/0.007992, allocations: 25.7 kB / 0.7926 GB, free: 7.656 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.877e-05/0.008051, allocations: 146.8 kB / 0.7928 GB, free: 7.508 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.199e-05/0.008063, allocations: 3.984 kB / 0.7928 GB, free: 7.504 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.008105, allocations: 31.86 kB / 0.7928 GB, free: 7.465 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.008244, allocations: 0.5014 MB / 0.7933 GB, free: 6.953 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.031e-05/0.008264, allocations: 4 kB / 0.7933 GB, free: 6.949 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.644e-05/0.00828, allocations: 8 kB / 0.7933 GB, free: 6.941 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.472e-05/0.008335, allocations: 35.66 kB / 0.7933 GB, free: 6.902 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.008337, allocations: 2.188 kB / 0.7933 GB, free: 6.902 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12) (initialization): time 8.989e-05/0.008427, allocations: 65.59 kB / 0.7934 GB, free: 6.832 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.008443, allocations: 7.984 kB / 0.7934 GB, free: 6.824 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.008458, allocations: 4 kB / 0.7934 GB, free: 6.82 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.298e-06/0.008468, allocations: 0 / 0.7934 GB, free: 6.82 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.289e-05/0.008481, allocations: 2.688 kB / 0.7934 GB, free: 6.82 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.595e-06/0.008483, allocations: 0 / 0.7934 GB, free: 6.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.501e-05/0.008508, allocations: 15.83 kB / 0.7934 GB, free: 6.805 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.008516, allocations: 0 / 0.7934 GB, free: 6.805 MB / 0.7448 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 8.752e-05/0.008603, allocations: 160.6 kB / 0.7936 GB, free: 6.637 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.033e-05/0.008614, allocations: 7.953 kB / 0.7936 GB, free: 6.629 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.515e-05/0.008709, allocations: 39.09 kB / 0.7936 GB, free: 6.586 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.008711, allocations: 0 / 0.7936 GB, free: 6.586 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.008713, allocations: 4 kB / 0.7936 GB, free: 6.582 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.008717, allocations: 3.938 kB / 0.7936 GB, free: 6.578 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.879e-05/0.008806, allocations: 117.7 kB / 0.7937 GB, free: 6.438 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.008808, allocations: 0.5 kB / 0.7937 GB, free: 6.438 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.962e-06/0.008814, allocations: 0 / 0.7937 GB, free: 6.438 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.008818, allocations: 4.484 kB / 0.7937 GB, free: 6.434 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-06/0.008822, allocations: 5.422 kB / 0.7938 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.008824, allocations: 0 / 0.7938 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.008825, allocations: 4 kB / 0.7938 GB, free: 6.426 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.009e-05/0.008895, allocations: 72.94 kB / 0.7938 GB, free: 6.332 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.033e-05/0.008906, allocations: 3.953 kB / 0.7938 GB, free: 6.328 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.448e-06/0.008915, allocations: 6 kB / 0.7938 GB, free: 6.324 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.294e-05/0.008928, allocations: 3.984 kB / 0.7938 GB, free: 6.32 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.098e-05/0.008939, allocations: 0 / 0.7938 GB, free: 6.32 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.008941, allocations: 0 / 0.7938 GB, free: 6.32 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.546e-05/0.009007, allocations: 149.4 kB / 0.794 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.009007, allocations: 0.5 kB / 0.794 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003405/0.009347, allocations: 87.8 kB / 0.7941 GB, free: 6.09 MB / 0.7448 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.0005251/0.009872, allocations: 269.6 kB / 0.7943 GB, free: 5.852 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001261/0.009999, allocations: 73.3 kB / 0.7944 GB, free: 5.77 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.01, allocations: 3.906 kB / 0.7944 GB, free: 5.77 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 9.337e-06/0.01001, allocations: 11.67 kB / 0.7944 GB, free: 5.754 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001482/0.01016, allocations: 8 kB / 0.7944 GB, free: 5.746 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002353/0.01039, allocations: 142.5 kB / 0.7946 GB, free: 5.578 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.091e-05/0.01043, allocations: 63.34 kB / 0.7946 GB, free: 5.496 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.221e-05/0.01046, allocations: 3.984 kB / 0.7946 GB, free: 5.492 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.237e-05/0.0105, allocations: 70.2 kB / 0.7947 GB, free: 5.422 MB / 0.7448 GB Notification: Performance of SimCode: time 8.51e-07/0.0105, allocations: 0 / 0.7947 GB, free: 5.422 MB / 0.7448 GB Notification: Performance of Templates: time 0.005528/0.01603, allocations: 2.538 MB / 0.7972 GB, free: 2.898 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/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: 4.72659711772576]