Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",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.007529/0.007529, allocations: 101.7 kB / 15.73 MB, free: 6.039 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.0019/0.0019, allocations: 200.3 kB / 16.67 MB, free: 5.977 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.873/2.873, allocations: 461.9 MB / 0.7348 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 67.89 kB / 1.054 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2871, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002267/0.2894, allocations: 0.5204 MB / 1.208 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002747/0.2922, allocations: 1.603 MB / 1.209 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.461e-05/0.2922, allocations: 0 / 1.209 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.2924, allocations: 63.83 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.9e-05/0.2925, allocations: 35.95 kB / 1.209 GB, free: 7.914 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.0.1-master/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.001122/0.2936, allocations: 235.3 kB / 1.21 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.2938, allocations: 39.89 kB / 1.21 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.138e-05/0.2938, allocations: 3.938 kB / 1.21 GB, free: 7.641 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.264e-05/0.2939, allocations: 19.97 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.773e-05/0.294, allocations: 39.89 kB / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.43e-05/0.294, allocations: 8 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007223/0.2947, allocations: 339.5 kB / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.608e-05/0.2948, allocations: 23.92 kB / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.147e-05/0.2948, allocations: 23.75 kB / 1.21 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005792/0.2954, allocations: 295.3 kB / 1.21 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2954, allocations: 0 / 1.21 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2955, allocations: 0 / 1.21 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.2955, allocations: 0 / 1.21 GB, free: 6.906 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.0006119/0.2961, allocations: 427.2 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.2961, allocations: 20.56 kB / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.354e-05/0.2962, allocations: 30.75 kB / 1.211 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.258e-05/0.2962, allocations: 8.844 kB / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002053/0.2965, allocations: 196.5 kB / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.2965, allocations: 384 / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.2965, allocations: 4.375 kB / 1.211 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000117/0.2966, allocations: 45.81 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.2966, allocations: 3.938 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.745e-06/0.2966, allocations: 0 / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.2967, allocations: 4 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.558e-05/0.2967, allocations: 19.98 kB / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002386/0.2969, allocations: 193.5 kB / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.398e-05/0.297, allocations: 26.58 kB / 1.211 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.629e-05/0.297, allocations: 16.91 kB / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 5.264e-05/0.2971, allocations: 4 kB / 1.211 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.2971, allocations: 34.5 kB / 1.211 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.2971, allocations: 4 kB / 1.211 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001866/0.2973, allocations: 73.52 kB / 1.211 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.2974, allocations: 59.34 kB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/0.2976, allocations: 206.3 kB / 1.212 GB, free: 5.355 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.2976, allocations: 25.7 kB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.519e-05/0.2977, allocations: 100.1 kB / 1.212 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.179e-05/0.2977, allocations: 3.906 kB / 1.212 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.828e-05/0.2978, allocations: 33.83 kB / 1.212 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.2979, allocations: 326.8 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.411e-05/0.298, allocations: 59.97 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.528e-05/0.2981, allocations: 51.98 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.2982, allocations: 94.11 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2982, allocations: 0 / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001849/0.2984, allocations: 166.4 kB / 1.213 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.2984, allocations: 5.562 kB / 1.213 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.2984, allocations: 4 kB / 1.213 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.2984, allocations: 3.984 kB / 1.213 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.521e-05/0.2985, allocations: 8.047 kB / 1.213 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.2985, allocations: 0 / 1.213 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.899e-05/0.2985, allocations: 11.84 kB / 1.213 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.2985, allocations: 0 / 1.213 GB, free: 4.449 MB / 0.9669 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.0001692/0.2987, allocations: 129.8 kB / 1.213 GB, free: 4.312 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.946e-05/0.2987, allocations: 15.75 kB / 1.213 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.2988, allocations: 66.17 kB / 1.213 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.2988, allocations: 4.031 kB / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2989, allocations: 0 / 1.213 GB, free: 4.227 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.2989, allocations: 3.938 kB / 1.213 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001267/0.299, allocations: 185.6 kB / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.299, allocations: 0 / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.934e-06/0.299, allocations: 7.922 kB / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.299, allocations: 0 / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.371e-06/0.299, allocations: 0 / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.299, allocations: 4 kB / 1.213 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.299, allocations: 0 / 1.213 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.255e-05/0.2991, allocations: 84.97 kB / 1.213 GB, free: 3.879 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.52e-05/0.2992, allocations: 92.86 kB / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.2992, allocations: 0 / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.433e-05/0.2992, allocations: 0 / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.375e-05/0.2992, allocations: 7.984 kB / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.2993, allocations: 4 kB / 1.213 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001207/0.2994, allocations: 148.1 kB / 1.213 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2994, allocations: 4 kB / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003552/0.2998, allocations: 92.02 kB / 1.213 GB, free: 3.52 MB / 0.9669 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.0008071/0.3006, allocations: 0.7442 MB / 1.214 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001954/0.3008, allocations: 129.6 kB / 1.214 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3008, allocations: 0 / 1.214 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.707e-05/0.3008, allocations: 11.98 kB / 1.214 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001528/0.301, allocations: 11.94 kB / 1.214 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.3026, allocations: 1.814 MB / 1.216 GB, free: 0.7148 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.3029, allocations: 0.7002 MB / 1.217 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.884e-05/0.3029, allocations: 4.031 kB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.907e-05/0.303, allocations: 27.42 kB / 1.217 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of SimCode: time 2.21e-07/0.303, allocations: 0 / 1.217 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02017/0.3231, allocations: 3.879 MB / 1.221 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.749/8.073, allocations: 14.02 kB / 1.221 GB, free: 12.16 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches