Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 104.3 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 225.6 MB / 247.8 MB, free: 3.738 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.56/2.56, allocations: 443.5 MB / 0.7287 GB, free: 14.54 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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_2d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 63.91 kB / 1.056 GB, free: 2.551 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2767, allocations: 160.7 MB / 1.213 GB, free: 1.527 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001671/0.2784, allocations: 0.5204 MB / 1.213 GB, free: 1 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002127/0.2805, allocations: 1.622 MB / 1.215 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.811e-05/0.2805, allocations: 0 / 1.215 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.2807, allocations: 63.83 kB / 1.215 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.579e-05/0.2807, allocations: 31.89 kB / 1.215 GB, free: 15.27 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 10.1.1-maint.10.0.x/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.0007652/0.2815, allocations: 247.3 kB / 1.215 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.837e-05/0.2816, allocations: 31.91 kB / 1.215 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.206e-05/0.2816, allocations: 4 kB / 1.215 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.166e-05/0.2817, allocations: 23.89 kB / 1.215 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.361e-05/0.2817, allocations: 43.89 kB / 1.215 GB, free: 14.92 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.013e-05/0.2817, allocations: 0 / 1.215 GB, free: 14.92 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005359/0.2823, allocations: 367.4 kB / 1.216 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.091e-05/0.2823, allocations: 27.91 kB / 1.216 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.565e-05/0.2823, allocations: 31.73 kB / 1.216 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003674/0.2827, allocations: 291.4 kB / 1.216 GB, free: 14.22 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2827, allocations: 7.938 kB / 1.216 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.103e-06/0.2827, allocations: 0 / 1.216 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.051e-05/0.2827, allocations: 4 kB / 1.216 GB, free: 14.21 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.0004415/0.2832, allocations: 438.4 kB / 1.217 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.2832, allocations: 12.03 kB / 1.217 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.965e-05/0.2832, allocations: 30.75 kB / 1.217 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.592e-05/0.2833, allocations: 16.78 kB / 1.217 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001712/0.2834, allocations: 189.1 kB / 1.217 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.276e-06/0.2834, allocations: 384 / 1.217 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-06/0.2835, allocations: 4.375 kB / 1.217 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.992e-05/0.2835, allocations: 41.83 kB / 1.217 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.2836, allocations: 0 / 1.217 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.731e-06/0.2836, allocations: 0 / 1.217 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.2836, allocations: 3.984 kB / 1.217 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.075e-05/0.2836, allocations: 19.98 kB / 1.217 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001828/0.2838, allocations: 193.6 kB / 1.217 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.136e-05/0.2838, allocations: 26.52 kB / 1.217 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.345e-05/0.2839, allocations: 24.92 kB / 1.217 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.2839, allocations: 11.98 kB / 1.217 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.2839, allocations: 34.5 kB / 1.217 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.2839, allocations: 0 / 1.217 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001338/0.284, allocations: 61.64 kB / 1.217 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.2841, allocations: 59.33 kB / 1.217 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.2843, allocations: 218.2 kB / 1.217 GB, free: 12.65 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.2843, allocations: 29.7 kB / 1.217 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.024e-05/0.2844, allocations: 100.1 kB / 1.218 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.022e-05/0.2844, allocations: 7.953 kB / 1.218 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-05/0.2844, allocations: 29.7 kB / 1.218 GB, free: 12.47 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.2846, allocations: 330.8 kB / 1.218 GB, free: 12.14 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.329e-05/0.2846, allocations: 51.97 kB / 1.218 GB, free: 12.09 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.494e-05/0.2847, allocations: 51.98 kB / 1.218 GB, free: 12.04 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.975e-05/0.2848, allocations: 94.89 kB / 1.218 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2848, allocations: 4.031 kB / 1.218 GB, free: 11.94 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000188/0.285, allocations: 169.5 kB / 1.218 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.285, allocations: 4 kB / 1.218 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.285, allocations: 3.938 kB / 1.218 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.285, allocations: 0 / 1.218 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.186e-05/0.285, allocations: 4 kB / 1.218 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/0.285, allocations: 0 / 1.218 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.509e-05/0.285, allocations: 7.906 kB / 1.218 GB, free: 11.75 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.285, allocations: 4 kB / 1.218 GB, free: 11.75 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.0001417/0.2852, allocations: 140.7 kB / 1.218 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.695e-05/0.2852, allocations: 15.83 kB / 1.218 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.2853, allocations: 62.23 kB / 1.218 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-06/0.2853, allocations: 4 kB / 1.218 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2853, allocations: 0 / 1.218 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-06/0.2853, allocations: 0 / 1.218 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001381/0.2855, allocations: 181.7 kB / 1.219 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.2855, allocations: 0 / 1.219 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.871e-06/0.2855, allocations: 3.938 kB / 1.219 GB, free: 11.28 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.2855, allocations: 7.969 kB / 1.219 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-06/0.2855, allocations: 0 / 1.219 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.2855, allocations: 0 / 1.219 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2855, allocations: 0 / 1.219 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.162e-05/0.2856, allocations: 85.02 kB / 1.219 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.292e-05/0.2856, allocations: 92.95 kB / 1.219 GB, free: 11.06 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.2856, allocations: 0 / 1.219 GB, free: 11.06 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.621e-05/0.2856, allocations: 8.031 kB / 1.219 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.674e-06/0.2857, allocations: 0 / 1.219 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.2857, allocations: 4 kB / 1.219 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000125/0.2858, allocations: 148.4 kB / 1.219 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.2858, allocations: 0 / 1.219 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003119/0.2861, allocations: 87.8 kB / 1.219 GB, free: 10.82 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.0007511/0.2868, allocations: 0.7534 MB / 1.22 GB, free: 10.06 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001725/0.287, allocations: 109.7 kB / 1.22 GB, free: 9.945 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.287, allocations: 3.938 kB / 1.22 GB, free: 9.941 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.704e-05/0.287, allocations: 16.09 kB / 1.22 GB, free: 9.926 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.2872, allocations: 4 kB / 1.22 GB, free: 9.922 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.2889, allocations: 1.824 MB / 1.222 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.2892, allocations: 0.7078 MB / 1.222 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.638e-05/0.2892, allocations: 0 / 1.222 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.705e-05/0.2892, allocations: 23.44 kB / 1.222 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of SimCode: time 3.61e-07/0.2892, allocations: 0 / 1.222 GB, free: 7.254 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.256/0.5453, allocations: 3.896 MB / 1.226 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.596/9.141, allocations: 9.594 kB / 1.226 GB, free: 3.445 MB / 0.9669 GB " [Timeout remaining time 291] (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.0837690429762]