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.001923/0.001923, 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.00149/0.00149, allocations: 212 kB / 22.24 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.46/1.46, allocations: 230.6 MB / 256 MB, free: 7.742 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.277/3.277, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 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: "" <> 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: 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.002097/0.002097, allocations: 69 kB / 1.186 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3345, allocations: 181.9 MB / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001874/0.3363, allocations: 0.5165 MB / 1.364 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002762/0.3391, allocations: 1.612 MB / 1.365 GB, free: 11.98 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.433e-05/0.3391, allocations: 0 / 1.365 GB, free: 11.98 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.3393, allocations: 19.91 kB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.788e-05/0.3393, allocations: 11.92 kB / 1.365 GB, free: 11.95 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.001106/0.3404, allocations: 275.2 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.122e-05/0.3405, allocations: 27.91 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.185e-05/0.3405, allocations: 288 / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.58e-05/0.3406, allocations: 11.98 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.826e-05/0.3406, allocations: 19.91 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.3406, allocations: 4 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008567/0.3415, allocations: 455.1 kB / 1.366 GB, free: 11.17 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.077e-05/0.3416, allocations: 19.92 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.847e-05/0.3416, allocations: 15.86 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005795/0.3422, allocations: 299.1 kB / 1.367 GB, free: 10.84 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.3422, allocations: 0 / 1.367 GB, free: 10.84 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3422, allocations: 0 / 1.367 GB, free: 10.84 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.3422, allocations: 0 / 1.367 GB, free: 10.84 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.0005631/0.3427, allocations: 343.2 kB / 1.367 GB, free: 10.48 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.3428, allocations: 8.031 kB / 1.367 GB, free: 10.47 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.838e-05/0.3428, allocations: 30.75 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.106e-05/0.3429, allocations: 12.89 kB / 1.367 GB, free: 10.42 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000172/0.343, allocations: 126.4 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.343, allocations: 384 / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.343, allocations: 384 / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.3431, allocations: 37.83 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.3432, allocations: 0 / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.3432, allocations: 4 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.3432, allocations: 0 / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.732e-05/0.3432, allocations: 23.92 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001916/0.3434, allocations: 144.7 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 5.756e-05/0.3435, allocations: 22.58 kB / 1.367 GB, free: 9.984 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.703e-05/0.3435, allocations: 20.91 kB / 1.367 GB, free: 9.961 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.724e-05/0.3435, allocations: 4 kB / 1.367 GB, free: 9.957 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/0.3436, allocations: 38.44 kB / 1.367 GB, free: 9.91 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3436, allocations: 0 / 1.367 GB, free: 9.91 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001755/0.3437, allocations: 69.56 kB / 1.367 GB, free: 9.836 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/0.3438, allocations: 55.41 kB / 1.367 GB, free: 9.77 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/0.344, allocations: 164.5 kB / 1.368 GB, free: 9.598 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.344, allocations: 29.64 kB / 1.368 GB, free: 9.562 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.273e-05/0.3441, allocations: 104.1 kB / 1.368 GB, free: 9.457 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.017e-05/0.3441, allocations: 128 / 1.368 GB, free: 9.457 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.73e-05/0.3441, allocations: 33.7 kB / 1.368 GB, free: 9.418 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.3443, allocations: 318.8 kB / 1.368 GB, free: 9.098 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.221e-05/0.3444, allocations: 39.98 kB / 1.368 GB, free: 9.059 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.093e-05/0.3444, allocations: 43.97 kB / 1.368 GB, free: 9.016 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.406e-05/0.3445, allocations: 60.84 kB / 1.368 GB, free: 8.953 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3445, allocations: 0 / 1.368 GB, free: 8.953 MB / 1.061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000179/0.3447, allocations: 137.5 kB / 1.368 GB, free: 8.812 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3447, allocations: 4 kB / 1.368 GB, free: 8.809 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.3447, allocations: 0 / 1.368 GB, free: 8.809 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.3447, allocations: 0 / 1.368 GB, free: 8.809 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.994e-05/0.3447, allocations: 12.06 kB / 1.368 GB, free: 8.797 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.3448, allocations: 0 / 1.368 GB, free: 8.797 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.774e-05/0.3448, allocations: 7.891 kB / 1.368 GB, free: 8.789 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/0.3448, allocations: 7.984 kB / 1.368 GB, free: 8.781 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.0002125/0.345, allocations: 118.5 kB / 1.368 GB, free: 8.656 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.753e-05/0.345, allocations: 11.89 kB / 1.368 GB, free: 8.645 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/0.3452, allocations: 65.38 kB / 1.369 GB, free: 8.57 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3452, allocations: 0 / 1.369 GB, free: 8.57 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3452, allocations: 0 / 1.369 GB, free: 8.57 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3452, allocations: 4.031 kB / 1.369 GB, free: 8.566 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001405/0.3453, allocations: 144.7 kB / 1.369 GB, free: 8.383 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3453, allocations: 0 / 1.369 GB, free: 8.383 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.084e-06/0.3453, allocations: 3.938 kB / 1.369 GB, free: 8.379 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3453, allocations: 0 / 1.369 GB, free: 8.379 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.3453, allocations: 0 / 1.369 GB, free: 8.379 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3453, allocations: 0 / 1.369 GB, free: 8.379 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3453, allocations: 0 / 1.369 GB, free: 8.379 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001031/0.3454, allocations: 77.06 kB / 1.369 GB, free: 8.285 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.545e-05/0.3455, allocations: 15.89 kB / 1.369 GB, free: 8.27 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.3455, allocations: 0 / 1.369 GB, free: 8.27 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.205e-05/0.3455, allocations: 4.031 kB / 1.369 GB, free: 8.266 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.929e-05/0.3455, allocations: 7.938 kB / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.3455, allocations: 0 / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001039/0.3456, allocations: 125.6 kB / 1.369 GB, free: 8.137 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3456, allocations: 7.938 kB / 1.369 GB, free: 8.129 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003487/0.346, allocations: 83.81 kB / 1.369 GB, free: 8.047 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.0009789/0.3469, allocations: 0.7587 MB / 1.37 GB, free: 7.289 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001789/0.3471, allocations: 93.66 kB / 1.37 GB, free: 7.191 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3471, allocations: 0 / 1.37 GB, free: 7.191 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.841e-05/0.3471, allocations: 11.94 kB / 1.37 GB, free: 7.18 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.3473, allocations: 4 kB / 1.37 GB, free: 7.176 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.3489, allocations: 1.542 MB / 1.371 GB, free: 5.555 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.729e-05/0.3489, allocations: 83.42 kB / 1.371 GB, free: 5.453 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 1.885e-05/0.349, allocations: 0 / 1.371 GB, free: 5.453 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.902e-05/0.349, allocations: 23.42 kB / 1.371 GB, free: 5.43 MB / 1.061 GB Notification: Performance of SimCode: time 4e-07/0.349, allocations: 0 / 1.371 GB, free: 5.43 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0309/0.3799, allocations: 4.089 MB / 1.375 GB, free: 1.473 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.95, allocations: 18.27 kB / 1.375 GB, free: 1.461 MB / 1.061 GB " [Timeout remaining time 288] (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/jenkins1/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: 18.796350457239896]