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.001393/0.001393, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.001582/0.001582, allocations: 212.6 kB / 22.25 MB, free: 5.262 MB / 14.72 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 1.491/1.491, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 3.298/3.298, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 65.23 kB / 1.186 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.3579, allocations: 181.9 MB / 1.364 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001636/0.3596, allocations: 0.5359 MB / 1.364 GB, free: 13.07 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00241/0.362, allocations: 1.6 MB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.44e-05/0.362, allocations: 0 / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.3621, allocations: 23.91 kB / 1.366 GB, free: 11.43 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.579e-05/0.3622, allocations: 11.92 kB / 1.366 GB, free: 11.42 MB / 1.061 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.0009668/0.3631, allocations: 283.2 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.358e-05/0.3632, allocations: 11.98 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.298e-05/0.3633, allocations: 7.984 kB / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.147e-05/0.3633, allocations: 15.92 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.15e-05/0.3633, allocations: 19.92 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.146e-05/0.3633, allocations: 0 / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007777/0.3641, allocations: 451.1 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.665e-05/0.3642, allocations: 27.84 kB / 1.367 GB, free: 10.62 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.457e-05/0.3642, allocations: 11.88 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004411/0.3646, allocations: 307.1 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3646, allocations: 0 / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3646, allocations: 0 / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.3647, allocations: 0 / 1.367 GB, free: 10.3 MB / 1.061 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.0004618/0.3651, allocations: 337.6 kB / 1.367 GB, free: 9.945 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.3652, allocations: 8.031 kB / 1.367 GB, free: 9.938 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.3652, allocations: 8.891 kB / 1.367 GB, free: 9.93 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.3653, allocations: 126.4 kB / 1.367 GB, free: 9.781 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.366e-06/0.3654, allocations: 384 / 1.367 GB, free: 9.781 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.3654, allocations: 384 / 1.367 GB, free: 9.781 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.3655, allocations: 46 kB / 1.368 GB, free: 9.73 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.3655, allocations: 0 / 1.368 GB, free: 9.73 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.214e-06/0.3655, allocations: 4 kB / 1.368 GB, free: 9.727 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.3655, allocations: 0 / 1.368 GB, free: 9.727 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.999e-05/0.3655, allocations: 16 kB / 1.368 GB, free: 9.711 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001647/0.3657, allocations: 133.2 kB / 1.368 GB, free: 9.551 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 6.134e-05/0.3658, allocations: 22.58 kB / 1.368 GB, free: 9.52 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.562e-05/0.3658, allocations: 16.91 kB / 1.368 GB, free: 9.5 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.3658, allocations: 4 kB / 1.368 GB, free: 9.496 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.3658, allocations: 34.56 kB / 1.368 GB, free: 9.453 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3658, allocations: 0 / 1.368 GB, free: 9.453 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001522/0.366, allocations: 69.52 kB / 1.368 GB, free: 9.379 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.366, allocations: 51.41 kB / 1.368 GB, free: 9.316 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.3662, allocations: 164.3 kB / 1.368 GB, free: 9.145 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.3662, allocations: 29.83 kB / 1.368 GB, free: 9.109 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.298e-05/0.3663, allocations: 100.1 kB / 1.368 GB, free: 9.008 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.066e-05/0.3663, allocations: 4 kB / 1.368 GB, free: 9.004 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.977e-05/0.3663, allocations: 25.7 kB / 1.368 GB, free: 8.973 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3665, allocations: 318.8 kB / 1.368 GB, free: 8.652 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.898e-05/0.3666, allocations: 39.97 kB / 1.369 GB, free: 8.613 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.373e-05/0.3666, allocations: 39.98 kB / 1.369 GB, free: 8.574 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.697e-05/0.3667, allocations: 64.78 kB / 1.369 GB, free: 8.508 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3667, allocations: 0 / 1.369 GB, free: 8.508 MB / 1.061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000158/0.3669, allocations: 129.5 kB / 1.369 GB, free: 8.375 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.3669, allocations: 4.062 kB / 1.369 GB, free: 8.371 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.3669, allocations: 11.94 kB / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.3669, allocations: 0 / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.433e-05/0.3669, allocations: 4 kB / 1.369 GB, free: 8.355 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.3669, allocations: 3.984 kB / 1.369 GB, free: 8.352 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.329e-05/0.367, allocations: 15.89 kB / 1.369 GB, free: 8.336 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.367, allocations: 3.938 kB / 1.369 GB, free: 8.332 MB / 1.061 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 0.0001421/0.3671, allocations: 121.8 kB / 1.369 GB, free: 8.203 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.128e-05/0.3671, allocations: 3.953 kB / 1.369 GB, free: 8.199 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001337/0.3673, allocations: 73.36 kB / 1.369 GB, free: 8.117 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.3673, allocations: 3.938 kB / 1.369 GB, free: 8.113 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3673, allocations: 0 / 1.369 GB, free: 8.113 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3673, allocations: 0 / 1.369 GB, free: 8.113 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.986e-05/0.3674, allocations: 121.3 kB / 1.369 GB, free: 7.965 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3674, allocations: 0 / 1.369 GB, free: 7.965 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.218e-06/0.3674, allocations: 0 / 1.369 GB, free: 7.965 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.3674, allocations: 0 / 1.369 GB, free: 7.965 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.3674, allocations: 4 kB / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.3674, allocations: 3.938 kB / 1.369 GB, free: 7.957 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3674, allocations: 4 kB / 1.369 GB, free: 7.953 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.651e-05/0.3675, allocations: 81.09 kB / 1.369 GB, free: 7.855 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.177e-05/0.3675, allocations: 3.953 kB / 1.369 GB, free: 7.852 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.3675, allocations: 4 kB / 1.369 GB, free: 7.848 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.409e-05/0.3675, allocations: 3.938 kB / 1.369 GB, free: 7.844 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.713e-05/0.3675, allocations: 4 kB / 1.369 GB, free: 7.84 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.3675, allocations: 0 / 1.369 GB, free: 7.84 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.956e-05/0.3676, allocations: 127.1 kB / 1.369 GB, free: 7.719 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3676, allocations: 0 / 1.369 GB, free: 7.719 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003191/0.368, allocations: 87.75 kB / 1.369 GB, free: 7.633 MB / 1.061 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.0005335/0.3685, allocations: 255.3 kB / 1.37 GB, free: 7.402 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001681/0.3687, allocations: 89.67 kB / 1.37 GB, free: 7.309 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3687, allocations: 0 / 1.37 GB, free: 7.309 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.936e-05/0.3687, allocations: 11.98 kB / 1.37 GB, free: 7.297 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001439/0.3688, allocations: 0 / 1.37 GB, free: 7.297 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002879/0.3691, allocations: 165.4 kB / 1.37 GB, free: 7.109 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.41e-05/0.3692, allocations: 75.33 kB / 1.37 GB, free: 7.016 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.195e-05/0.3692, allocations: 7.984 kB / 1.37 GB, free: 7.008 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.599e-05/0.3692, allocations: 7.438 kB / 1.37 GB, free: 7 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/0.3692, allocations: 0 / 1.37 GB, free: 7 MB / 1.061 GB Notification: Performance of Templates: time 0.005497/0.3747, allocations: 2.199 MB / 1.372 GB, free: 4.801 MB / 1.061 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.90292708016932]