Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001993/0.001993, allocations: 79.28 kB / 19.18 MB, free: 2.516 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.002226/0.002226, allocations: 163.2 kB / 22.46 MB, free: 5.375 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.637/1.637, allocations: 177.1 MB / 202.8 MB, free: 9.148 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.81/2.81, allocations: 377.8 MB / 0.6221 GB, free: 12.62 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 0.9814 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.5e-05/2.679e-05, allocations: 6.219 kB / 0.9814 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001507/0.001534, allocations: 0.5286 MB / 0.9819 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002621/0.004156, allocations: 1.61 MB / 0.9835 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.585e-05/0.004191, allocations: 4 kB / 0.9835 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001992/0.004391, allocations: 59.78 kB / 0.9835 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.525e-05/0.004436, allocations: 31.95 kB / 0.9836 GB, free: 9.797 MB / 0.9356 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.001051/0.005487, allocations: 286.6 kB / 0.9838 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.658e-05/0.005584, allocations: 39.89 kB / 0.9839 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.83e-05/0.005622, allocations: 3.984 kB / 0.9839 GB, free: 9.477 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.416e-05/0.005676, allocations: 15.98 kB / 0.9839 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.609e-05/0.005762, allocations: 55.86 kB / 0.9839 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.005779, allocations: 0 / 0.9839 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008274/0.006606, allocations: 447.1 kB / 0.9844 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.76e-05/0.006674, allocations: 23.92 kB / 0.9844 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.161e-05/0.006706, allocations: 15.92 kB / 0.9844 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000579/0.007285, allocations: 363 kB / 0.9848 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.007289, allocations: 0 / 0.9848 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.022e-06/0.00729, allocations: 4 kB / 0.9848 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.71e-06/0.007295, allocations: 4 kB / 0.9848 GB, free: 8.566 MB / 0.9356 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.0005142/0.00781, allocations: 357.3 kB / 0.9851 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.007848, allocations: 12.03 kB / 0.9851 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.63e-05/0.007894, allocations: 12.84 kB / 0.9851 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.008068, allocations: 133.5 kB / 0.9853 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.008082, allocations: 4.375 kB / 0.9853 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.008093, allocations: 4.375 kB / 0.9853 GB, free: 8 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.693e-05/0.00819, allocations: 34.27 kB / 0.9853 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-06/0.008198, allocations: 192 / 0.9853 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.008207, allocations: 384 / 0.9853 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.008213, allocations: 7.938 kB / 0.9853 GB, free: 7.953 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.911e-05/0.008262, allocations: 23.92 kB / 0.9853 GB, free: 7.93 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001824/0.008444, allocations: 145.2 kB / 0.9855 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 5.819e-05/0.008503, allocations: 26.56 kB / 0.9855 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.558e-05/0.008528, allocations: 12.92 kB / 0.9855 GB, free: 7.707 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.834e-05/0.008566, allocations: 7.984 kB / 0.9855 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.008597, allocations: 38.5 kB / 0.9856 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.008598, allocations: 0 / 0.9856 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.000171/0.008769, allocations: 65.58 kB / 0.9856 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.008814, allocations: 59.34 kB / 0.9857 GB, free: 7.512 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002525/0.009066, allocations: 220.4 kB / 0.9859 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.009083, allocations: 25.7 kB / 0.9859 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.298e-05/0.009166, allocations: 104.1 kB / 0.986 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.07e-05/0.009177, allocations: 0 / 0.986 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.98e-05/0.009227, allocations: 29.7 kB / 0.986 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.009388, allocations: 322.8 kB / 0.9863 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.169e-05/0.00948, allocations: 55.98 kB / 0.9864 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.77e-05/0.009548, allocations: 59.2 kB / 0.9864 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/0.009666, allocations: 84.83 kB / 0.9865 GB, free: 6.598 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.009667, allocations: 0 / 0.9865 GB, free: 6.598 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002267/0.009894, allocations: 173.4 kB / 0.9867 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.00991, allocations: 8.062 kB / 0.9867 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.009926, allocations: 0 / 0.9867 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.009942, allocations: 0 / 0.9867 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.941e-05/0.009962, allocations: 4 kB / 0.9867 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.009971, allocations: 3.938 kB / 0.9867 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.136e-05/0.01, allocations: 11.84 kB / 0.9867 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.01001, allocations: 4 kB / 0.9867 GB, free: 6.391 MB / 0.9356 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.0001965/0.01021, allocations: 133.8 kB / 0.9869 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.512e-05/0.01023, allocations: 7.953 kB / 0.9869 GB, free: 6.242 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001337/0.01036, allocations: 70.11 kB / 0.9869 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.01036, allocations: 0 / 0.9869 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.01037, allocations: 3.938 kB / 0.9869 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.01037, allocations: 3.984 kB / 0.9869 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.01052, allocations: 133.3 kB / 0.9871 GB, free: 6 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.01052, allocations: 0 / 0.9871 GB, free: 6 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.409e-06/0.01052, allocations: 0 / 0.9871 GB, free: 6 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.01052, allocations: 0 / 0.9871 GB, free: 6 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.01053, allocations: 0 / 0.9871 GB, free: 6 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.01053, allocations: 0 / 0.9871 GB, free: 6 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.01053, allocations: 8.031 kB / 0.9871 GB, free: 5.992 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001095/0.01064, allocations: 84.97 kB / 0.9872 GB, free: 5.891 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 1.743e-05/0.01066, allocations: 11.91 kB / 0.9872 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.01068, allocations: 7.984 kB / 0.9872 GB, free: 5.871 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.361e-05/0.01069, allocations: 0 / 0.9872 GB, free: 5.871 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.803e-05/0.01071, allocations: 0 / 0.9872 GB, free: 5.871 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-06/0.01072, allocations: 3.938 kB / 0.9872 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001466/0.01086, allocations: 151.2 kB / 0.9873 GB, free: 5.719 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/0.01086, allocations: 0 / 0.9873 GB, free: 5.719 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003616/0.01122, allocations: 87.8 kB / 0.9874 GB, free: 5.633 MB / 0.9356 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.0006478/0.01187, allocations: 253.7 kB / 0.9876 GB, free: 5.402 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001941/0.01207, allocations: 113.7 kB / 0.9878 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.01207, allocations: 0 / 0.9878 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.941e-05/0.01209, allocations: 11.98 kB / 0.9878 GB, free: 5.273 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000149/0.01224, allocations: 12.12 kB / 0.9878 GB, free: 5.262 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000387/0.01262, allocations: 213.7 kB / 0.988 GB, free: 5.027 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.723e-05/0.01272, allocations: 84.31 kB / 0.9881 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.466e-05/0.01274, allocations: 7.984 kB / 0.9881 GB, free: 4.918 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.111e-05/0.01277, allocations: 8.5 kB / 0.9881 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.01277, allocations: 3.938 kB / 0.9881 GB, free: 4.906 MB / 0.9356 GB Notification: Performance of Templates: time 0.006081/0.01885, allocations: 2.189 MB / 0.9902 GB, free: 2.719 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.098786644637585]