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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002083/0.002083, allocations: 218.2 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.509/1.509, allocations: 230.6 MB / 256.8 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.307/3.307, allocations: 0.5003 GB / 0.8061 GB, free: 26.77 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 69.17 kB / 1.171 GB, free: 19.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3616/0.3635, allocations: 179 MB / 1.345 GB, free: 464 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002004/0.3655, allocations: 0.5308 MB / 1.346 GB, free: 15.92 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003339/0.3689, allocations: 1.689 MB / 1.347 GB, free: 14.21 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.941e-05/0.3689, allocations: 7.938 kB / 1.347 GB, free: 14.2 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.000264/0.3692, allocations: 55.92 kB / 1.348 GB, free: 14.15 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.364e-05/0.3692, allocations: 39.88 kB / 1.348 GB, free: 14.11 MB / 1.045 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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'. Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.3705, allocations: 273.7 kB / 1.348 GB, free: 13.84 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.3706, allocations: 31.97 kB / 1.348 GB, free: 13.81 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.695e-05/0.3707, allocations: 8.266 kB / 1.348 GB, free: 13.8 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 4.923e-05/0.3708, allocations: 27.84 kB / 1.348 GB, free: 13.78 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.704e-05/0.3708, allocations: 39.95 kB / 1.348 GB, free: 13.74 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.3709, allocations: 0 / 1.348 GB, free: 13.74 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008209/0.3717, allocations: 495.2 kB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.851e-05/0.3718, allocations: 35.84 kB / 1.348 GB, free: 13.22 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.045e-05/0.3718, allocations: 23.75 kB / 1.348 GB, free: 13.2 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004555/0.3723, allocations: 311 kB / 1.349 GB, free: 12.89 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3723, allocations: 4 kB / 1.349 GB, free: 12.89 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.874e-06/0.3723, allocations: 0 / 1.349 GB, free: 12.89 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.3723, allocations: 0 / 1.349 GB, free: 12.89 MB / 1.045 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.000528/0.3728, allocations: 361.3 kB / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.3728, allocations: 12.03 kB / 1.349 GB, free: 12.49 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.45e-05/0.3729, allocations: 192 / 1.349 GB, free: 12.49 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.203e-05/0.3729, allocations: 30.75 kB / 1.349 GB, free: 12.45 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.652e-05/0.3729, allocations: 12.84 kB / 1.349 GB, free: 12.44 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.3731, allocations: 134.4 kB / 1.349 GB, free: 12.29 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.3731, allocations: 8.375 kB / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.3732, allocations: 384 / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001393/0.3733, allocations: 49.55 kB / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.3733, allocations: 3.938 kB / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-06/0.3733, allocations: 0 / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.3733, allocations: 0 / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.067e-05/0.3734, allocations: 19.98 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000218/0.3736, allocations: 152.8 kB / 1.35 GB, free: 12.01 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 6.348e-05/0.3736, allocations: 26.58 kB / 1.35 GB, free: 11.97 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.074e-05/0.3737, allocations: 20.84 kB / 1.35 GB, free: 11.95 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 4.727e-05/0.3737, allocations: 7.938 kB / 1.35 GB, free: 11.94 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.378e-05/0.3738, allocations: 34.5 kB / 1.35 GB, free: 11.9 MB / 1.045 GB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.3738, allocations: 0 / 1.35 GB, free: 11.9 MB / 1.045 GB Notification: Performance of matching and sorting (n=1): time 0.0002146/0.374, allocations: 77.58 kB / 1.35 GB, free: 11.82 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.374, allocations: 51.41 kB / 1.35 GB, free: 11.75 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.3743, allocations: 211.6 kB / 1.35 GB, free: 11.54 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.3743, allocations: 25.7 kB / 1.35 GB, free: 11.51 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.018e-05/0.3744, allocations: 104.1 kB / 1.35 GB, free: 11.4 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.3744, allocations: 7.891 kB / 1.35 GB, free: 11.39 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.788e-05/0.3745, allocations: 29.7 kB / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.3746, allocations: 326.8 kB / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.816e-05/0.3747, allocations: 59.91 kB / 1.35 GB, free: 10.97 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.316e-05/0.3748, allocations: 51.98 kB / 1.35 GB, free: 10.92 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.3749, allocations: 100.7 kB / 1.351 GB, free: 10.82 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3749, allocations: 0 / 1.351 GB, free: 10.82 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002253/0.3752, allocations: 160.2 kB / 1.351 GB, free: 10.66 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.3752, allocations: 4 kB / 1.351 GB, free: 10.66 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.273e-05/0.3752, allocations: 4 kB / 1.351 GB, free: 10.65 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.3752, allocations: 0 / 1.351 GB, free: 10.65 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.665e-05/0.3752, allocations: 0 / 1.351 GB, free: 10.65 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.3753, allocations: 3.984 kB / 1.351 GB, free: 10.65 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.854e-05/0.3753, allocations: 15.84 kB / 1.351 GB, free: 10.63 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-06/0.3753, allocations: 0 / 1.351 GB, free: 10.63 MB / 1.045 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.0002048/0.3755, allocations: 133.9 kB / 1.351 GB, free: 10.49 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.767e-05/0.3755, allocations: 11.89 kB / 1.351 GB, free: 10.48 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001315/0.3757, allocations: 70.11 kB / 1.351 GB, free: 10.4 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.3757, allocations: 0 / 1.351 GB, free: 10.4 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3757, allocations: 0 / 1.351 GB, free: 10.4 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3757, allocations: 0 / 1.351 GB, free: 10.4 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001352/0.3758, allocations: 156.7 kB / 1.351 GB, free: 10.21 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.3758, allocations: 3.938 kB / 1.351 GB, free: 10.2 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.951e-06/0.3758, allocations: 8.031 kB / 1.351 GB, free: 10.2 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.3758, allocations: 4 kB / 1.351 GB, free: 10.19 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.3758, allocations: 3.984 kB / 1.351 GB, free: 10.19 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3758, allocations: 0 / 1.351 GB, free: 10.19 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3758, allocations: 0 / 1.351 GB, free: 10.19 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.869e-05/0.3759, allocations: 93 kB / 1.351 GB, free: 10.08 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.539e-05/0.3759, allocations: 11.89 kB / 1.351 GB, free: 10.07 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.376, allocations: 0 / 1.351 GB, free: 10.07 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.326e-05/0.376, allocations: 4.031 kB / 1.351 GB, free: 10.06 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.083e-05/0.376, allocations: 0 / 1.351 GB, free: 10.06 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-06/0.376, allocations: 7.922 kB / 1.351 GB, free: 10.05 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001248/0.3761, allocations: 151.1 kB / 1.351 GB, free: 9.906 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3761, allocations: 0 / 1.351 GB, free: 9.906 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003655/0.3765, allocations: 87.8 kB / 1.351 GB, free: 9.82 MB / 1.045 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.0008291/0.3773, allocations: 0.7426 MB / 1.352 GB, free: 9.066 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002005/0.3775, allocations: 117.6 kB / 1.352 GB, free: 8.945 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3775, allocations: 96 / 1.352 GB, free: 8.945 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 1.77e-05/0.3775, allocations: 15.98 kB / 1.352 GB, free: 8.93 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001472/0.3777, allocations: 17.41 kB / 1.352 GB, free: 8.914 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001892/0.3796, allocations: 1.818 MB / 1.354 GB, free: 7.012 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.3799, allocations: 0.7079 MB / 1.355 GB, free: 6.277 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.426e-05/0.3799, allocations: 4 kB / 1.355 GB, free: 6.273 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.546e-05/0.38, allocations: 27.42 kB / 1.355 GB, free: 6.246 MB / 1.045 GB Notification: Performance of SimCode: time 5.31e-07/0.38, allocations: 0 / 1.355 GB, free: 6.246 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02569/0.4057, allocations: 4.123 MB / 1.359 GB, free: 2.277 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.72, allocations: 5.609 kB / 1.359 GB, free: 2.273 MB / 1.045 GB " [Timeout remaining time 288] (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 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d.fmu > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.693614350049756]