Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001814/0.001814, allocations: 114.3 kB / 18.94 MB, free: 2.793 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.002392/0.002392, allocations: 221.4 kB / 22.26 MB, free: 5.211 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.287/3.287, allocations: 0.49 GB / 0.7951 GB, free: 33.33 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_12_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.002061/0.002061, allocations: 64.05 kB / 1.154 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3579, allocations: 176.1 MB / 1.326 GB, free: 1.984 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001659/0.3596, allocations: 0.5292 MB / 1.326 GB, free: 1.461 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002505/0.3621, allocations: 1.689 MB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.062e-05/0.3621, allocations: 0 / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.3623, allocations: 27.91 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 2.38e-05/0.3623, allocations: 7.984 kB / 1.328 GB, free: 15.72 MB / 1.029 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.0009427/0.3632, allocations: 283.2 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 6.62e-05/0.3633, allocations: 19.92 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 3.329e-05/0.3633, allocations: 4.281 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 3.322e-05/0.3634, allocations: 19.92 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 4.518e-05/0.3634, allocations: 19.91 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.082e-05/0.3634, allocations: 0 / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007629/0.3642, allocations: 491.2 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.591e-05/0.3642, allocations: 19.92 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.704e-05/0.3643, allocations: 19.81 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004461/0.3647, allocations: 295.1 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.3647, allocations: 0 / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.755e-06/0.3647, allocations: 8 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.3647, allocations: 0 / 1.329 GB, free: 14.56 MB / 1.029 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.0004322/0.3651, allocations: 333.6 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.3652, allocations: 8.031 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.218e-05/0.3652, allocations: 30.75 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.775e-05/0.3652, allocations: 8.891 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.3654, allocations: 136.1 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.699e-06/0.3654, allocations: 384 / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.199e-05/0.3654, allocations: 384 / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001017/0.3655, allocations: 45.81 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.3655, allocations: 3.984 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.3655, allocations: 0 / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3655, allocations: 0 / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.341e-05/0.3656, allocations: 16 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001798/0.3657, allocations: 152.7 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.163e-05/0.3658, allocations: 30.5 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.227e-05/0.3658, allocations: 12.92 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.922e-05/0.3659, allocations: 8 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.3659, allocations: 34.5 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.3659, allocations: 0 / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.000161/0.3661, allocations: 61.62 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.3661, allocations: 55.41 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.3663, allocations: 175.8 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.3663, allocations: 29.64 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.611e-05/0.3663, allocations: 100.3 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.228e-06/0.3663, allocations: 0 / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.3664, allocations: 25.7 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3665, allocations: 322.8 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.206e-05/0.3666, allocations: 35.98 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.653e-05/0.3666, allocations: 39.98 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.493e-05/0.3667, allocations: 64.83 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3667, allocations: 4 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001511/0.3669, allocations: 121.6 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.3669, allocations: 12.05 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.3669, allocations: 4 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.3669, allocations: 3.938 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.312e-05/0.3669, allocations: 3.938 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.3669, allocations: 0 / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.313e-05/0.3669, allocations: 7.953 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.367, allocations: 4 kB / 1.331 GB, free: 12.52 MB / 1.029 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.0001655/0.3671, allocations: 128.6 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.388e-05/0.3671, allocations: 15.84 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001103/0.3672, allocations: 65.42 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.3672, allocations: 0 / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3673, allocations: 0 / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.3673, allocations: 0 / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.3674, allocations: 140.8 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3674, allocations: 0 / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.105e-06/0.3674, allocations: 7.922 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.3674, allocations: 0 / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-06/0.3674, allocations: 0 / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.3674, allocations: 7.969 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3674, allocations: 4 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.613e-05/0.3675, allocations: 69.08 kB / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.218e-05/0.3675, allocations: 11.89 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.3675, allocations: 3.938 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.331e-05/0.3675, allocations: 7.938 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.611e-05/0.3675, allocations: 4 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.3675, allocations: 8.016 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.244e-05/0.3676, allocations: 117.5 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3676, allocations: 4 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003311/0.368, allocations: 87.8 kB / 1.332 GB, free: 11.77 MB / 1.029 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.0008161/0.3688, allocations: 0.7517 MB / 1.332 GB, free: 11.01 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001599/0.3689, allocations: 89.67 kB / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.3689, allocations: 0 / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.682e-05/0.369, allocations: 15.92 kB / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001347/0.3691, allocations: 128 / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.3705, allocations: 1.542 MB / 1.334 GB, free: 9.281 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.3708, allocations: 0.6924 MB / 1.335 GB, free: 8.562 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.716e-05/0.3708, allocations: 4 kB / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.311e-05/0.3709, allocations: 15.44 kB / 1.335 GB, free: 8.543 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3709, allocations: 0 / 1.335 GB, free: 8.543 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02936/0.4002, allocations: 3.703 MB / 1.338 GB, free: 4.973 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.2, allocations: 6.391 kB / 1.338 GB, free: 4.969 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv. Warning: Get data of variable cmp from file Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.21987934200297]