Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 191.4 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.573/2.573, allocations: 437 MB / 0.7099 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 59.91 kB / 0.8686 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5198/0.5213, allocations: 151.6 MB / 1.017 GB, free: 2.812 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001757/0.5231, allocations: 0.5889 MB / 1.017 GB, free: 2.227 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002043/0.5252, allocations: 1.641 MB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.987e-05/0.5253, allocations: 0 / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.5254, allocations: 23.84 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.379e-05/0.5254, allocations: 15.97 kB / 1.019 GB, free: 0.5273 MB / 0.7637 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007787/0.5262, allocations: 199.5 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.517e-05/0.5263, allocations: 27.91 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.221e-05/0.5263, allocations: 4 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.709e-05/0.5264, allocations: 7.984 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.125e-05/0.5264, allocations: 19.91 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.5264, allocations: 0 / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005005/0.5269, allocations: 271.6 kB / 1.019 GB, free: 12 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 6.348e-05/0.527, allocations: 19.92 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.051e-05/0.5271, allocations: 19.81 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003927/0.5275, allocations: 275.4 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.5275, allocations: 4 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.12e-07/0.5275, allocations: 0 / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.795e-06/0.5275, allocations: 0 / 1.02 GB, free: 15.7 MB / 0.7794 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.0004229/0.5279, allocations: 405.4 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.528, allocations: 8.031 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.04e-05/0.528, allocations: 34.75 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.784e-05/0.528, allocations: 8.844 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.5282, allocations: 182.1 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-06/0.5282, allocations: 384 / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-06/0.5282, allocations: 4.375 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.785e-05/0.5283, allocations: 49.69 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-06/0.5283, allocations: 0 / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.283e-06/0.5283, allocations: 0 / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.5283, allocations: 0 / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.642e-05/0.5284, allocations: 12 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.5285, allocations: 181.6 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.161e-05/0.5286, allocations: 30.62 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.884e-05/0.5286, allocations: 12.86 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.5286, allocations: 4 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.5287, allocations: 42.48 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.5287, allocations: 3.938 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001305/0.5288, allocations: 57.59 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.645e-05/0.5288, allocations: 51.41 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.529, allocations: 171.9 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.529, allocations: 29.7 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.035e-05/0.529, allocations: 88.14 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.015e-05/0.5291, allocations: 4 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.5291, allocations: 25.7 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.737e-05/0.5292, allocations: 322.8 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.085e-05/0.5293, allocations: 39.98 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.888e-05/0.5293, allocations: 35.98 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.73e-05/0.5294, allocations: 84.69 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5294, allocations: 4.031 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001412/0.5295, allocations: 129.5 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.5296, allocations: 4 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.5296, allocations: 0 / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.796e-06/0.5296, allocations: 0 / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.351e-05/0.5296, allocations: 4 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.5296, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.46e-05/0.5296, allocations: 7.844 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.5297, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 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.0001257/0.5298, allocations: 130.4 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.373e-05/0.5298, allocations: 11.84 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.929e-05/0.5299, allocations: 61.48 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.5299, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.5299, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.5299, allocations: 0 / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001048/0.53, allocations: 169.7 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.5301, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.035e-06/0.5301, allocations: 7.922 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.5301, allocations: 8.031 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.641e-06/0.5301, allocations: 0 / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.5301, allocations: 3.938 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5301, allocations: 0 / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.718e-05/0.5302, allocations: 80.97 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.316e-05/0.5302, allocations: 84.95 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.5302, allocations: 4 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.526e-05/0.5303, allocations: 4.031 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.319e-05/0.5303, allocations: 3.984 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.5303, allocations: 0 / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.902e-05/0.5304, allocations: 125.7 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5304, allocations: 0 / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003325/0.5307, allocations: 83.98 kB / 1.022 GB, free: 12.61 MB / 0.7794 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.0006756/0.5314, allocations: 0.739 MB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000141/0.5316, allocations: 105.6 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5316, allocations: 0 / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.745e-05/0.5316, allocations: 16.08 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.5317, allocations: 4 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.5329, allocations: 1.535 MB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/0.5331, allocations: 0.6926 MB / 1.025 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.837e-05/0.5332, allocations: 0 / 1.025 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.925e-05/0.5332, allocations: 19.42 kB / 1.025 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of SimCode: time 3.21e-07/0.5332, allocations: 8.031 kB / 1.025 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01256/0.5458, allocations: 3.352 MB / 1.029 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001731/0.546, allocations: 244.2 kB / 1.029 GB, free: 5.863 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/2.221, allocations: 0 / 1.029 GB, free: 5.863 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches