Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.00141/0.00141, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.001502/0.001502, allocations: 211.6 kB / 23.04 MB, free: 5.074 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.972/2.972, allocations: 476.7 MB / 0.7715 GB, free: 4.508 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",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.002077/0.002077, allocations: 65.16 kB / 1.118 GB, free: 39.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3278, allocations: 170 MB / 1.284 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001796/0.3296, allocations: 0.5148 MB / 1.285 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00267/0.3322, allocations: 1.686 MB / 1.286 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.789e-05/0.3323, allocations: 0 / 1.286 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002108/0.3325, allocations: 71.83 kB / 1.286 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.96e-05/0.3325, allocations: 27.95 kB / 1.286 GB, free: 9.383 MB / 0.9825 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.0009905/0.3335, allocations: 267.2 kB / 1.287 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.848e-05/0.3336, allocations: 31.95 kB / 1.287 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.395e-05/0.3336, allocations: 7.984 kB / 1.287 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.228e-05/0.3337, allocations: 19.92 kB / 1.287 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.826e-05/0.3338, allocations: 47.81 kB / 1.287 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.3338, allocations: 4 kB / 1.287 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007935/0.3346, allocations: 459.2 kB / 1.287 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.164e-05/0.3346, allocations: 31.91 kB / 1.287 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.786e-05/0.3347, allocations: 27.75 kB / 1.287 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000486/0.3352, allocations: 298.6 kB / 1.287 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3352, allocations: 4 kB / 1.287 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3352, allocations: 0 / 1.287 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.3352, allocations: 0 / 1.287 GB, free: 8.211 MB / 0.9825 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.0005593/0.3357, allocations: 359 kB / 1.288 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3358, allocations: 15.97 kB / 1.288 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.464e-05/0.3358, allocations: 192 / 1.288 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.417e-05/0.3358, allocations: 34.75 kB / 1.288 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.583e-05/0.3359, allocations: 12.84 kB / 1.288 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.336, allocations: 138.3 kB / 1.288 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.3e-06/0.336, allocations: 384 / 1.288 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.336, allocations: 384 / 1.288 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.3362, allocations: 45.62 kB / 1.288 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3362, allocations: 3.938 kB / 1.288 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.3362, allocations: 0 / 1.288 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3362, allocations: 4 kB / 1.288 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.365e-05/0.3362, allocations: 15.98 kB / 1.288 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002033/0.3364, allocations: 160.7 kB / 1.288 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.163e-05/0.3365, allocations: 26.56 kB / 1.288 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.651e-05/0.3365, allocations: 16.92 kB / 1.288 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.3365, allocations: 7.938 kB / 1.288 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.3366, allocations: 34.56 kB / 1.288 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.3366, allocations: 0 / 1.288 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001728/0.3367, allocations: 81.52 kB / 1.288 GB, free: 7.137 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.65e-05/0.3368, allocations: 51.41 kB / 1.288 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.337, allocations: 212.7 kB / 1.289 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.337, allocations: 25.7 kB / 1.289 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.137e-05/0.3371, allocations: 104.1 kB / 1.289 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.107e-06/0.3371, allocations: 0 / 1.289 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.593e-05/0.3371, allocations: 29.7 kB / 1.289 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001652/0.3373, allocations: 323 kB / 1.289 GB, free: 6.363 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.267e-05/0.3374, allocations: 59.98 kB / 1.289 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-05/0.3375, allocations: 55.97 kB / 1.289 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.3376, allocations: 95.25 kB / 1.289 GB, free: 6.156 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3376, allocations: 0 / 1.289 GB, free: 6.156 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002006/0.3378, allocations: 165.4 kB / 1.289 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.3378, allocations: 8 kB / 1.289 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.3378, allocations: 0 / 1.289 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3378, allocations: 7.969 kB / 1.289 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.279e-05/0.3378, allocations: 0 / 1.289 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.3378, allocations: 4.062 kB / 1.29 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.788e-05/0.3379, allocations: 7.953 kB / 1.29 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.3379, allocations: 3.938 kB / 1.29 GB, free: 5.957 MB / 0.9825 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.0001935/0.3381, allocations: 133.8 kB / 1.29 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.621e-05/0.3381, allocations: 11.84 kB / 1.29 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.3382, allocations: 70.11 kB / 1.29 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3382, allocations: 0 / 1.29 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3382, allocations: 3.969 kB / 1.29 GB, free: 5.727 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.3382, allocations: 4 kB / 1.29 GB, free: 5.723 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001396/0.3384, allocations: 148.7 kB / 1.29 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.3384, allocations: 11.92 kB / 1.29 GB, free: 5.523 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.829e-06/0.3384, allocations: 0 / 1.29 GB, free: 5.523 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3384, allocations: 0 / 1.29 GB, free: 5.523 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.98e-06/0.3384, allocations: 0 / 1.29 GB, free: 5.523 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.3384, allocations: 0 / 1.29 GB, free: 5.523 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3384, allocations: 0 / 1.29 GB, free: 5.523 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.3385, allocations: 92.97 kB / 1.29 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.964e-05/0.3385, allocations: 15.89 kB / 1.29 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.3385, allocations: 0 / 1.29 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.341e-05/0.3385, allocations: 0 / 1.29 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.711e-05/0.3386, allocations: 3.984 kB / 1.29 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.3386, allocations: 0 / 1.29 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001365/0.3387, allocations: 152.3 kB / 1.29 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3387, allocations: 0 / 1.29 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003523/0.3391, allocations: 83.8 kB / 1.29 GB, free: 5.164 MB / 0.9825 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.0008941/0.3399, allocations: 0.762 MB / 1.291 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002019/0.3401, allocations: 121.5 kB / 1.291 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3401, allocations: 0 / 1.291 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.865e-05/0.3402, allocations: 11.98 kB / 1.291 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001515/0.3403, allocations: 8 kB / 1.291 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.3422, allocations: 1.817 MB / 1.293 GB, free: 2.352 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/0.3426, allocations: 0.7002 MB / 1.294 GB, free: 1.625 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.967e-05/0.3426, allocations: 0 / 1.294 GB, free: 1.625 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.761e-05/0.3427, allocations: 31.42 kB / 1.294 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.3427, allocations: 4.031 kB / 1.294 GB, free: 1.59 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02646/0.3692, allocations: 4.032 MB / 1.298 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.91, allocations: 6.094 kB / 1.298 GB, free: 13.7 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 18.96347501501441]