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.001989/0.001989, allocations: 105.4 kB / 16.45 MB, free: 6.504 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.002263/0.002263, allocations: 191.7 kB / 19.41 MB, free: 3.68 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.411/1.411, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] 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.792/2.792, allocations: 476.7 MB / 0.7611 GB, free: 11.3 MB / 0.6231 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.002009/0.002009, allocations: 63.89 kB / 1.104 GB, free: 9.301 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7319/0.7339, allocations: 168.7 MB / 1.269 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001795/0.7357, allocations: 0.5117 MB / 1.269 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002617/0.7383, allocations: 1.625 MB / 1.271 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.697e-05/0.7383, allocations: 0 / 1.271 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.7385, allocations: 23.91 kB / 1.271 GB, free: 3.004 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.723e-05/0.7385, allocations: 7.984 kB / 1.271 GB, free: 2.996 MB / 0.9669 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.0009974/0.7395, allocations: 249.5 kB / 1.271 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.793e-05/0.7396, allocations: 27.92 kB / 1.271 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.456e-05/0.7396, allocations: 3.938 kB / 1.271 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.439e-05/0.7396, allocations: 15.97 kB / 1.271 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.353e-05/0.7397, allocations: 15.92 kB / 1.271 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.098e-05/0.7397, allocations: 0 / 1.271 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006977/0.7404, allocations: 367.4 kB / 1.271 GB, free: 2.332 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.33e-05/0.7404, allocations: 15.88 kB / 1.271 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.32e-05/0.7405, allocations: 27.8 kB / 1.272 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004876/0.741, allocations: 273.1 kB / 1.272 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.741, allocations: 0 / 1.272 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.373e-06/0.741, allocations: 0 / 1.272 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.741, allocations: 0 / 1.272 GB, free: 2.023 MB / 0.9669 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.0005385/0.7415, allocations: 417.5 kB / 1.272 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.7416, allocations: 12.03 kB / 1.272 GB, free: 1.559 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.518e-05/0.7416, allocations: 30.75 kB / 1.272 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.7416, allocations: 8.891 kB / 1.272 GB, free: 1.512 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/0.7418, allocations: 192.2 kB / 1.272 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.33e-06/0.7418, allocations: 4.375 kB / 1.272 GB, free: 1.281 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.423e-05/0.7418, allocations: 4.375 kB / 1.272 GB, free: 1.277 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.209e-05/0.7419, allocations: 33.83 kB / 1.272 GB, free: 1.238 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.7419, allocations: 11.92 kB / 1.272 GB, free: 1.227 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.981e-06/0.742, allocations: 0 / 1.272 GB, free: 1.227 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.742, allocations: 0 / 1.272 GB, free: 1.227 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.513e-05/0.742, allocations: 15.98 kB / 1.272 GB, free: 1.211 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002018/0.7422, allocations: 169.7 kB / 1.273 GB, free: 0.9961 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.964e-05/0.7423, allocations: 34.45 kB / 1.273 GB, free: 0.9531 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.107e-05/0.7423, allocations: 20.91 kB / 1.273 GB, free: 0.9297 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.87e-05/0.7423, allocations: 4 kB / 1.273 GB, free: 0.9258 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.7423, allocations: 34.5 kB / 1.273 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 1.402e-06/0.7423, allocations: 0 / 1.273 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001623/0.7425, allocations: 65.58 kB / 1.273 GB, free: 0.8125 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.7425, allocations: 55.41 kB / 1.273 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.7427, allocations: 165.4 kB / 1.273 GB, free: 0.5781 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.666e-05/0.7427, allocations: 25.7 kB / 1.273 GB, free: 0.5469 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.234e-05/0.7428, allocations: 100.1 kB / 1.273 GB, free: 456 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.438e-06/0.7428, allocations: 3.938 kB / 1.273 GB, free: 452 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.71e-05/0.7429, allocations: 25.7 kB / 1.273 GB, free: 420 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.743, allocations: 322.8 kB / 1.273 GB, free: 88 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.869e-05/0.7431, allocations: 39.98 kB / 1.273 GB, free: 48 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.623e-05/0.7431, allocations: 39.98 kB / 1.274 GB, free: 8 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.7433, allocations: 76.84 kB / 1.274 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.7433, allocations: 0 / 1.274 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001727/0.7434, allocations: 125.5 kB / 1.274 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.7435, allocations: 8 kB / 1.274 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.7435, allocations: 0 / 1.274 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.7435, allocations: 0 / 1.274 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.545e-05/0.7435, allocations: 3.984 kB / 1.274 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.7435, allocations: 3.938 kB / 1.274 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.307e-05/0.7435, allocations: 11.89 kB / 1.274 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.7435, allocations: 0 / 1.274 GB, free: 15.77 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: 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.0001675/0.7437, allocations: 129.9 kB / 1.274 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.875e-05/0.7437, allocations: 11.89 kB / 1.274 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.7438, allocations: 49.56 kB / 1.274 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.7438, allocations: 3.938 kB / 1.274 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.7439, allocations: 3.984 kB / 1.274 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.7439, allocations: 4 kB / 1.274 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000141/0.744, allocations: 165.7 kB / 1.274 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.744, allocations: 0 / 1.274 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.694e-06/0.744, allocations: 7.969 kB / 1.274 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.744, allocations: 0 / 1.274 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.744, allocations: 3.984 kB / 1.274 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.744, allocations: 0 / 1.274 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.744, allocations: 15.88 kB / 1.274 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.49e-05/0.7441, allocations: 73.08 kB / 1.274 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.396e-05/0.7442, allocations: 89 kB / 1.274 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.7442, allocations: 32 / 1.274 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.281e-05/0.7442, allocations: 4 kB / 1.274 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.373e-05/0.7442, allocations: 0 / 1.274 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.7442, allocations: 4 kB / 1.274 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001094/0.7443, allocations: 121.9 kB / 1.274 GB, free: 15 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.7443, allocations: 0 / 1.274 GB, free: 15 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003714/0.7447, allocations: 87.8 kB / 1.274 GB, free: 14.91 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.0009103/0.7456, allocations: 0.7473 MB / 1.275 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000188/0.7458, allocations: 93.66 kB / 1.275 GB, free: 14.06 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.7458, allocations: 4.094 kB / 1.275 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.726e-05/0.7458, allocations: 8 kB / 1.275 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001564/0.746, allocations: 13.66 kB / 1.275 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/0.7476, allocations: 1.538 MB / 1.277 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003547/0.748, allocations: 0.6924 MB / 1.278 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.286e-05/0.748, allocations: 3.984 kB / 1.278 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.378e-05/0.7481, allocations: 15.44 kB / 1.278 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of SimCode: time 4.31e-07/0.7481, allocations: 4 kB / 1.278 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0289/0.777, allocations: 3.512 MB / 1.281 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.424/9.201, allocations: 5.266 kB / 1.281 GB, free: 8.254 MB / 0.9825 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_1d.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.199664529878646]