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.001274/0.001274, allocations: 120 kB / 17.17 MB, free: 5.977 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.001353/0.001353, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.474/1.474, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.785/2.785, allocations: 476.7 MB / 0.7678 GB, free: 9.551 MB / 0.6075 GB " [Timeout remaining time 177] 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.002032/0.002032, allocations: 69.5 kB / 1.113 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9212/0.9232, allocations: 169.9 MB / 1.279 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001759/0.925, allocations: 0.522 MB / 1.279 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002397/0.9274, allocations: 1.673 MB / 1.281 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.751e-05/0.9274, allocations: 5 kB / 1.281 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.000191/0.9276, allocations: 58.59 kB / 1.281 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.415e-05/0.9277, allocations: 35.16 kB / 1.281 GB, free: 10.23 MB / 0.9981 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.0008706/0.9285, allocations: 248.8 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.681e-05/0.9286, allocations: 30.27 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.113e-05/0.9287, allocations: 6.109 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.776e-05/0.9287, allocations: 17.72 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.597e-05/0.9288, allocations: 48.22 kB / 1.281 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.9288, allocations: 4.531 kB / 1.281 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007629/0.9296, allocations: 370.6 kB / 1.282 GB, free: 9.988 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 6.09e-05/0.9296, allocations: 26.86 kB / 1.282 GB, free: 9.98 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.336e-05/0.9297, allocations: 25.98 kB / 1.282 GB, free: 9.961 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004674/0.9301, allocations: 293.8 kB / 1.282 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.9302, allocations: 5.312 kB / 1.282 GB, free: 9.875 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.363e-06/0.9302, allocations: 0 / 1.282 GB, free: 9.875 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.005e-05/0.9302, allocations: 0 / 1.282 GB, free: 9.875 MB / 0.9981 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.0005105/0.9307, allocations: 437.7 kB / 1.283 GB, free: 9.449 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.9307, allocations: 9.562 kB / 1.283 GB, free: 9.449 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.275e-05/0.9307, allocations: 0.7969 kB / 1.283 GB, free: 9.449 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.857e-05/0.9308, allocations: 31.88 kB / 1.283 GB, free: 9.41 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.723e-05/0.9308, allocations: 17.45 kB / 1.283 GB, free: 9.398 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.931, allocations: 188.9 kB / 1.283 GB, free: 9.188 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.931, allocations: 384 / 1.283 GB, free: 9.188 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.931, allocations: 2.219 kB / 1.283 GB, free: 9.188 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001064/0.9311, allocations: 41.92 kB / 1.283 GB, free: 9.152 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.9311, allocations: 0 / 1.283 GB, free: 9.152 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.333e-06/0.9311, allocations: 1.344 kB / 1.283 GB, free: 9.152 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.9311, allocations: 0 / 1.283 GB, free: 9.152 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.601e-05/0.9312, allocations: 22.59 kB / 1.283 GB, free: 9.148 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001999/0.9314, allocations: 189.4 kB / 1.283 GB, free: 8.941 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.916e-05/0.9314, allocations: 32.7 kB / 1.283 GB, free: 8.91 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.531e-05/0.9314, allocations: 14.73 kB / 1.283 GB, free: 8.902 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.639e-05/0.9315, allocations: 10.67 kB / 1.283 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.9315, allocations: 35.08 kB / 1.283 GB, free: 8.855 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.9315, allocations: 1.156 kB / 1.283 GB, free: 8.855 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001573/0.9317, allocations: 71.77 kB / 1.283 GB, free: 8.812 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.9317, allocations: 52.72 kB / 1.283 GB, free: 8.75 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.9319, allocations: 212.5 kB / 1.283 GB, free: 8.617 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.9319, allocations: 25.7 kB / 1.284 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.832e-05/0.932, allocations: 106.3 kB / 1.284 GB, free: 8.488 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 8.396e-06/0.932, allocations: 0 / 1.284 GB, free: 8.488 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/0.9321, allocations: 33.02 kB / 1.284 GB, free: 8.465 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.9322, allocations: 323.8 kB / 1.284 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.881e-05/0.9323, allocations: 53.53 kB / 1.284 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.261e-05/0.9323, allocations: 53.91 kB / 1.284 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001053/0.9324, allocations: 97.55 kB / 1.284 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.9324, allocations: 1.125 kB / 1.284 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001954/0.9326, allocations: 165.4 kB / 1.284 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.9327, allocations: 5.984 kB / 1.284 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.9327, allocations: 5.609 kB / 1.284 GB, free: 8.035 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.9327, allocations: 5.188 kB / 1.284 GB, free: 8.031 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.356e-05/0.9327, allocations: 4.609 kB / 1.284 GB, free: 8.027 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.9327, allocations: 1 kB / 1.284 GB, free: 8.027 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.286e-05/0.9327, allocations: 14.11 kB / 1.284 GB, free: 8.016 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.9327, allocations: 5.812 kB / 1.284 GB, free: 8.012 MB / 0.9981 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.0001563/0.9329, allocations: 131.4 kB / 1.284 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.769e-05/0.9329, allocations: 15.53 kB / 1.284 GB, free: 7.887 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.933, allocations: 68.05 kB / 1.285 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.933, allocations: 0 / 1.285 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.933, allocations: 1.25 kB / 1.285 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.933, allocations: 0 / 1.285 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.9332, allocations: 178.2 kB / 1.285 GB, free: 7.645 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.9332, allocations: 8.812 kB / 1.285 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.679e-06/0.9332, allocations: 0 / 1.285 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.9332, allocations: 1.312 kB / 1.285 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.9332, allocations: 0.5156 kB / 1.285 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.9332, allocations: 1.375 kB / 1.285 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.9332, allocations: 4.688 kB / 1.285 GB, free: 7.633 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.62e-05/0.9333, allocations: 85.16 kB / 1.285 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.621e-05/0.9334, allocations: 92.66 kB / 1.285 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.9334, allocations: 1.438 kB / 1.285 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.349e-05/0.9334, allocations: 0 / 1.285 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.014e-05/0.9334, allocations: 4.5 kB / 1.285 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.9334, allocations: 2.203 kB / 1.285 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001276/0.9335, allocations: 152.9 kB / 1.285 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8.1e-08/0.9335, allocations: 0 / 1.285 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003482/0.9339, allocations: 89.09 kB / 1.285 GB, free: 7.34 MB / 0.9981 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.0008342/0.9347, allocations: 0.7533 MB / 1.286 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001894/0.9349, allocations: 121.8 kB / 1.286 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.9349, allocations: 0 / 1.286 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.723e-05/0.9349, allocations: 10.92 kB / 1.286 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001477/0.9351, allocations: 6.625 kB / 1.286 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.9369, allocations: 1.827 MB / 1.288 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.9372, allocations: 0.7023 MB / 1.288 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.82e-05/0.9372, allocations: 2.438 kB / 1.288 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.812e-05/0.9373, allocations: 23.48 kB / 1.289 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of SimCode: time 3.21e-07/0.9373, allocations: 0 / 1.289 GB, free: 4.641 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02082/0.9581, allocations: 3.949 MB / 1.292 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.342/9.3, allocations: 6.922 kB / 1.292 GB, free: 4.027 MB / 0.9981 GB " [Timeout remaining time 291] (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: 15.427232758025639]