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.0007901/0.0007901, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008132/0.0008132, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8833/0.8833, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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 1.778/1.778, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.335e-05/1.482e-05, allocations: 2.281 kB / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001036/0.001051, allocations: 0.5129 MB / 1 GB, free: 13.01 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001618/0.002669, allocations: 1.611 MB / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.651e-05/0.002696, allocations: 0 / 1.002 GB, free: 11.38 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.002844, allocations: 27.84 kB / 1.002 GB, free: 11.35 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 2.215e-05/0.002867, allocations: 11.98 kB / 1.002 GB, free: 11.34 MB / 0.9636 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.0006874/0.003554, allocations: 275 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 6.521e-05/0.003619, allocations: 31.89 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 3.777e-05/0.003657, allocations: 8 kB / 1.002 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 4.184e-05/0.003699, allocations: 11.98 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 3.7e-05/0.003736, allocations: 15.92 kB / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.003748, allocations: 0 / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004728/0.004221, allocations: 455 kB / 1.002 GB, free: 10.56 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 4.72e-05/0.004268, allocations: 19.94 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 1.81e-05/0.004286, allocations: 7.938 kB / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003313/0.004617, allocations: 347.2 kB / 1.003 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.004619, allocations: 0 / 1.003 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.503e-06/0.004621, allocations: 4 kB / 1.003 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.004625, allocations: 0 / 1.003 GB, free: 10.19 MB / 0.9636 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.0003392/0.004964, allocations: 333.5 kB / 1.003 GB, free: 9.832 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.005003, allocations: 16.73 kB / 1.003 GB, free: 9.816 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.019e-05/0.005033, allocations: 30.75 kB / 1.003 GB, free: 9.777 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.383e-05/0.005057, allocations: 8.891 kB / 1.003 GB, free: 9.77 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.005182, allocations: 127.5 kB / 1.003 GB, free: 9.621 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-06/0.00519, allocations: 384 / 1.003 GB, free: 9.621 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.456e-06/0.005198, allocations: 384 / 1.003 GB, free: 9.621 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.305e-05/0.005291, allocations: 38.25 kB / 1.003 GB, free: 9.578 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.005301, allocations: 192 / 1.003 GB, free: 9.578 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.00531, allocations: 8.125 kB / 1.003 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.005313, allocations: 0 / 1.003 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.618e-05/0.00534, allocations: 15.98 kB / 1.003 GB, free: 9.555 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000137/0.005477, allocations: 144.7 kB / 1.004 GB, free: 9.371 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 4.999e-05/0.005527, allocations: 30.5 kB / 1.004 GB, free: 9.332 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.174e-05/0.005548, allocations: 16.92 kB / 1.004 GB, free: 9.312 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 3.742e-05/0.005586, allocations: 4 kB / 1.004 GB, free: 9.309 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.005609, allocations: 34.55 kB / 1.004 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=1): time 5.71e-07/0.005609, allocations: 0 / 1.004 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of matching and sorting (n=1): time 0.0001397/0.005749, allocations: 65.58 kB / 1.004 GB, free: 9.195 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.005781, allocations: 59.34 kB / 1.004 GB, free: 9.125 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.005895, allocations: 168.5 kB / 1.004 GB, free: 8.953 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.919e-06/0.005904, allocations: 25.7 kB / 1.004 GB, free: 8.922 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.671e-05/0.005951, allocations: 96.09 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.064e-05/0.005962, allocations: 0 / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.572e-05/0.005998, allocations: 25.7 kB / 1.004 GB, free: 8.793 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.509e-05/0.006093, allocations: 322.8 kB / 1.004 GB, free: 8.469 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.969e-05/0.006142, allocations: 47.92 kB / 1.004 GB, free: 8.422 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.448e-05/0.006177, allocations: 39.98 kB / 1.004 GB, free: 8.383 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.632e-05/0.006253, allocations: 72.88 kB / 1.005 GB, free: 8.309 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.006256, allocations: 4.156 kB / 1.005 GB, free: 8.305 MB / 0.9636 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001057/0.006362, allocations: 129.5 kB / 1.005 GB, free: 8.172 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.006374, allocations: 8 kB / 1.005 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.006391, allocations: 0 / 1.005 GB, free: 8.164 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.006403, allocations: 3.938 kB / 1.005 GB, free: 8.16 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.317e-05/0.006416, allocations: 0 / 1.005 GB, free: 8.16 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.006422, allocations: 4 kB / 1.005 GB, free: 8.156 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.805e-05/0.00644, allocations: 7.891 kB / 1.005 GB, free: 8.148 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.006448, allocations: 0 / 1.005 GB, free: 8.148 MB / 0.9636 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.000409/0.006857, allocations: 125.8 kB / 1.005 GB, free: 8.016 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-06/0.006864, allocations: 11.98 kB / 1.005 GB, free: 8.004 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.715e-05/0.006951, allocations: 57.48 kB / 1.005 GB, free: 7.941 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.006954, allocations: 3.938 kB / 1.005 GB, free: 7.938 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.006958, allocations: 0 / 1.005 GB, free: 7.938 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.006961, allocations: 0 / 1.005 GB, free: 7.938 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.418e-05/0.007035, allocations: 140.7 kB / 1.005 GB, free: 7.758 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.007036, allocations: 0 / 1.005 GB, free: 7.758 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.349e-06/0.007041, allocations: 4 kB / 1.005 GB, free: 7.754 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.007042, allocations: 3.938 kB / 1.005 GB, free: 7.75 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.318e-06/0.007046, allocations: 0 / 1.005 GB, free: 7.75 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.007049, allocations: 15.89 kB / 1.005 GB, free: 7.734 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.00705, allocations: 0 / 1.005 GB, free: 7.734 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.264e-05/0.007102, allocations: 81.03 kB / 1.005 GB, free: 7.637 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.062e-05/0.007113, allocations: 11.94 kB / 1.005 GB, free: 7.625 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.03e-05/0.007123, allocations: 0 / 1.005 GB, free: 7.625 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-06/0.007131, allocations: 3.938 kB / 1.005 GB, free: 7.621 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.207e-05/0.007144, allocations: 3.984 kB / 1.005 GB, free: 7.617 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.007146, allocations: 4 kB / 1.005 GB, free: 7.613 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 6.423e-05/0.00721, allocations: 118.5 kB / 1.005 GB, free: 7.5 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.00721, allocations: 0 / 1.005 GB, free: 7.5 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002241/0.007434, allocations: 95.83 kB / 1.005 GB, free: 7.406 MB / 0.9636 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.0005117/0.007946, allocations: 0.7567 MB / 1.006 GB, free: 6.648 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001166/0.008063, allocations: 97.67 kB / 1.006 GB, free: 6.547 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.008064, allocations: 4.094 kB / 1.006 GB, free: 6.543 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.827e-06/0.008073, allocations: 11.98 kB / 1.006 GB, free: 6.531 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001068/0.00818, allocations: 7.938 kB / 1.006 GB, free: 6.523 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009076/0.009087, allocations: 1.544 MB / 1.008 GB, free: 4.895 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.775e-05/0.009135, allocations: 75.33 kB / 1.008 GB, free: 4.801 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 1.48e-05/0.00915, allocations: 0 / 1.008 GB, free: 4.801 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.638e-05/0.009176, allocations: 24.48 kB / 1.008 GB, free: 4.777 MB / 0.9636 GB Notification: Performance of SimCode: time 3.91e-07/0.009177, allocations: 0 / 1.008 GB, free: 4.777 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.0262, allocations: 4.263 MB / 1.012 GB, free: 0.625 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.052/7.078, allocations: 7.359 kB / 1.012 GB, free: 0.6211 MB / 0.9636 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv","/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] "Error: Could not read variable cmp in file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv. Warning: Get data of variable cmp from file Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.294406906701624]