Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_1d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_latest_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.007135/0.007135, allocations: 97.41 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.001705/0.001705, allocations: 199.4 kB / 16.68 MB, free: 5.961 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.249/1.249, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.517/2.517, allocations: 482.6 MB / 0.755 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 71.83 kB / 1.083 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2492, allocations: 162.3 MB / 1.242 GB, free: 9.898 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001298/0.2505, allocations: 0.5192 MB / 1.242 GB, free: 9.383 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001924/0.2524, allocations: 1.602 MB / 1.244 GB, free: 7.762 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.639e-05/0.2525, allocations: 3.938 kB / 1.244 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001075/0.2526, allocations: 15.98 kB / 1.244 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.234e-05/0.2526, allocations: 15.92 kB / 1.244 GB, free: 7.727 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 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.0007289/0.2534, allocations: 247.3 kB / 1.244 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 5.231e-05/0.2534, allocations: 23.86 kB / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 2.83e-05/0.2535, allocations: 4 kB / 1.244 GB, free: 7.457 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.274e-05/0.2535, allocations: 7.984 kB / 1.244 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.269e-05/0.2535, allocations: 23.91 kB / 1.244 GB, free: 7.426 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.708e-06/0.2535, allocations: 4 kB / 1.244 GB, free: 7.422 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000476/0.254, allocations: 331.5 kB / 1.245 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.912e-05/0.2541, allocations: 19.92 kB / 1.245 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.077e-05/0.2541, allocations: 23.8 kB / 1.245 GB, free: 7.055 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000343/0.2545, allocations: 271.3 kB / 1.245 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.2545, allocations: 4 kB / 1.245 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of FrontEnd: time 9.81e-07/0.2545, allocations: 0 / 1.245 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.2545, allocations: 0 / 1.245 GB, free: 6.785 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.0003796/0.2549, allocations: 406.7 kB / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.2549, allocations: 19.95 kB / 1.245 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.401e-05/0.2549, allocations: 30.75 kB / 1.245 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.48e-05/0.255, allocations: 12.84 kB / 1.245 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.2551, allocations: 182.7 kB / 1.245 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-06/0.2551, allocations: 384 / 1.245 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.2551, allocations: 4.359 kB / 1.245 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.437e-05/0.2552, allocations: 37.83 kB / 1.246 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.2552, allocations: 0 / 1.246 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-06/0.2552, allocations: 0 / 1.246 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-06/0.2552, allocations: 0 / 1.246 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.237e-05/0.2553, allocations: 23.98 kB / 1.246 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001492/0.2554, allocations: 177.6 kB / 1.246 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.235e-05/0.2555, allocations: 30.52 kB / 1.246 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.003e-05/0.2555, allocations: 16.91 kB / 1.246 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.2555, allocations: 4 kB / 1.246 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.2556, allocations: 38.5 kB / 1.246 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.2556, allocations: 4 kB / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001205/0.2557, allocations: 61.58 kB / 1.246 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.855e-05/0.2557, allocations: 51.41 kB / 1.246 GB, free: 5.52 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.2559, allocations: 172.6 kB / 1.246 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.2559, allocations: 25.7 kB / 1.246 GB, free: 5.309 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.907e-05/0.2559, allocations: 100.1 kB / 1.246 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.454e-06/0.256, allocations: 3.953 kB / 1.246 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.648e-05/0.256, allocations: 25.7 kB / 1.246 GB, free: 5.172 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.2561, allocations: 323 kB / 1.247 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.533e-05/0.2562, allocations: 39.98 kB / 1.247 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.906e-05/0.2562, allocations: 39.97 kB / 1.247 GB, free: 4.77 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.448e-05/0.2563, allocations: 68.83 kB / 1.247 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2563, allocations: 0 / 1.247 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001391/0.2564, allocations: 137.4 kB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.2565, allocations: 5.406 kB / 1.247 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.2565, allocations: 4 kB / 1.247 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.238e-06/0.2565, allocations: 0 / 1.247 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.137e-06/0.2565, allocations: 4.062 kB / 1.247 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.2565, allocations: 4 kB / 1.247 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.801e-05/0.2565, allocations: 3.953 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.2565, allocations: 7.984 kB / 1.247 GB, free: 4.531 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 0.0001097/0.2567, allocations: 129.7 kB / 1.247 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.194e-05/0.2567, allocations: 7.891 kB / 1.247 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.897e-05/0.2568, allocations: 57.56 kB / 1.247 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.2568, allocations: 4.031 kB / 1.247 GB, free: 4.316 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2568, allocations: 3.984 kB / 1.247 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.2568, allocations: 0 / 1.247 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001127/0.2569, allocations: 177.6 kB / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.2569, allocations: 0 / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.831e-06/0.2569, allocations: 3.938 kB / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.2569, allocations: 0 / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-06/0.2569, allocations: 0 / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.2569, allocations: 0 / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2569, allocations: 0 / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.072e-05/0.257, allocations: 89.06 kB / 1.247 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.186e-05/0.2571, allocations: 89 kB / 1.247 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.228e-06/0.2571, allocations: 0 / 1.247 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.888e-06/0.2571, allocations: 3.938 kB / 1.247 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.074e-05/0.2571, allocations: 0 / 1.247 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.2571, allocations: 0 / 1.247 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.415e-05/0.2572, allocations: 127.1 kB / 1.247 GB, free: 3.746 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2572, allocations: 0 / 1.247 GB, free: 3.746 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002664/0.2575, allocations: 91.83 kB / 1.248 GB, free: 3.656 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.0006608/0.2582, allocations: 0.7425 MB / 1.248 GB, free: 2.906 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001367/0.2583, allocations: 101.6 kB / 1.248 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.2583, allocations: 0 / 1.248 GB, free: 2.801 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.762e-05/0.2583, allocations: 19.88 kB / 1.248 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001156/0.2585, allocations: 8 kB / 1.248 GB, free: 2.773 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.2596, allocations: 1.54 MB / 1.25 GB, free: 1.152 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.2599, allocations: 0.6924 MB / 1.251 GB, free: 444 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.5e-05/0.2599, allocations: 3.984 kB / 1.251 GB, free: 440 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.844e-05/0.26, allocations: 23.45 kB / 1.251 GB, free: 416 kB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/0.26, allocations: 0 / 1.251 GB, free: 416 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7138/0.9738, allocations: 3.479 MB / 1.254 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.282/9.256, allocations: 4.141 kB / 1.254 GB, free: 13.97 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches