Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.001569/0.001569, allocations: 106.5 kB / 19.69 MB, free: 2.277 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.001759/0.001759, allocations: 218.9 kB / 23.01 MB, free: 4.605 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.408/1.408, allocations: 230.6 MB / 256.8 MB, free: 8.023 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.143/3.143, allocations: 0.505 GB / 0.8108 GB, free: 22.05 MB / 0.6231 GB " [Timeout remaining time 177] 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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [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.002063/0.002063, allocations: 67.14 kB / 1.178 GB, free: 17.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3482, allocations: 180.2 MB / 1.354 GB, free: 8.117 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001874/0.3501, allocations: 0.5348 MB / 1.355 GB, free: 7.586 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002757/0.3529, allocations: 1.685 MB / 1.356 GB, free: 5.883 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.58e-05/0.3529, allocations: 7.875 kB / 1.356 GB, free: 5.875 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0002527/0.3532, allocations: 59.89 kB / 1.356 GB, free: 5.816 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 4.457e-05/0.3532, allocations: 35.89 kB / 1.356 GB, free: 5.781 MB / 1.045 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.001174/0.3544, allocations: 278.2 kB / 1.357 GB, free: 5.512 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.3545, allocations: 31.95 kB / 1.357 GB, free: 5.48 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.702e-05/0.3545, allocations: 4 kB / 1.357 GB, free: 5.477 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.357e-05/0.3546, allocations: 27.91 kB / 1.357 GB, free: 5.449 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 9.386e-05/0.3547, allocations: 43.88 kB / 1.357 GB, free: 5.406 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.574e-05/0.3547, allocations: 4 kB / 1.357 GB, free: 5.402 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008509/0.3556, allocations: 495.2 kB / 1.357 GB, free: 4.918 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.362e-05/0.3556, allocations: 27.92 kB / 1.357 GB, free: 4.891 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.612e-05/0.3557, allocations: 27.69 kB / 1.357 GB, free: 4.863 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004535/0.3561, allocations: 311.1 kB / 1.358 GB, free: 4.559 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3561, allocations: 3.938 kB / 1.358 GB, free: 4.555 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3561, allocations: 4 kB / 1.358 GB, free: 4.551 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.3561, allocations: 0 / 1.358 GB, free: 4.551 MB / 1.045 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.0004985/0.3566, allocations: 365.3 kB / 1.358 GB, free: 4.164 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.3567, allocations: 8.031 kB / 1.358 GB, free: 4.156 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.34e-05/0.3567, allocations: 12.84 kB / 1.358 GB, free: 4.145 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001782/0.3569, allocations: 134.4 kB / 1.358 GB, free: 3.988 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.586e-06/0.3569, allocations: 384 / 1.358 GB, free: 3.988 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.366e-06/0.3569, allocations: 384 / 1.358 GB, free: 3.988 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.357, allocations: 38.02 kB / 1.358 GB, free: 3.945 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.357, allocations: 4 kB / 1.358 GB, free: 3.941 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-06/0.357, allocations: 3.938 kB / 1.358 GB, free: 3.938 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.357, allocations: 4 kB / 1.358 GB, free: 3.934 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.234e-05/0.3571, allocations: 15.98 kB / 1.358 GB, free: 3.918 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002207/0.3573, allocations: 160.7 kB / 1.358 GB, free: 3.719 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 5.047e-05/0.3573, allocations: 22.58 kB / 1.358 GB, free: 3.688 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.653e-05/0.3574, allocations: 16.91 kB / 1.358 GB, free: 3.668 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.999e-05/0.3574, allocations: 12 kB / 1.358 GB, free: 3.656 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.3574, allocations: 34.5 kB / 1.358 GB, free: 3.613 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3574, allocations: 0 / 1.358 GB, free: 3.613 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.0001816/0.3576, allocations: 77.52 kB / 1.358 GB, free: 3.531 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.3577, allocations: 55.39 kB / 1.358 GB, free: 3.465 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.3579, allocations: 210.8 kB / 1.359 GB, free: 3.25 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.3579, allocations: 25.7 kB / 1.359 GB, free: 3.219 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.936e-05/0.358, allocations: 104.2 kB / 1.359 GB, free: 3.113 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.441e-05/0.358, allocations: 11.89 kB / 1.359 GB, free: 3.102 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.536e-05/0.358, allocations: 29.7 kB / 1.359 GB, free: 3.066 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3582, allocations: 326.8 kB / 1.359 GB, free: 2.738 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.292e-05/0.3583, allocations: 55.97 kB / 1.359 GB, free: 2.684 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.645e-05/0.3583, allocations: 51.98 kB / 1.359 GB, free: 2.633 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.3585, allocations: 96.72 kB / 1.359 GB, free: 2.535 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.3585, allocations: 0 / 1.359 GB, free: 2.535 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001993/0.3587, allocations: 153.6 kB / 1.359 GB, free: 2.379 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.3587, allocations: 16 kB / 1.359 GB, free: 2.363 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.3587, allocations: 0 / 1.359 GB, free: 2.363 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.3587, allocations: 3.938 kB / 1.359 GB, free: 2.359 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.304e-05/0.3587, allocations: 0 / 1.359 GB, free: 2.359 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.3587, allocations: 4 kB / 1.359 GB, free: 2.355 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.997e-05/0.3588, allocations: 11.84 kB / 1.359 GB, free: 2.344 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-06/0.3588, allocations: 0 / 1.359 GB, free: 2.344 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001921/0.359, allocations: 143.4 kB / 1.36 GB, free: 2.195 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.535e-05/0.359, allocations: 11.89 kB / 1.36 GB, free: 2.184 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001387/0.3591, allocations: 74.05 kB / 1.36 GB, free: 2.102 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.3591, allocations: 0 / 1.36 GB, free: 2.102 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3591, allocations: 8 kB / 1.36 GB, free: 2.094 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3591, allocations: 0 / 1.36 GB, free: 2.094 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001488/0.3593, allocations: 148.7 kB / 1.36 GB, free: 1.906 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3593, allocations: 0 / 1.36 GB, free: 1.906 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.068e-06/0.3593, allocations: 0 / 1.36 GB, free: 1.906 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3593, allocations: 3.938 kB / 1.36 GB, free: 1.902 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-06/0.3593, allocations: 0 / 1.36 GB, free: 1.902 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3593, allocations: 4.031 kB / 1.36 GB, free: 1.898 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3593, allocations: 0 / 1.36 GB, free: 1.898 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.3594, allocations: 96.89 kB / 1.36 GB, free: 1.785 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.919e-05/0.3594, allocations: 11.89 kB / 1.36 GB, free: 1.773 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.3594, allocations: 0 / 1.36 GB, free: 1.773 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.296e-05/0.3594, allocations: 0 / 1.36 GB, free: 1.773 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.132e-05/0.3594, allocations: 0 / 1.36 GB, free: 1.773 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-06/0.3595, allocations: 4 kB / 1.36 GB, free: 1.77 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001406/0.3596, allocations: 155.1 kB / 1.36 GB, free: 1.617 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3596, allocations: 0 / 1.36 GB, free: 1.617 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000362/0.36, allocations: 91.8 kB / 1.36 GB, free: 1.527 MB / 1.045 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.0005623/0.3605, allocations: 224.2 kB / 1.36 GB, free: 1.316 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002003/0.3607, allocations: 113.7 kB / 1.361 GB, free: 1.199 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3607, allocations: 0 / 1.361 GB, free: 1.199 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.665e-05/0.3607, allocations: 15.98 kB / 1.361 GB, free: 1.184 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001582/0.3609, allocations: 4 kB / 1.361 GB, free: 1.18 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003705/0.3613, allocations: 239.5 kB / 1.361 GB, free: 0.9141 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.3616, allocations: 0.7079 MB / 1.361 GB, free: 184 kB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.12e-05/0.3616, allocations: 11.44 kB / 1.361 GB, free: 172 kB / 1.045 GB Notification: Performance of SimCode: time 3.4e-07/0.3616, allocations: 4.125 kB / 1.361 GB, free: 168 kB / 1.045 GB Notification: Performance of Templates: time 0.005162/0.3668, allocations: 2.458 MB / 1.364 GB, free: 13.7 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.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: 13.1402419799997]