Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 105.6 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.001401/0.001401, allocations: 187.7 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.398/1.398, allocations: 225.6 MB / 247.8 MB, free: 3.734 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.543/2.543, allocations: 443.5 MB / 0.7287 GB, free: 14.5 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_1d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 64.08 kB / 1.056 GB, free: 2.484 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2985, allocations: 160.7 MB / 1.213 GB, free: 1.457 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002033/0.3005, allocations: 0.5243 MB / 1.213 GB, free: 0.9258 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.00292/0.3034, allocations: 1.619 MB / 1.215 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.494e-05/0.3035, allocations: 0 / 1.215 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001759/0.3036, allocations: 23.89 kB / 1.215 GB, free: 15.27 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.932e-05/0.3037, allocations: 8 kB / 1.215 GB, free: 15.26 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.001181/0.3048, allocations: 243.3 kB / 1.215 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.133e-05/0.3049, allocations: 19.92 kB / 1.215 GB, free: 15 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.156e-05/0.305, allocations: 0 / 1.215 GB, free: 15 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.146e-05/0.305, allocations: 23.91 kB / 1.215 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.779e-05/0.3051, allocations: 19.91 kB / 1.215 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.459e-05/0.3051, allocations: 4 kB / 1.215 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006925/0.3058, allocations: 367.4 kB / 1.216 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.654e-05/0.3058, allocations: 19.92 kB / 1.216 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.068e-05/0.3059, allocations: 15.88 kB / 1.216 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004718/0.3063, allocations: 279.5 kB / 1.216 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3063, allocations: 3.938 kB / 1.216 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.854e-06/0.3063, allocations: 0 / 1.216 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.028e-05/0.3063, allocations: 0 / 1.216 GB, free: 14.28 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.0005386/0.3069, allocations: 418.5 kB / 1.216 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.3069, allocations: 8.031 kB / 1.216 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.669e-05/0.307, allocations: 34.75 kB / 1.216 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.855e-05/0.307, allocations: 8.891 kB / 1.216 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002002/0.3072, allocations: 188.3 kB / 1.217 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.3072, allocations: 384 / 1.217 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.3072, allocations: 384 / 1.217 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.3074, allocations: 49.73 kB / 1.217 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.3074, allocations: 0 / 1.217 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.512e-06/0.3074, allocations: 0 / 1.217 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.3074, allocations: 0 / 1.217 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.177e-05/0.3074, allocations: 16 kB / 1.217 GB, free: 13.47 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002732/0.3077, allocations: 173.7 kB / 1.217 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 6.089e-05/0.3077, allocations: 26.56 kB / 1.217 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.728e-05/0.3078, allocations: 12.92 kB / 1.217 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.906e-05/0.3078, allocations: 8 kB / 1.217 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.3078, allocations: 46.38 kB / 1.217 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.3078, allocations: 0 / 1.217 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001743/0.308, allocations: 65.62 kB / 1.217 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.3081, allocations: 51.41 kB / 1.217 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.3083, allocations: 172.2 kB / 1.217 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.3083, allocations: 25.7 kB / 1.217 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.544e-05/0.3083, allocations: 92.14 kB / 1.217 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.135e-05/0.3083, allocations: 7.953 kB / 1.217 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.3084, allocations: 25.7 kB / 1.217 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.3086, allocations: 327 kB / 1.218 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.871e-05/0.3086, allocations: 39.98 kB / 1.218 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.011e-05/0.3087, allocations: 39.92 kB / 1.218 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.725e-05/0.3088, allocations: 72.81 kB / 1.218 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3088, allocations: 0 / 1.218 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001806/0.309, allocations: 137.5 kB / 1.218 GB, free: 12.04 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.309, allocations: 4 kB / 1.218 GB, free: 12.04 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.309, allocations: 0 / 1.218 GB, free: 12.04 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.309, allocations: 0 / 1.218 GB, free: 12.04 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.365e-05/0.309, allocations: 4 kB / 1.218 GB, free: 12.04 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.309, allocations: 4.062 kB / 1.218 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.611e-05/0.3091, allocations: 3.953 kB / 1.218 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.3091, allocations: 4 kB / 1.218 GB, free: 12.02 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: 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.0001745/0.3092, allocations: 117.8 kB / 1.218 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.826e-05/0.3093, allocations: 19.77 kB / 1.218 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001248/0.3094, allocations: 61.55 kB / 1.218 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.3094, allocations: 0 / 1.218 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3094, allocations: 32 / 1.218 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3094, allocations: 4 kB / 1.218 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.3095, allocations: 169.6 kB / 1.218 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3095, allocations: 3.984 kB / 1.218 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.025e-05/0.3096, allocations: 7.938 kB / 1.218 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.123e-06/0.3096, allocations: 0 / 1.218 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-06/0.3096, allocations: 0 / 1.218 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3096, allocations: 0 / 1.218 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3096, allocations: 0 / 1.218 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.844e-05/0.3097, allocations: 85.02 kB / 1.218 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.191e-05/0.3097, allocations: 89 kB / 1.218 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.3097, allocations: 4 kB / 1.218 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.325e-05/0.3097, allocations: 0 / 1.218 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.345e-05/0.3098, allocations: 3.984 kB / 1.218 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-06/0.3098, allocations: 0 / 1.218 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.767e-05/0.3099, allocations: 121.3 kB / 1.219 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.3099, allocations: 0 / 1.219 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003463/0.3102, allocations: 87.8 kB / 1.219 GB, free: 11.16 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.0009102/0.3111, allocations: 0.7526 MB / 1.219 GB, free: 10.4 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001669/0.3113, allocations: 93.67 kB / 1.219 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3113, allocations: 0 / 1.219 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.563e-05/0.3113, allocations: 8 kB / 1.219 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.3115, allocations: 7.984 kB / 1.22 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.313, allocations: 1.53 MB / 1.221 GB, free: 8.68 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/0.3133, allocations: 0.6962 MB / 1.222 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.15e-05/0.3133, allocations: 4 kB / 1.222 GB, free: 7.953 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.318e-05/0.3134, allocations: 15.44 kB / 1.222 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of SimCode: time 4.21e-07/0.3134, allocations: 4.031 kB / 1.222 GB, free: 7.934 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02634/0.3397, allocations: 3.513 MB / 1.225 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.172/8.511, allocations: 11.27 kB / 1.225 GB, free: 4.512 MB / 0.9669 GB " [Timeout remaining time 291] (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Clustering_Validation_KMeans_1d.fmu > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.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: 14.6306267590262]