Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.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.001538/0.001538, allocations: 113.5 kB / 17.08 MB, free: 5.988 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.001574/0.001574, allocations: 193.2 kB / 20.03 MB, free: 3.059 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.431/1.431, allocations: 222.9 MB / 245.7 MB, free: 4.223 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.746/2.746, allocations: 437.1 MB / 0.7177 GB, free: 4.527 MB / 0.5606 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_10_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_10_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 63.89 kB / 1.028 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3158, allocations: 151.6 MB / 1.176 GB, free: 5.938 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001782/0.3177, allocations: 0.5144 MB / 1.176 GB, free: 5.418 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002467/0.3201, allocations: 1.61 MB / 1.178 GB, free: 3.789 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.207e-05/0.3202, allocations: 0 / 1.178 GB, free: 3.789 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.000186/0.3204, allocations: 63.83 kB / 1.178 GB, free: 3.727 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.771e-05/0.3204, allocations: 27.95 kB / 1.178 GB, free: 3.699 MB / 0.92 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 10.1.1-maint.10.0.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.0009052/0.3214, allocations: 250.7 kB / 1.178 GB, free: 3.457 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.478e-05/0.3214, allocations: 31.95 kB / 1.178 GB, free: 3.426 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.019e-05/0.3215, allocations: 4 kB / 1.178 GB, free: 3.422 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.575e-05/0.3215, allocations: 19.91 kB / 1.178 GB, free: 3.402 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.503e-05/0.3216, allocations: 43.89 kB / 1.178 GB, free: 3.359 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.3216, allocations: 0 / 1.178 GB, free: 3.359 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005864/0.3222, allocations: 339.4 kB / 1.179 GB, free: 3.027 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.275e-05/0.3223, allocations: 27.92 kB / 1.179 GB, free: 3 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.476e-05/0.3223, allocations: 23.75 kB / 1.179 GB, free: 2.977 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004095/0.3228, allocations: 303 kB / 1.179 GB, free: 2.68 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3228, allocations: 0 / 1.179 GB, free: 2.68 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3228, allocations: 0 / 1.179 GB, free: 2.68 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.3228, allocations: 0 / 1.179 GB, free: 2.68 MB / 0.92 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.0005065/0.3233, allocations: 442.4 kB / 1.179 GB, free: 2.199 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3233, allocations: 8.031 kB / 1.179 GB, free: 2.191 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.3234, allocations: 12.84 kB / 1.179 GB, free: 2.18 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001836/0.3236, allocations: 193.1 kB / 1.18 GB, free: 1.953 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.3236, allocations: 4.375 kB / 1.18 GB, free: 1.949 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.584e-06/0.3236, allocations: 384 / 1.18 GB, free: 1.949 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.3237, allocations: 42 kB / 1.18 GB, free: 1.902 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.3237, allocations: 0 / 1.18 GB, free: 1.902 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.134e-06/0.3237, allocations: 0 / 1.18 GB, free: 1.902 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.3237, allocations: 0 / 1.18 GB, free: 1.902 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.022e-05/0.3238, allocations: 27.98 kB / 1.18 GB, free: 1.875 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002012/0.324, allocations: 185.6 kB / 1.18 GB, free: 1.645 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.994e-05/0.3241, allocations: 30.58 kB / 1.18 GB, free: 1.605 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.407e-05/0.3241, allocations: 16.91 kB / 1.18 GB, free: 1.586 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.3241, allocations: 4 kB / 1.18 GB, free: 1.582 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.3242, allocations: 34.5 kB / 1.18 GB, free: 1.539 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3242, allocations: 0 / 1.18 GB, free: 1.539 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001626/0.3243, allocations: 77.52 kB / 1.18 GB, free: 1.457 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.3244, allocations: 55.53 kB / 1.18 GB, free: 1.391 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.3246, allocations: 218 kB / 1.18 GB, free: 1.168 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.3246, allocations: 29.7 kB / 1.18 GB, free: 1.133 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.932e-05/0.3247, allocations: 96.14 kB / 1.18 GB, free: 1.035 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.444e-05/0.3247, allocations: 7.953 kB / 1.18 GB, free: 1.027 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.427e-05/0.3248, allocations: 29.7 kB / 1.18 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3249, allocations: 322.8 kB / 1.181 GB, free: 0.668 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.212e-05/0.325, allocations: 55.97 kB / 1.181 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.017e-05/0.3251, allocations: 59.98 kB / 1.181 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001042/0.3252, allocations: 90.73 kB / 1.181 GB, free: 476 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3252, allocations: 0 / 1.181 GB, free: 476 kB / 0.92 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001844/0.3254, allocations: 165.5 kB / 1.181 GB, free: 304 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3254, allocations: 7.938 kB / 1.181 GB, free: 296 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.3254, allocations: 4 kB / 1.181 GB, free: 292 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.3254, allocations: 0 / 1.181 GB, free: 292 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.315e-05/0.3254, allocations: 3.984 kB / 1.181 GB, free: 288 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3255, allocations: 3.984 kB / 1.181 GB, free: 284 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.107e-05/0.3255, allocations: 15.84 kB / 1.181 GB, free: 268 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.735e-06/0.3255, allocations: 4.062 kB / 1.181 GB, free: 264 kB / 0.92 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.0001592/0.3257, allocations: 125.8 kB / 1.181 GB, free: 128 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.3257, allocations: 11.89 kB / 1.181 GB, free: 116 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/0.3258, allocations: 66.23 kB / 1.181 GB, free: 40 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3258, allocations: 3.938 kB / 1.181 GB, free: 36 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.67e-05/0.3258, allocations: 0 / 1.181 GB, free: 36 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.3259, allocations: 3.938 kB / 1.181 GB, free: 32 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.326, allocations: 189.7 kB / 1.182 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.326, allocations: 0 / 1.182 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.832e-06/0.3261, allocations: 3.984 kB / 1.182 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.3261, allocations: 3.938 kB / 1.182 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-06/0.3261, allocations: 0 / 1.182 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3261, allocations: 4 kB / 1.182 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3261, allocations: 0 / 1.182 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.369e-05/0.3262, allocations: 81.03 kB / 1.182 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.448e-05/0.3262, allocations: 101 kB / 1.182 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.3263, allocations: 0 / 1.182 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.211e-05/0.3263, allocations: 0 / 1.182 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.247e-05/0.3263, allocations: 7.984 kB / 1.182 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.3263, allocations: 4 kB / 1.182 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001192/0.3264, allocations: 140.4 kB / 1.182 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.224e-06/0.3264, allocations: 4 kB / 1.182 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003433/0.3268, allocations: 91.73 kB / 1.182 GB, free: 15.33 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.000546/0.3273, allocations: 236 kB / 1.182 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002093/0.3276, allocations: 125.7 kB / 1.182 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3276, allocations: 0 / 1.182 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.572e-05/0.3276, allocations: 8 kB / 1.182 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001456/0.3277, allocations: 10.36 kB / 1.182 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003429/0.3281, allocations: 239.5 kB / 1.183 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.3284, allocations: 0.7002 MB / 1.183 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.392e-05/0.3285, allocations: 7.438 kB / 1.183 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.3285, allocations: 0 / 1.183 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of Templates: time 0.00476/0.3332, allocations: 2.376 MB / 1.186 GB, free: 11.59 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 12.219676585984416]