Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 108.3 kB / 17.54 MB, free: 4.781 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 190.6 kB / 20.71 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 225.6 MB / 249.3 MB, free: 3.316 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.521/2.521, allocations: 476.7 MB / 0.7628 GB, free: 15.13 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 63.89 kB / 1.107 GB, free: 5.141 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8258/0.8277, allocations: 168.7 MB / 1.271 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001411/0.8291, allocations: 0.5288 MB / 1.272 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001803/0.8309, allocations: 1.624 MB / 1.273 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.659e-05/0.8309, allocations: 0 / 1.273 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.8311, allocations: 20.8 kB / 1.273 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.507e-05/0.8311, allocations: 8.797 kB / 1.273 GB, free: 6.227 MB / 0.9981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0-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.0007305/0.8318, allocations: 251 kB / 1.274 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.681e-05/0.8319, allocations: 25.34 kB / 1.274 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.523e-05/0.8319, allocations: 5.844 kB / 1.274 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.661e-05/0.8319, allocations: 14.5 kB / 1.274 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.918e-05/0.832, allocations: 18.73 kB / 1.274 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.869e-06/0.832, allocations: 0 / 1.274 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004888/0.8325, allocations: 362.7 kB / 1.274 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.304e-05/0.8325, allocations: 25.89 kB / 1.274 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.233e-05/0.8325, allocations: 15.72 kB / 1.274 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000347/0.8329, allocations: 278.6 kB / 1.274 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.8329, allocations: 0.7812 kB / 1.274 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.273e-06/0.8329, allocations: 0 / 1.274 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.797e-06/0.8329, allocations: 0 / 1.274 GB, free: 5.895 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.000341/0.8332, allocations: 417.2 kB / 1.275 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.8333, allocations: 9.469 kB / 1.275 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.301e-05/0.8333, allocations: 31.34 kB / 1.275 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.591e-05/0.8333, allocations: 8.016 kB / 1.275 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.8334, allocations: 182.5 kB / 1.275 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.982e-06/0.8334, allocations: 5.25 kB / 1.275 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.698e-06/0.8335, allocations: 1.062 kB / 1.275 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.33e-05/0.8335, allocations: 44.02 kB / 1.275 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.8335, allocations: 3.938 kB / 1.275 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.042e-06/0.8336, allocations: 0.875 kB / 1.275 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.8336, allocations: 0 / 1.275 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.13e-05/0.8336, allocations: 16.08 kB / 1.275 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001183/0.8337, allocations: 177.7 kB / 1.275 GB, free: 4.98 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.721e-05/0.8337, allocations: 29.03 kB / 1.275 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.915e-05/0.8338, allocations: 13.38 kB / 1.275 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.977e-05/0.8338, allocations: 5.219 kB / 1.275 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.271e-05/0.8338, allocations: 36.31 kB / 1.275 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.8338, allocations: 3.984 kB / 1.275 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001397/0.8339, allocations: 68.23 kB / 1.275 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.716e-05/0.834, allocations: 56.44 kB / 1.275 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.8341, allocations: 165.3 kB / 1.276 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.944e-06/0.8341, allocations: 25.7 kB / 1.276 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.338e-05/0.8341, allocations: 98.77 kB / 1.276 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.388e-06/0.8341, allocations: 0.8438 kB / 1.276 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.598e-05/0.8342, allocations: 25.73 kB / 1.276 GB, free: 4.531 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.286e-05/0.8342, allocations: 322.6 kB / 1.276 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.482e-05/0.8343, allocations: 35.47 kB / 1.276 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.503e-05/0.8343, allocations: 46.41 kB / 1.276 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.877e-05/0.8344, allocations: 71.3 kB / 1.276 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.8344, allocations: 3.938 kB / 1.276 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001376/0.8345, allocations: 130.1 kB / 1.276 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.8346, allocations: 6.406 kB / 1.276 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.8346, allocations: 5.781 kB / 1.276 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.8346, allocations: 0.9062 kB / 1.276 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.058e-05/0.8346, allocations: 0 / 1.276 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.8346, allocations: 0.9062 kB / 1.276 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.112e-05/0.8346, allocations: 14.11 kB / 1.276 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.455e-06/0.8346, allocations: 3.297 kB / 1.276 GB, free: 4.102 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: 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 8.729e-05/0.8347, allocations: 119.7 kB / 1.277 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.181e-05/0.8347, allocations: 10.67 kB / 1.277 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.194e-05/0.8348, allocations: 63.98 kB / 1.277 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.8348, allocations: 5.281 kB / 1.277 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.8348, allocations: 0 / 1.277 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.8348, allocations: 0 / 1.277 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.793e-05/0.8349, allocations: 173.3 kB / 1.277 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.8349, allocations: 0 / 1.277 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.558e-06/0.8349, allocations: 4.625 kB / 1.277 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.8349, allocations: 0.6562 kB / 1.277 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.629e-06/0.8349, allocations: 0.625 kB / 1.277 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.8349, allocations: 0.7812 kB / 1.277 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.8349, allocations: 0.6094 kB / 1.277 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.457e-05/0.835, allocations: 81.97 kB / 1.277 GB, free: 3.652 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.921e-05/0.835, allocations: 88.33 kB / 1.277 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.835, allocations: 8 kB / 1.277 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.091e-05/0.835, allocations: 1.125 kB / 1.277 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.37e-05/0.835, allocations: 0.75 kB / 1.277 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.835, allocations: 0.7812 kB / 1.277 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.053e-05/0.8351, allocations: 122.5 kB / 1.277 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.8351, allocations: 0 / 1.277 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003202/0.8354, allocations: 87.7 kB / 1.277 GB, free: 3.445 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.0006153/0.836, allocations: 0.7448 MB / 1.278 GB, free: 2.805 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001583/0.8362, allocations: 101.9 kB / 1.278 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.8362, allocations: 0 / 1.278 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.408e-05/0.8362, allocations: 7.781 kB / 1.278 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001268/0.8363, allocations: 7.625 kB / 1.278 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.8374, allocations: 1.549 MB / 1.279 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.8377, allocations: 0.6926 MB / 1.28 GB, free: 16.85 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 1.635e-05/0.8377, allocations: 2.188 kB / 1.28 GB, free: 16.85 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.477e-05/0.8377, allocations: 18.45 kB / 1.28 GB, free: 16.83 MB / 1.014 GB Notification: Performance of SimCode: time 3.71e-07/0.8377, allocations: 0 / 1.28 GB, free: 16.83 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02585/0.8636, allocations: 3.484 MB / 1.284 GB, free: 16.29 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.986/7.849, allocations: 3.594 kB / 1.284 GB, free: 16.29 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv. Warning: Get data of variable cmp from file Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 13.290782559997751]