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.0008274/0.0008274, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0008218/0.0008218, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.8557/0.8557, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.63/1.63, allocations: 359 MB / 0.6044 GB, free: 11.09 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.643e-06/1.643e-06, allocations: 0 / 0.9517 GB, free: 3.039 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.595e-05/2.759e-05, allocations: 2.281 kB / 0.9517 GB, free: 3.035 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001074/0.001102, allocations: 0.5245 MB / 0.9522 GB, free: 2.504 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001631/0.002732, allocations: 1.603 MB / 0.9538 GB, free: 0.8828 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.757e-05/0.00277, allocations: 0 / 0.9538 GB, free: 0.8828 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.002919, allocations: 27.91 kB / 0.9538 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 2.062e-05/0.002939, allocations: 11.92 kB / 0.9538 GB, free: 0.8438 MB / 0.9011 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.0007004/0.00364, allocations: 267 kB / 0.9541 GB, free: 0.582 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 6.175e-05/0.003702, allocations: 23.92 kB / 0.9541 GB, free: 0.5586 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 4.129e-05/0.003743, allocations: 7.938 kB / 0.9541 GB, free: 0.5508 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 4.165e-05/0.003785, allocations: 15.92 kB / 0.9541 GB, free: 0.5352 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 3.693e-05/0.003822, allocations: 15.97 kB / 0.9541 GB, free: 0.5195 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.003836, allocations: 0 / 0.9541 GB, free: 0.5195 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004609/0.004297, allocations: 423.2 kB / 0.9545 GB, free: 108 kB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 4.861e-05/0.004345, allocations: 23.94 kB / 0.9545 GB, free: 84 kB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.028e-05/0.004365, allocations: 11.92 kB / 0.9546 GB, free: 72 kB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0003342/0.0047, allocations: 331.2 kB / 0.9549 GB, free: 15.75 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.004703, allocations: 3.984 kB / 0.9549 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.122e-06/0.004704, allocations: 0 / 0.9549 GB, free: 15.74 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.004708, allocations: 0 / 0.9549 GB, free: 15.74 MB / 0.9167 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.0003142/0.005023, allocations: 341.4 kB / 0.9552 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.005057, allocations: 8.031 kB / 0.9552 GB, free: 15.37 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.233e-05/0.005089, allocations: 8.891 kB / 0.9552 GB, free: 15.36 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.005209, allocations: 129.7 kB / 0.9553 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.983e-06/0.005216, allocations: 384 / 0.9553 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.005224, allocations: 4.375 kB / 0.9553 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.247e-05/0.005307, allocations: 34.27 kB / 0.9554 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.872e-06/0.005314, allocations: 192 / 0.9554 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.005322, allocations: 384 / 0.9554 GB, free: 15.17 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.005329, allocations: 11.92 kB / 0.9554 GB, free: 15.16 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.284e-05/0.005352, allocations: 16 kB / 0.9554 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000118/0.00547, allocations: 121.3 kB / 0.9555 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 4.02e-05/0.00551, allocations: 30.5 kB / 0.9555 GB, free: 14.95 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.822e-05/0.005528, allocations: 20.84 kB / 0.9556 GB, free: 14.93 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.00556, allocations: 4 kB / 0.9556 GB, free: 14.93 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.891e-05/0.005579, allocations: 38.56 kB / 0.9556 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=1): time 6.11e-07/0.00558, allocations: 0 / 0.9556 GB, free: 14.88 MB / 0.9167 GB Notification: Performance of matching and sorting (n=1): time 0.0001238/0.005704, allocations: 61.64 kB / 0.9557 GB, free: 14.81 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.005734, allocations: 59.28 kB / 0.9557 GB, free: 14.74 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.005837, allocations: 168.7 kB / 0.9559 GB, free: 14.57 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 9.338e-06/0.005847, allocations: 25.7 kB / 0.9559 GB, free: 14.54 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 3.872e-05/0.005885, allocations: 96.12 kB / 0.956 GB, free: 14.44 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 9.838e-06/0.005895, allocations: 3.953 kB / 0.956 GB, free: 14.44 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.005925, allocations: 29.7 kB / 0.956 GB, free: 14.4 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.382e-05/0.005999, allocations: 318.8 kB / 0.9563 GB, free: 14.08 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.733e-05/0.006036, allocations: 40.11 kB / 0.9564 GB, free: 14.04 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.872e-05/0.006065, allocations: 43.97 kB / 0.9564 GB, free: 14 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.891e-05/0.006123, allocations: 60.84 kB / 0.9565 GB, free: 13.94 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.006126, allocations: 0 / 0.9565 GB, free: 13.94 MB / 0.9167 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001005/0.006226, allocations: 137.5 kB / 0.9566 GB, free: 13.8 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.00624, allocations: 4 kB / 0.9566 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.006254, allocations: 0 / 0.9566 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.006265, allocations: 0 / 0.9566 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.224e-05/0.006277, allocations: 4 kB / 0.9566 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.006282, allocations: 3.938 kB / 0.9566 GB, free: 13.79 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.572e-05/0.006298, allocations: 3.953 kB / 0.9566 GB, free: 13.78 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.006306, allocations: 8.047 kB / 0.9566 GB, free: 13.77 MB / 0.9167 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 (cluster_size[3],cluster_size[2],cluster_size[1],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 9.696e-05/0.006403, allocations: 121.8 kB / 0.9567 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.172e-06/0.00641, allocations: 7.953 kB / 0.9567 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.119e-05/0.006491, allocations: 57.5 kB / 0.9568 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.006493, allocations: 0 / 0.9568 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.006497, allocations: 7.875 kB / 0.9568 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.006499, allocations: 3.938 kB / 0.9568 GB, free: 13.56 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.208e-05/0.006562, allocations: 121.3 kB / 0.9569 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.006562, allocations: 8.031 kB / 0.9569 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.605e-06/0.006565, allocations: 0 / 0.9569 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.006567, allocations: 0 / 0.9569 GB, free: 13.41 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.939e-06/0.006572, allocations: 3.938 kB / 0.9569 GB, free: 13.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.006572, allocations: 0 / 0.9569 GB, free: 13.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.006573, allocations: 0 / 0.9569 GB, free: 13.4 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.571e-05/0.006629, allocations: 77.02 kB / 0.957 GB, free: 13.31 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.387e-06/0.006638, allocations: 11.94 kB / 0.957 GB, free: 13.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.021e-05/0.006648, allocations: 4 kB / 0.957 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.352e-06/0.006655, allocations: 0 / 0.957 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.179e-05/0.006667, allocations: 4 kB / 0.957 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-06/0.006668, allocations: 11.97 kB / 0.957 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 5.501e-05/0.006723, allocations: 118.5 kB / 0.9572 GB, free: 13.16 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.006724, allocations: 0 / 0.9572 GB, free: 13.16 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002136/0.006937, allocations: 87.8 kB / 0.9572 GB, free: 13.08 MB / 0.9167 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.0003671/0.007304, allocations: 259.2 kB / 0.9575 GB, free: 12.84 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001231/0.007427, allocations: 97.61 kB / 0.9576 GB, free: 12.74 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.007429, allocations: 0 / 0.9576 GB, free: 12.74 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 8.276e-06/0.007437, allocations: 11.98 kB / 0.9576 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001089/0.007546, allocations: 6.344 kB / 0.9576 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002276/0.007774, allocations: 198.8 kB / 0.9578 GB, free: 12.5 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.904e-05/0.007823, allocations: 79.27 kB / 0.9579 GB, free: 12.4 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.6e-05/0.007839, allocations: 8.5 kB / 0.9579 GB, free: 12.39 MB / 0.9167 GB Notification: Performance of SimCode: time 4.31e-07/0.007839, allocations: 0 / 0.9579 GB, free: 12.39 MB / 0.9167 GB Notification: Performance of Templates: time 0.002874/0.01071, allocations: 2.282 MB / 0.9601 GB, free: 10.11 MB / 0.9167 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=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.61378058232367]