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 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_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.00576/0.00576, allocations: 104.5 kB / 15.74 MB, free: 5.598 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.001292/0.001292, allocations: 191.8 kB / 16.67 MB, free: 5.527 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.508/2.508, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 71.88 kB / 1.054 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7077/0.7091, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001633/0.7107, allocations: 0.5062 MB / 1.208 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002147/0.7129, allocations: 1.612 MB / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.148e-05/0.713, allocations: 0 / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.7131, allocations: 15.92 kB / 1.209 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.35e-05/0.7131, allocations: 7.984 kB / 1.209 GB, free: 11.42 MB / 0.9356 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.000905/0.7141, allocations: 251.2 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.89e-05/0.7141, allocations: 23.98 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.924e-05/0.7142, allocations: 0 / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.677e-05/0.7142, allocations: 15.92 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.417e-05/0.7143, allocations: 23.84 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.7143, allocations: 0 / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006367/0.7149, allocations: 331.5 kB / 1.21 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.66e-05/0.715, allocations: 23.91 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.747e-05/0.715, allocations: 11.88 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004574/0.7155, allocations: 283.3 kB / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7155, allocations: 0 / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7155, allocations: 0 / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.7155, allocations: 0 / 1.21 GB, free: 10.48 MB / 0.9356 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.0005249/0.7161, allocations: 409.4 kB / 1.211 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.7161, allocations: 12.03 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.446e-05/0.7162, allocations: 30.75 kB / 1.211 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.242e-05/0.7162, allocations: 12.78 kB / 1.211 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.7164, allocations: 174.7 kB / 1.211 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.176e-06/0.7164, allocations: 4.359 kB / 1.211 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.7164, allocations: 8.359 kB / 1.211 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.7165, allocations: 37.83 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.7165, allocations: 4 kB / 1.211 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.7166, allocations: 0 / 1.211 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.7166, allocations: 0 / 1.211 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.106e-05/0.7166, allocations: 23.86 kB / 1.211 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000193/0.7168, allocations: 185.5 kB / 1.211 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 5.081e-05/0.7169, allocations: 22.58 kB / 1.211 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.487e-05/0.7169, allocations: 16.91 kB / 1.211 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.357e-05/0.7169, allocations: 4 kB / 1.211 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.717, allocations: 34.5 kB / 1.211 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.717, allocations: 0 / 1.211 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001745/0.7171, allocations: 65.62 kB / 1.211 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.7172, allocations: 59.44 kB / 1.211 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.7174, allocations: 166.2 kB / 1.211 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.7174, allocations: 25.7 kB / 1.211 GB, free: 9.008 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.39e-05/0.7175, allocations: 100.1 kB / 1.212 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.2e-05/0.7175, allocations: 3.906 kB / 1.212 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.494e-05/0.7175, allocations: 29.7 kB / 1.212 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.7177, allocations: 314.8 kB / 1.212 GB, free: 8.551 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.418e-05/0.7177, allocations: 39.98 kB / 1.212 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.409e-05/0.7178, allocations: 47.97 kB / 1.212 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.338e-05/0.7179, allocations: 68.77 kB / 1.212 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.7179, allocations: 0 / 1.212 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001524/0.718, allocations: 129.4 kB / 1.212 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.718, allocations: 8 kB / 1.212 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.7181, allocations: 4 kB / 1.212 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.7181, allocations: 0 / 1.212 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.17e-05/0.7181, allocations: 0 / 1.212 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.7181, allocations: 0 / 1.212 GB, free: 8.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.854e-05/0.7181, allocations: 15.95 kB / 1.212 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.7182, allocations: 0 / 1.212 GB, free: 8.234 MB / 0.9356 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.0001356/0.7183, allocations: 121.8 kB / 1.212 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.7183, allocations: 11.84 kB / 1.212 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.7184, allocations: 57.5 kB / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.7185, allocations: 0 / 1.212 GB, free: 8.027 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.7185, allocations: 4 kB / 1.212 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.7185, allocations: 0 / 1.212 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.7186, allocations: 173.7 kB / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.7186, allocations: 0 / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.104e-06/0.7186, allocations: 3.938 kB / 1.213 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.7186, allocations: 0 / 1.213 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-06/0.7186, allocations: 3.938 kB / 1.213 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.7186, allocations: 4 kB / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.7186, allocations: 0 / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.087e-05/0.7187, allocations: 77.02 kB / 1.213 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.882e-05/0.7188, allocations: 92.92 kB / 1.213 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.7188, allocations: 7.938 kB / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.209e-05/0.7188, allocations: 0 / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.57e-05/0.7188, allocations: 4 kB / 1.213 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.7189, allocations: 4 kB / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.071e-05/0.7189, allocations: 121.3 kB / 1.213 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.719, allocations: 4 kB / 1.213 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003429/0.7193, allocations: 87.98 kB / 1.213 GB, free: 7.367 MB / 0.9356 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.0007927/0.7201, allocations: 0.7299 MB / 1.214 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001633/0.7203, allocations: 109.6 kB / 1.214 GB, free: 6.52 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.7203, allocations: 3.938 kB / 1.214 GB, free: 6.516 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.572e-05/0.7203, allocations: 8 kB / 1.214 GB, free: 6.508 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001531/0.7205, allocations: 5.562 kB / 1.214 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.7219, allocations: 1.54 MB / 1.215 GB, free: 4.883 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.7222, allocations: 0.6885 MB / 1.216 GB, free: 4.168 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.061e-05/0.7222, allocations: 4 kB / 1.216 GB, free: 4.164 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.48e-05/0.7222, allocations: 23.42 kB / 1.216 GB, free: 4.141 MB / 0.9356 GB Notification: Performance of SimCode: time 5e-07/0.7222, allocations: 0 / 1.216 GB, free: 4.141 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01979/0.742, allocations: 3.501 MB / 1.219 GB, free: 0.7344 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.082/8.824, allocations: 9.5 kB / 1.219 GB, free: 0.7305 MB / 0.9356 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=50 --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