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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.005458/0.005458, allocations: 98.89 kB / 15.73 MB, free: 6.031 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.001631/0.001631, allocations: 194.1 kB / 16.67 MB, free: 5.953 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.221/1.221, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.389/2.389, allocations: 482.6 MB / 0.7551 GB, free: 6.621 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 64.84 kB / 1.083 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2515, allocations: 162.3 MB / 1.242 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001295/0.2528, allocations: 0.501 MB / 1.242 GB, free: 8.441 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001817/0.2547, allocations: 1.604 MB / 1.244 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.369e-05/0.2547, allocations: 0 / 1.244 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.2549, allocations: 63.83 kB / 1.244 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.524e-05/0.2549, allocations: 31.89 kB / 1.244 GB, free: 6.727 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 12.0.0-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.0006772/0.2556, allocations: 251.2 kB / 1.244 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.334e-05/0.2557, allocations: 35.91 kB / 1.244 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 2.839e-05/0.2557, allocations: 4 kB / 1.244 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.285e-05/0.2557, allocations: 27.89 kB / 1.244 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.465e-05/0.2558, allocations: 35.91 kB / 1.244 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.809e-06/0.2558, allocations: 0 / 1.244 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004745/0.2563, allocations: 339.5 kB / 1.245 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.734e-05/0.2563, allocations: 23.92 kB / 1.245 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.643e-05/0.2564, allocations: 23.75 kB / 1.245 GB, free: 6 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003477/0.2567, allocations: 299.3 kB / 1.245 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.2567, allocations: 4 kB / 1.245 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2567, allocations: 0 / 1.245 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.386e-06/0.2567, allocations: 0 / 1.245 GB, free: 5.703 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.0003969/0.2571, allocations: 438.5 kB / 1.245 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 2.801e-05/0.2572, allocations: 8.031 kB / 1.245 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.739e-05/0.2572, allocations: 30.75 kB / 1.245 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.286e-05/0.2572, allocations: 12.84 kB / 1.245 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.2574, allocations: 188.2 kB / 1.246 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.108e-06/0.2574, allocations: 384 / 1.246 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.063e-05/0.2574, allocations: 384 / 1.246 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.519e-05/0.2575, allocations: 53.69 kB / 1.246 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.2575, allocations: 0 / 1.246 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.489e-06/0.2575, allocations: 0 / 1.246 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-06/0.2575, allocations: 4 kB / 1.246 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.565e-05/0.2576, allocations: 15.98 kB / 1.246 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001655/0.2577, allocations: 189.6 kB / 1.246 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 3.643e-05/0.2578, allocations: 22.58 kB / 1.246 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.273e-05/0.2578, allocations: 24.91 kB / 1.246 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.2578, allocations: 8 kB / 1.246 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.2579, allocations: 38.44 kB / 1.246 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.2579, allocations: 0 / 1.246 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001262/0.258, allocations: 69.58 kB / 1.246 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.033e-05/0.258, allocations: 51.41 kB / 1.246 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.2582, allocations: 209.7 kB / 1.246 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.2582, allocations: 29.83 kB / 1.246 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.51e-05/0.2583, allocations: 104.1 kB / 1.246 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.715e-06/0.2583, allocations: 3.953 kB / 1.246 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.24e-05/0.2584, allocations: 33.7 kB / 1.246 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.2585, allocations: 330.7 kB / 1.247 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.95e-05/0.2585, allocations: 55.97 kB / 1.247 GB, free: 3.602 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.918e-05/0.2586, allocations: 51.98 kB / 1.247 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.283e-05/0.2587, allocations: 99 kB / 1.247 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.2587, allocations: 32 / 1.247 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001615/0.2589, allocations: 165.5 kB / 1.247 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.2589, allocations: 9.875 kB / 1.247 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.2589, allocations: 0 / 1.247 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.2589, allocations: 0 / 1.247 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.486e-06/0.2589, allocations: 0 / 1.247 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.2589, allocations: 3.984 kB / 1.247 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.254e-05/0.259, allocations: 11.91 kB / 1.247 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.259, allocations: 0 / 1.247 GB, free: 3.262 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.0001147/0.2591, allocations: 133.9 kB / 1.247 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.299e-05/0.2591, allocations: 7.891 kB / 1.247 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.333e-05/0.2592, allocations: 70.17 kB / 1.247 GB, free: 3.039 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.2592, allocations: 0 / 1.247 GB, free: 3.039 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2592, allocations: 0 / 1.247 GB, free: 3.039 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2592, allocations: 7.938 kB / 1.247 GB, free: 3.031 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.2593, allocations: 177.7 kB / 1.248 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.2594, allocations: 0 / 1.248 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.384e-06/0.2594, allocations: 7.938 kB / 1.248 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2594, allocations: 3.984 kB / 1.248 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.268e-06/0.2594, allocations: 4.031 kB / 1.248 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.2594, allocations: 0 / 1.248 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.2594, allocations: 0 / 1.248 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.951e-05/0.2595, allocations: 84.97 kB / 1.248 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.249e-05/0.2595, allocations: 89 kB / 1.248 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.2595, allocations: 4 kB / 1.248 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.139e-05/0.2596, allocations: 0 / 1.248 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.165e-05/0.2596, allocations: 8.016 kB / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.2596, allocations: 7.984 kB / 1.248 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001086/0.2597, allocations: 151.2 kB / 1.248 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2597, allocations: 0 / 1.248 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002608/0.26, allocations: 87.8 kB / 1.248 GB, free: 2.332 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.0006819/0.2606, allocations: 0.7555 MB / 1.249 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001567/0.2608, allocations: 129.6 kB / 1.249 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.2608, allocations: 0 / 1.249 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.678e-05/0.2608, allocations: 15.98 kB / 1.249 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.261, allocations: 12.06 kB / 1.249 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00147/0.2625, allocations: 1.805 MB / 1.251 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.2627, allocations: 0.7041 MB / 1.251 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.363e-05/0.2627, allocations: 0 / 1.251 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.688e-05/0.2628, allocations: 31.42 kB / 1.251 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.2628, allocations: 3.938 kB / 1.251 GB, free: 14.76 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.405/0.6678, allocations: 3.87 MB / 1.255 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.348/9.016, allocations: 18.91 kB / 1.255 GB, free: 10.96 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=400 --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