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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001969/0.001969, allocations: 113.9 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001841/0.001841, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 225.6 MB / 249.4 MB, free: 2.977 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.875/2.875, allocations: 476.7 MB / 0.7629 GB, free: 15.1 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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(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 0.001916/0.001916, allocations: 59.89 kB / 1.107 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9135/0.9154, allocations: 168.7 MB / 1.272 GB, free: 7.91 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001481/0.9169, allocations: 0.529 MB / 1.272 GB, free: 7.602 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001892/0.9188, allocations: 1.624 MB / 1.274 GB, free: 6.457 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.809e-05/0.9188, allocations: 3.938 kB / 1.274 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.919, allocations: 20.95 kB / 1.274 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.584e-05/0.919, allocations: 16.14 kB / 1.274 GB, free: 6.441 MB / 0.9981 GB [/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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.0007595/0.9197, allocations: 242.3 kB / 1.274 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.248e-05/0.9198, allocations: 17.52 kB / 1.274 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.211e-05/0.9198, allocations: 7.906 kB / 1.274 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.627e-05/0.9199, allocations: 13.16 kB / 1.274 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.857e-05/0.9199, allocations: 28.11 kB / 1.274 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.829e-06/0.9199, allocations: 1 kB / 1.274 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005066/0.9204, allocations: 360.3 kB / 1.275 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.487e-05/0.9205, allocations: 20.92 kB / 1.275 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.826e-05/0.9205, allocations: 20.11 kB / 1.275 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003663/0.9209, allocations: 273.9 kB / 1.275 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.9209, allocations: 0.75 kB / 1.275 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.644e-06/0.9209, allocations: 0 / 1.275 GB, free: 6.129 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.001e-05/0.9209, allocations: 8.625 kB / 1.275 GB, free: 6.121 MB / 0.9981 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.0003463/0.9212, allocations: 411.5 kB / 1.275 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.9212, allocations: 8.875 kB / 1.275 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.386e-05/0.9213, allocations: 11.44 kB / 1.275 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.9214, allocations: 182 kB / 1.276 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.9214, allocations: 1.906 kB / 1.276 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.045e-06/0.9214, allocations: 4.375 kB / 1.276 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.301e-05/0.9215, allocations: 47.39 kB / 1.276 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.9215, allocations: 4 kB / 1.276 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.9215, allocations: 0.9062 kB / 1.276 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.9215, allocations: 0 / 1.276 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.075e-05/0.9215, allocations: 15.27 kB / 1.276 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001238/0.9217, allocations: 171.8 kB / 1.276 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.049e-05/0.9217, allocations: 29.8 kB / 1.276 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.182e-05/0.9217, allocations: 12.41 kB / 1.276 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.9218, allocations: 6.188 kB / 1.276 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.9218, allocations: 43.38 kB / 1.276 GB, free: 5.164 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.9218, allocations: 0 / 1.276 GB, free: 5.164 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001307/0.9219, allocations: 67.2 kB / 1.276 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.129e-05/0.9219, allocations: 52.5 kB / 1.276 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.9221, allocations: 166.3 kB / 1.276 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.44e-06/0.9221, allocations: 25.7 kB / 1.276 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.148e-05/0.9221, allocations: 102.5 kB / 1.276 GB, free: 4.816 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.147e-06/0.9221, allocations: 5.281 kB / 1.276 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.545e-05/0.9221, allocations: 26.08 kB / 1.276 GB, free: 4.793 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.076e-05/0.9222, allocations: 321.4 kB / 1.277 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.079e-05/0.9222, allocations: 36.08 kB / 1.277 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.248e-05/0.9223, allocations: 42.2 kB / 1.277 GB, free: 4.465 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.52e-05/0.9224, allocations: 72.39 kB / 1.277 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.9224, allocations: 0 / 1.277 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001356/0.9225, allocations: 133.7 kB / 1.277 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.9225, allocations: 8.812 kB / 1.277 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.9225, allocations: 6.344 kB / 1.277 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.9225, allocations: 1 kB / 1.277 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.113e-05/0.9225, allocations: 0.5156 kB / 1.277 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.9226, allocations: 0.9375 kB / 1.277 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.292e-05/0.9226, allocations: 6.266 kB / 1.277 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.9226, allocations: 1 kB / 1.277 GB, free: 4.371 MB / 0.9981 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 8.581e-05/0.9227, allocations: 124.2 kB / 1.277 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.277e-05/0.9227, allocations: 10.39 kB / 1.277 GB, free: 4.25 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.535e-05/0.9228, allocations: 60.94 kB / 1.277 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.9228, allocations: 0.9375 kB / 1.277 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.9228, allocations: 0 / 1.277 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.9228, allocations: 0.8438 kB / 1.277 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.859e-05/0.9229, allocations: 173.3 kB / 1.277 GB, free: 4.004 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.9229, allocations: 3.938 kB / 1.277 GB, free: 4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.35e-06/0.9229, allocations: 1.359 kB / 1.277 GB, free: 4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.9229, allocations: 3.938 kB / 1.277 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-06/0.9229, allocations: 1.641 kB / 1.277 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.9229, allocations: 0 / 1.277 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.9229, allocations: 4.688 kB / 1.277 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.361e-05/0.9229, allocations: 74.78 kB / 1.277 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.949e-05/0.9229, allocations: 90.69 kB / 1.277 GB, free: 3.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.923, allocations: 6.734 kB / 1.277 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.12e-05/0.923, allocations: 0 / 1.277 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.182e-05/0.923, allocations: 0.75 kB / 1.277 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.923, allocations: 0.9062 kB / 1.277 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.253e-05/0.9231, allocations: 127.3 kB / 1.278 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.9231, allocations: 0 / 1.278 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003577/0.9234, allocations: 87.67 kB / 1.278 GB, free: 3.715 MB / 0.9981 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.0005271/0.9239, allocations: 232.1 kB / 1.278 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001728/0.9241, allocations: 95.67 kB / 1.278 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.9241, allocations: 0 / 1.278 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.756e-05/0.9241, allocations: 7.438 kB / 1.278 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.9243, allocations: 4.547 kB / 1.278 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002758/0.9246, allocations: 171.7 kB / 1.278 GB, free: 3.414 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001277/0.9247, allocations: 0.6911 MB / 1.279 GB, free: 2.719 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.966e-05/0.9247, allocations: 9.062 kB / 1.279 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.411e-05/0.9247, allocations: 12.94 kB / 1.279 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of SimCode: time 4.51e-07/0.9247, allocations: 0 / 1.279 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of Templates: time 0.005649/0.9304, allocations: 2.099 MB / 1.281 GB, free: 2.516 MB / 0.9981 GB " [Timeout remaining time 299] 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: 8.891948303207755]